Restoring parallel meshing for windows

This commit is contained in:
Yoann Audouin 2023-03-28 09:10:10 +02:00
parent 04632be459
commit 9ed97f5c64
2 changed files with 0 additions and 19 deletions

View File

@ -48,13 +48,8 @@
#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");

View File

@ -42,13 +42,8 @@
#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