]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Dump of compute now also checking isDone
authorYOANN AUDOUIN <B61570@dsp1062659>
Mon, 11 Sep 2023 06:09:40 +0000 (08:09 +0200)
committerYOANN AUDOUIN <B61570@dsp1062659>
Wed, 22 Nov 2023 10:48:42 +0000 (11:48 +0100)
src/SMESH_I/SMESH_Gen_i.cxx

index 81dcf5a3754c1bd1a6b2b93cde24c5316bee3d4f..8d380c6da5a8276ddf3c3c225d9db6c478243874 100644 (file)
@@ -2078,7 +2078,8 @@ CORBA::Boolean SMESH_Gen_i::Compute( SMESH::SMESH_Mesh_ptr theMesh,
 
   // Update Python script
   TPythonDump(this) << "isDone = " << this << ".Compute( "
-                << theMesh << ", " << theShapeObject << ")";
+                    << theMesh << ", " << theShapeObject << ")";
+  TPythonDump(this) << "if not isDone: \n    raise Exception(\"Issue while computing Mesh\")";
 
   try {
     // get mesh servant