Compare commits

...

2 Commits

Author SHA1 Message Date
Nabil Ghodbane
f5acbd9573 bos #37471: fix compilation on Windows operating system 2023-09-20 15:49:21 +02:00
YOANN AUDOUIN
571f479e12 Adding walltime to multinode parameters 2023-09-07 10:10:46 +02:00

View File

@ -49,14 +49,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
*/
@ -291,13 +285,13 @@ bool NETGENPlugin_NETGEN_3D_Remote::Compute(SMESH_Mesh& aMesh,
if(method == ParallelismMethod::MultiThread){
params.push_back("--method=local");
} else if (method == ParallelismMethod::MultiNode){
// TODO :See what parameters to handle in the end
params.push_back("--method=cluster");
params.push_back("--resource="+aParMesh.GetResource());
params.push_back("--wc-key="+aParMesh.GetWcKey());
params.push_back("--nb-proc=1");
params.push_back("--nb-proc-per-node="+to_string(aParMesh.GetNbProcPerNode()));
params.push_back("--nb-node="+to_string(aParMesh.GetNbNode()));
params.push_back("--walltime="+aParMesh.GetWalltime());
} else {
throw SALOME_Exception("Unknown parallelism method "+method);
}