-// 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
#include <vector>
-using namespace ParaMEDMEM;
+using namespace MEDCoupling;
MEDCouplingFieldOverTimeClient::MEDCouplingFieldOverTimeClient(SALOME_MED::MEDCouplingFieldOverTimeCorbaInterface_ptr field):_df(0)
{
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;
{
_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;
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;