From: eap Date: Fri, 20 Jul 2012 16:14:30 +0000 (+0000) Subject: Generalize "Cancel Compute" mechanism to be able to report X-Git-Tag: V6_6_0a1~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eb09a83f3d95f8f08ae0a0329915830b46cb89c8;p=plugins%2Fnetgenplugin.git 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(); --- diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D.cxx index 39075b6..bf56622 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D.cxx @@ -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 diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D3D.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D3D.cxx index a9b3b75..5959507 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D3D.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D3D.cxx @@ -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 diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx index 4fdf938..acb11d6 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx @@ -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 diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx index 1a96495..e923afb 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx @@ -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