Salome HOME
Copyright update 2022
[modules/med.git] / src / MEDCouplingCorba / Client / MEDCouplingFieldOverTimeClient.cxx
index b599fa5737b3cf3b21cfeacb86c22c3ecbce74b6..2d4a3e47e4d7f15b8c433b72a9ee3fd6f8327ca7 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2022  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
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -29,7 +29,7 @@
 
 #include <vector>
 
-using namespace ParaMEDMEM;
+using namespace MEDCoupling;
 
 MEDCouplingFieldOverTimeClient::MEDCouplingFieldOverTimeClient(SALOME_MED::MEDCouplingFieldOverTimeCorbaInterface_ptr field):_df(0)
 {
@@ -60,7 +60,7 @@ void MEDCouplingFieldOverTimeClient::retrieveFieldTemplates()
   CORBA::Long nbOfFields;
   CORBA::Long nbOfMeshes=_field_ptr->getMainTinyInfo(tinyL,tinyD,nbOfArrays,nbOfFields);
   int tinyLgth=tinyL->length();
-  std::vector<int> mainI(tinyLgth);
+  std::vector<mcIdType> mainI(tinyLgth);
   for(int i=0;i<tinyLgth;i++)
     mainI[i]=(*tinyL)[i];
   delete tinyL; tinyL=0;
@@ -79,7 +79,7 @@ void MEDCouplingFieldOverTimeClient::retrieveFieldTemplates()
     {
       _field_ptr->getTinyInfo(i,tinyL,tinyD,tinyS);
       int tinyLgth=tinyL->length();
-      std::vector<int> tinyLV(tinyLgth);
+      std::vector<mcIdType> tinyLV(tinyLgth);
       for(int j=0;j<tinyLgth;j++)
         tinyLV[j]=(*tinyL)[j];
       delete tinyL; tinyL=0;
@@ -98,13 +98,13 @@ void MEDCouplingFieldOverTimeClient::retrieveFieldTemplates()
       TypeOfField type=(TypeOfField) tinyLV[0];
       MEDCouplingFieldTemplate *f1=MEDCouplingFieldTemplate::New(type);
       //
-      DataArrayInt *array0;
+      DataArrayIdType *array0;
       f1->resizeForUnserialization(tinyLV,array0);
       if(array0)
         {
           _field_ptr->getSerialisationData(i,tinyL);
           tinyLgth=tinyL->length();
-          int *ptr=array0->getPointer();
+          mcIdType *ptr=array0->getPointer();
           for(int j=0;j<tinyLgth;j++)
             ptr[j]=(*tinyL)[j];
           delete tinyL; tinyL=0;