]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
0020873: [CEA] Failure with ParaMedMem
authoreap <eap@opencascade.com>
Wed, 12 May 2010 10:16:26 +0000 (10:16 +0000)
committereap <eap@opencascade.com>
Wed, 12 May 2010 10:16:26 +0000 (10:16 +0000)
   * Correct work of an empty directed box

src/ParaMEDMEM/ElementLocator.cxx

index 1ae99850cf92378f1af9c1617445cc631e414d36..ac4ac94f73b3c0a0d70da872c2c5ecfb10774371 100644 (file)
@@ -157,6 +157,7 @@ namespace ParaMEDMEM
                                                _local_cell_mesh->getNumberOfNodes(),
                                                _local_cell_mesh_space_dim);
     std::vector<double> dbbData = dbb.getData();
+    if ( dbbData.size() < bbSize ) dbbData.resize(bbSize,0);
     double * minmax= &dbbData[0];
 #else
     int bbSize = 2*_local_cell_mesh_space_dim;
@@ -185,7 +186,9 @@ namespace ParaMEDMEM
             _distant_proc_ids.push_back(rank);
           }
       }
+#ifndef USE_DIRECTED_BB
     delete [] minmax;
+#endif
   }