Skip to content
Snippets Groups Projects
Commit 6044571a authored by Christoph Lehmann's avatar Christoph Lehmann
Browse files

[MeL] Avoid segfault if mesh not found (single rank MPI case)

parent 68eadcd1
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,12 @@ MeshLib::Mesh* readMeshFromFile(const std::string& file_name,
{
std::unique_ptr<Mesh> mesh{
readMeshFromFileSerial(file_name, compute_element_neighbors)};
if (!mesh)
{
return nullptr;
}
return new MeshLib::NodePartitionedMesh(*mesh);
}
return nullptr;
......
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