Skip to content
Snippets Groups Projects
Commit cf0a028a authored by Tom Fischer's avatar Tom Fischer
Browse files

[MeL/IO/MPI_IO] Reduce scope of mesh

parent 53e9cc60
No related branches found
No related tags found
No related merge requests found
...@@ -77,8 +77,6 @@ MeshLib::NodePartitionedMesh* NodePartitionedMeshReader::read( ...@@ -77,8 +77,6 @@ MeshLib::NodePartitionedMesh* NodePartitionedMeshReader::read(
BaseLib::RunTime timer; BaseLib::RunTime timer;
timer.start(); timer.start();
MeshLib::NodePartitionedMesh* mesh = nullptr;
// Always try binary file first // Always try binary file first
std::string const fname_new = file_name_base + "_partitioned_msh_cfg" + std::string const fname_new = file_name_base + "_partitioned_msh_cfg" +
std::to_string(_mpi_comm_size) + ".bin"; std::to_string(_mpi_comm_size) + ".bin";
...@@ -99,7 +97,8 @@ MeshLib::NodePartitionedMesh* NodePartitionedMeshReader::read( ...@@ -99,7 +97,8 @@ MeshLib::NodePartitionedMesh* NodePartitionedMeshReader::read(
INFO("Reading corresponding part of mesh data from binary file {:s} ...", INFO("Reading corresponding part of mesh data from binary file {:s} ...",
file_name_base); file_name_base);
mesh = readMesh(file_name_base);
MeshLib::NodePartitionedMesh* mesh = readMesh(file_name_base);
INFO("[time] Reading the mesh took {:f} s.", timer.elapsed()); INFO("[time] Reading the mesh took {:f} s.", timer.elapsed());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment