]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
Restoring parallel meshing for windows yan/parallel_mesh_win_restore
authorYoann Audouin <yoann.audouin@edf.fr>
Tue, 28 Mar 2023 07:10:10 +0000 (09:10 +0200)
committerYoann Audouin <yoann.audouin@edf.fr>
Tue, 28 Mar 2023 07:10:10 +0000 (09:10 +0200)
src/NETGENPlugin/NETGENPlugin_NETGEN_3D_Remote.cxx
src/NETGENPlugin/NETGENPlugin_NETGEN_3D_SA.cxx

index 3818d1e9b20c130fa7bc5584f24e234ea17f2242..5f96249eea67832925c84d355d44692ebcd77726 100644 (file)
 #include <QString>
 #include <QProcess>
 
-#ifdef WIN32
-#include <filesystem>
-namespace fs = std::filesystem;
-#else
 #include <boost/filesystem.hpp>
 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");
index 55972ac83ccaf3ff5c841f74b3133d7aa800592d..b87b36cef2c6210d1b538b902181c3d590d0bdae 100644 (file)
 #include <SMESHDS_Mesh.hxx>
 
 
-#ifdef WIN32
-#include <filesystem>
-namespace fs = std::filesystem;
-#else
 #include <boost/filesystem.hpp>
 namespace fs = boost::filesystem;
-#endif
 
 /*
   Netgen include files