From 9ed97f5c6491a11df3e6e1a17bf422c4972930fa Mon Sep 17 00:00:00 2001 From: Yoann Audouin Date: Tue, 28 Mar 2023 09:10:10 +0200 Subject: [PATCH] Restoring parallel meshing for windows --- src/NETGENPlugin/NETGENPlugin_NETGEN_3D_Remote.cxx | 14 -------------- src/NETGENPlugin/NETGENPlugin_NETGEN_3D_SA.cxx | 5 ----- 2 files changed, 19 deletions(-) diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D_Remote.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D_Remote.cxx index 3818d1e..5f96249 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D_Remote.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D_Remote.cxx @@ -48,13 +48,8 @@ #include #include -#ifdef WIN32 -#include -namespace fs = std::filesystem; -#else #include namespace fs = boost::filesystem; -#endif /* Netgen include files @@ -232,19 +227,10 @@ bool NETGENPlugin_NETGEN_3D_Remote::Compute(SMESH_Mesh& aMesh, // Temporary folder for run -#ifdef WIN32 - // On windows mesh does not have GetTmpFolder - fs::path tmp_folder = fs::path("Volume-%%%%-%%%%"); -#else fs::path tmp_folder = aMesh.GetTmpFolder() / fs::unique_path(fs::path("Volume-%%%%-%%%%")); -#endif fs::create_directories(tmp_folder); // Using MESH2D generated after all triangles where created. -#ifdef WIN32 - fs::path mesh_file=fs::path("Mesh2D.med"); -#else fs::path mesh_file=aMesh.GetTmpFolder() / fs::path("Mesh2D.med"); -#endif fs::path element_orientation_file=tmp_folder / fs::path("element_orientation.dat"); fs::path new_element_file=tmp_folder / fs::path("new_elements.dat"); fs::path tmp_mesh_file=tmp_folder / fs::path("tmp_mesh.med"); diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D_SA.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D_SA.cxx index 55972ac..b87b36c 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D_SA.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D_SA.cxx @@ -42,13 +42,8 @@ #include -#ifdef WIN32 -#include -namespace fs = std::filesystem; -#else #include namespace fs = boost::filesystem; -#endif /* Netgen include files