]> SALOME platform Git repositories - plugins/netgenplugin.git/blobdiff - src/NETGENPlugin/NETGENPlugin_NETGEN_3D_Remote.cxx
Salome HOME
Updated copyright comment
[plugins/netgenplugin.git] / src / NETGENPlugin / NETGENPlugin_NETGEN_3D_Remote.cxx
index 5d3d1f0ce99c8555d706b4f9be52c87c44825baa..13516387436c37a35e23a009d534e1338b047847 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
+// Copyright (C) 2007-2024  CEA, EDF, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
 #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
 */
@@ -116,6 +110,7 @@ NETGENPlugin_NETGEN_3D_Remote::~NETGENPlugin_NETGEN_3D_Remote()
  */
 void NETGENPlugin_NETGEN_3D_Remote::fillParameters(const NETGENPlugin_Hypothesis* hyp, netgen_params &aParams)
 {
+  aParams.myType             = hypoType::Hypo;
   aParams.maxh               = hyp->GetMaxSize();
   aParams.minh               = hyp->GetMinSize();
   aParams.segmentsperedge    = hyp->GetNbSegPerEdge();
@@ -291,13 +286,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);
   }