]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
ExportMEDCoupling is now safer
authorAnthony Geay <anthony.geay@edf.fr>
Fri, 11 Jun 2021 06:32:36 +0000 (08:32 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 11 Jun 2021 06:32:36 +0000 (08:32 +0200)
src/SMESH_I/SMESH_Mesh_i.cxx

index 2fc681ef523f0e0e9d29c4fbe88f5d1c78b79b53..4e442a7a0daa8c473b1473dd8215f7aea4a34e41 100644 (file)
@@ -3785,8 +3785,8 @@ CORBA::LongLong SMESH_Mesh_i::ExportMEDCoupling(CORBA::Boolean auto_groups, CORB
   MEDCoupling::MCAuto<MEDCoupling::DataArrayByte> data;
   SMESH_TRY;
   // TODO : Fix me ! 2 next lines are required
-  //if( !this->_gen_i->IsEmbeddedMode() )
-  //  SMESH::throwCorbaException("SMESH_Mesh_i::ExportMEDCoupling : only for embedded mode !");
+  if( !this->_gen_i->isSSLMode() )
+    SMESH::throwCorbaException("SMESH_Mesh_i::ExportMEDCoupling : only for embedded mode !");
   if ( _preMeshInfo )
     _preMeshInfo->FullLoadFromFile();