Salome HOME
Various fixes for test runs - introducing MEDCOUPLING_RESOURCE_DIR env variable
[tools/medcoupling.git] / src / ParaMEDMEMTest / ParaMEDMEMTest_StructuredCoincidentDEC.cxx
index b538f7317c6c5ed895fdd15f032ce78306d3f195..042d45b946266dd73a1875fc6fe40f559b355207 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2020  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -72,9 +72,9 @@ void ParaMEDMEMTest::testStructuredCoincidentDEC() {
   MEDCoupling::MPIProcessorGroup target_group(interface,3,size-1);
   MEDCoupling::MPIProcessorGroup source_group (interface,0,2);
 
-  MEDCoupling::MEDCouplingUMesh* mesh;
-  MEDCoupling::ParaMESH* paramesh;
-  MEDCoupling::ParaFIELD* parafield;
+  MEDCoupling::MEDCouplingUMesh* mesh = nullptr;
+  MEDCoupling::ParaMESH* paramesh = nullptr;
+  MEDCoupling::ParaFIELD* parafield = nullptr;
 
   string filename_xml1 = INTERP_TEST::getResourceFile("square1_split");
   string filename_2    = INTERP_TEST::getResourceFile("square1.med");
@@ -106,7 +106,7 @@ void ParaMEDMEMTest::testStructuredCoincidentDEC() {
     parafield = new ParaFIELD(ON_CELLS,NO_TIME,paramesh, comptopo);
 
     int nb_local=mesh->getNumberOfCells();
-    const int* global_numbering = paramesh->getGlobalNumberingCell();
+    const mcIdType* global_numbering = paramesh->getGlobalNumberingCell();
     
     double *value=parafield->getField()->getArray()->getPointer();
     for(int ielem=0; ielem<nb_local;ielem++)