From fc89cecb3fd068b85d53bbeeac45c93b96d4e81c Mon Sep 17 00:00:00 2001
From: Wenqing Wang <wenqing.wang@ufz.de>
Date: Wed, 5 May 2021 15:43:39 +0200
Subject: [PATCH] [ProjectData] call MeshLib::setMeshSpaceDimension(meshes)

---
 Applications/ApplicationsLib/ProjectData.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Applications/ApplicationsLib/ProjectData.cpp b/Applications/ApplicationsLib/ProjectData.cpp
index 2321ffe7bdb..f7a67844ae0 100644
--- a/Applications/ApplicationsLib/ProjectData.cpp
+++ b/Applications/ApplicationsLib/ProjectData.cpp
@@ -34,6 +34,7 @@
 #include "MeshGeoToolsLib/CreateSearchLength.h"
 #include "MeshGeoToolsLib/SearchLength.h"
 #include "MeshLib/Mesh.h"
+#include "MeshLib/Utils/SetMeshSpaceDimension.h"
 #include "NumLib/ODESolver/ConvergenceCriterion.h"
 #include "ProcessLib/CreateJacobianAssembler.h"
 #include "ProcessLib/DeactivatedSubdomain.h"
@@ -208,6 +209,9 @@ std::vector<std::unique_ptr<MeshLib::Mesh>> readMeshes(
         std::move(begin(additional_meshes), end(additional_meshes),
                   std::back_inserter(meshes));
     }
+
+    MeshLib::setMeshSpaceDimension(meshes);
+
     return meshes;
 }
 
-- 
GitLab