]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
debug in case of no intersection between process
authorsecher <secher>
Wed, 11 Mar 2009 15:00:54 +0000 (15:00 +0000)
committersecher <secher>
Wed, 11 Mar 2009 15:00:54 +0000 (15:00 +0000)
src/ParaMEDMEM/ElementLocator.cxx

index 5397b2a67e8bfbe80fec6ad71547d0b100608535..2069f28051fcbee7a15c366c1c6d945c4112cf96 100644 (file)
@@ -131,7 +131,8 @@ namespace ParaMEDMEM
     _exchangeMesh(send_mesh, distant_mesh, idistantrank, distant_ids_send, distant_ids);
     delete[] distant_ids_send;
     delete[] elem_bb;
-    send_mesh->decrRef();
+    if(send_mesh)
+      send_mesh->decrRef();
   }
 
   void ElementLocator::exchangeMethod(const std::string& sourceMeth, int idistantrank, std::string& targetMeth)