Generalize "Cancel Compute" mechanism to be able to report
"Computation canceled" instead of "Algorithm failed" as failure reason void NETGENPlugin_NETGEN_*D::CancelCompute() { + SMESH_Algo::CancelCompute();
This commit is contained in:
parent
48519d8868
commit
eb09a83f3d
@ -141,6 +141,7 @@ bool NETGENPlugin_NETGEN_2D::Compute(SMESH_Mesh& aMesh,
|
||||
#ifdef WITH_SMESH_CANCEL_COMPUTE
|
||||
void NETGENPlugin_NETGEN_2D::CancelCompute()
|
||||
{
|
||||
SMESH_Algo::CancelCompute();
|
||||
netgen::multithread.terminate = 1;
|
||||
}
|
||||
#endif
|
||||
|
@ -147,6 +147,7 @@ bool NETGENPlugin_NETGEN_2D3D::Compute(SMESH_Mesh& aMesh,
|
||||
#ifdef WITH_SMESH_CANCEL_COMPUTE
|
||||
void NETGENPlugin_NETGEN_2D3D::CancelCompute()
|
||||
{
|
||||
SMESH_Algo::CancelCompute();
|
||||
netgen::multithread.terminate = 1;
|
||||
}
|
||||
#endif
|
||||
|
@ -559,6 +559,7 @@ bool NETGENPlugin_NETGEN_2D_ONLY::Compute(SMESH_Mesh& aMesh,
|
||||
#ifdef WITH_SMESH_CANCEL_COMPUTE
|
||||
void NETGENPlugin_NETGEN_2D_ONLY::CancelCompute()
|
||||
{
|
||||
SMESH_Algo::CancelCompute();
|
||||
netgen::multithread.terminate = 1;
|
||||
}
|
||||
#endif
|
||||
|
@ -559,6 +559,7 @@ bool NETGENPlugin_NETGEN_3D::Compute(SMESH_Mesh& aMesh,
|
||||
#ifdef WITH_SMESH_CANCEL_COMPUTE
|
||||
void NETGENPlugin_NETGEN_3D::CancelCompute()
|
||||
{
|
||||
SMESH_Algo::CancelCompute();
|
||||
netgen::multithread.terminate = 1;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user