From 3d4f9e6ee14db2fcd28a410816c860368dc38653 Mon Sep 17 00:00:00 2001 From: secher Date: Wed, 11 Mar 2009 15:00:54 +0000 Subject: [PATCH] debug in case of no intersection between process --- src/ParaMEDMEM/ElementLocator.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ParaMEDMEM/ElementLocator.cxx b/src/ParaMEDMEM/ElementLocator.cxx index 5397b2a67..2069f2805 100644 --- a/src/ParaMEDMEM/ElementLocator.cxx +++ b/src/ParaMEDMEM/ElementLocator.cxx @@ -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) -- 2.39.2