#else
err = netgen::OCCGenerateMesh(occgeo, ngMesh, startWith, endWith, optstr);
#endif
-#ifdef WITH_SMESH_CANCEL_COMPUTE
if(netgen::multithread.terminate)
return false;
-#endif
+
comment << text(err);
}
catch (Standard_Failure& ex)
#else
netgen::OCCGenerateMesh(intOccgeo, tmpNgMesh, startWith, endWith, optstr);
#endif
-#ifdef WITH_SMESH_CANCEL_COMPUTE
if(netgen::multithread.terminate)
return false;
-#endif
+
// copy LocalH from the main to temporary mesh
initState.transferLocalH( ngMesh, tmpNgMesh );
#else
err = netgen::OCCGenerateMesh(occgeo, ngMesh, startWith, endWith, optstr);
#endif
-#ifdef WITH_SMESH_CANCEL_COMPUTE
if(netgen::multithread.terminate)
return false;
-#endif
+
comment << text(err);
}
catch (Standard_Failure& ex)
#else
err = netgen::OCCGenerateMesh(occgeo, ngMesh, startWith, endWith, optstr);
#endif
-#ifdef WITH_SMESH_CANCEL_COMPUTE
if(netgen::multithread.terminate)
return false;
-#endif
+
comment << text (err);
}
catch (Standard_Failure& ex)
#else
err = netgen::OCCGenerateMesh(occgeo, ngMesh, startWith, endWith, optstr);
#endif
-#ifdef WITH_SMESH_CANCEL_COMPUTE
if(netgen::multithread.terminate)
return false;
-#endif
+
if ( comment.empty() ) // do not overwrite a previos error
comment << text(err);
}
#else
err = netgen::OCCGenerateMesh(occgeo, ngMesh, startWith, endWith, optstr);
#endif
-#ifdef WITH_SMESH_CANCEL_COMPUTE
if(netgen::multithread.terminate)
return false;
-#endif
+
if ( comment.empty() ) // do not overwrite a previos error
comment << text(err);
}
#else
int err = netgen::OCCGenerateMesh(occgeo, ngMesh, startWith, endWith, optstr);
#endif
-#ifdef WITH_SMESH_CANCEL_COMPUTE
+
if(netgen::multithread.terminate)
return false;
-#endif
+
ngLib.setMesh(( Ng_Mesh*) ngMesh );
if (err) {
if ( SMESH_subMesh* sm = _mesh->GetSubMeshContaining( _shape ))
_isComputeOk = false;
_outputFileName = getOutputFileName();
netgen::mycout = new ofstream ( _outputFileName.c_str() );
- cout << "NOTE: netgen output was redirected to file " << _outputFileName << endl;
+ cout << "NOTE: netgen output redirected to file " << _outputFileName << endl;
_ngMesh = Ng_NewMesh();
}
}
SALOMEDS_Tool::RemoveTemporaryFiles( tmpDir.c_str(), aFiles.in(), true );
+ cout << "NOTE: netgen output log REMOVED " << _outputFileName << endl;
}