std::string _MEDName = "DOMAIN\0";
bool verbose = _hyp ? !_hyp->HasOptionDefined("verbose") : true;
bool proximity = _hyp->GetUseVolumeProximity();
- bool _Multithread = _hyp->GetUseNumOfThreads();
+ bool isMultithread = _hyp->GetUseNumOfThreads();
double minSize = _hyp->GetMinSize();
double maxSize = _hyp->GetMaxSize();
TCollection_AsciiString cmd = TCollection_AsciiString();
std::string _AdvOptions;
- if (_Multithread)
+ if (isMultithread)
cmd += "mg-tetra_hpc.exe";
else
cmd = cmd + "mpirun --n " + NbPart + " mg-tetra_hpc_mpi.exe";
cmd = cmd + " --in=" + GHS3DPRL_In;
- if (_Multithread)
+
+ if (isMultithread)
{
cmd = cmd + " --max_number_of_threads " + SMESH_Comment( _hyp->GetNumOfThreads() );
const char* parallelMode[] = { "none", "reproducible_given_max_number_of_threads", "reproducible", "aggressive" };
const short myMode = _hyp->GetParallelMode();
- if ( myMode >= 0 && myMode < 4 ) {
+ if ( myMode >= 1 && myMode < 4 ) {
cmd += " --parallel_mode ";
cmd += parallelMode[ myMode ];
}
return error(log);
}
- if (!_Multithread)
+ if (!isMultithread)
{
fileskinmed=path + casenamemed + "_skin.med";
cout<<" Write file "<<fileskinmed<<"...";
// Check the real need for calling this program in production!!!
// ... continue the original code!
- if (_Multithread)
+ if (isMultithread)
{
// check the med file has been created (only one med file, since multithread)
TCollection_AsciiString resuMedFile = TCollection_AsciiString(path) + casenamemed + "_1.med";