X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FParaMEDMEMTest%2FParaMEDMEMTest_FabienAPI.cxx;h=357ec3433f80d6705398d6421ce852e446fcc4d5;hb=dcc261ea8b9015285a05b5f7bc2960d883815c9a;hp=5b5bbaebb528f87d329d37e60327fe5b8c686c90;hpb=e8f616a523471bd47f2eb60e6fded7b2b6363639;p=tools%2Fmedcoupling.git diff --git a/src/ParaMEDMEMTest/ParaMEDMEMTest_FabienAPI.cxx b/src/ParaMEDMEMTest/ParaMEDMEMTest_FabienAPI.cxx index 5b5bbaebb..357ec3433 100644 --- a/src/ParaMEDMEMTest/ParaMEDMEMTest_FabienAPI.cxx +++ b/src/ParaMEDMEMTest/ParaMEDMEMTest_FabienAPI.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 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 @@ -65,14 +65,14 @@ void ParaMEDMEMTest::testFabienAPI1() std::copy(targetCoords,targetCoords+8,myCoords->getPointer()); mesh->setCoords(myCoords); myCoords->decrRef(); - int targetConn[4]={0,2,3,1}; + mcIdType targetConn[4]={0,2,3,1}; mesh->allocateCells(1); mesh->insertNextCell(INTERP_KERNEL::NORM_QUAD4,4,targetConn); mesh->finishInsertingCells(); MEDCoupling::ComponentTopology comptopo; paramesh=new ParaMESH(mesh,*dec->getSourceGrp(),"source mesh"); parafield=new ParaFIELD(ON_CELLS,NO_TIME,paramesh, comptopo); - parafield->getField()->setNature(ConservativeVolumic); + parafield->getField()->setNature(IntensiveMaximum); double *vals=parafield->getField()->getArray()->getPointer(); vals[0]=7.; } @@ -85,7 +85,7 @@ void ParaMEDMEMTest::testFabienAPI1() std::copy(targetCoords,targetCoords+8,myCoords->getPointer()); mesh->setCoords(myCoords); myCoords->decrRef(); - int targetConn[6]={0,2,1,2,3,1}; + mcIdType targetConn[6]={0,2,1,2,3,1}; mesh->allocateCells(2); mesh->insertNextCell(INTERP_KERNEL::NORM_TRI3,3,targetConn); mesh->insertNextCell(INTERP_KERNEL::NORM_TRI3,3,targetConn+3); @@ -93,7 +93,7 @@ void ParaMEDMEMTest::testFabienAPI1() MEDCoupling::ComponentTopology comptopo; paramesh=new ParaMESH(mesh,*dec->getTargetGrp(),"target mesh"); parafield=new ParaFIELD(ON_CELLS,NO_TIME,paramesh, comptopo); - parafield->getField()->setNature(ConservativeVolumic); + parafield->getField()->setNature(IntensiveMaximum); } dec->attachLocalField(parafield); dec->synchronize(); @@ -150,14 +150,14 @@ void ParaMEDMEMTest::testFabienAPI2() std::copy(targetCoords,targetCoords+8,myCoords->getPointer()); mesh->setCoords(myCoords); myCoords->decrRef(); - int targetConn[4]={0,2,3,1}; + mcIdType targetConn[4]={0,2,3,1}; mesh->allocateCells(1); mesh->insertNextCell(INTERP_KERNEL::NORM_QUAD4,4,targetConn); mesh->finishInsertingCells(); MEDCoupling::ComponentTopology comptopo; paramesh=new ParaMESH(mesh,*dec->getSourceGrp(),"source mesh"); parafield=new ParaFIELD(ON_CELLS,NO_TIME,paramesh, comptopo); - parafield->getField()->setNature(ConservativeVolumic); + parafield->getField()->setNature(IntensiveMaximum); double *vals=parafield->getField()->getArray()->getPointer(); vals[0]=7.; } @@ -170,7 +170,7 @@ void ParaMEDMEMTest::testFabienAPI2() std::copy(targetCoords,targetCoords+8,myCoords->getPointer()); mesh->setCoords(myCoords); myCoords->decrRef(); - int targetConn[6]={0,2,1,2,3,1}; + mcIdType targetConn[6]={0,2,1,2,3,1}; mesh->allocateCells(2); mesh->insertNextCell(INTERP_KERNEL::NORM_TRI3,3,targetConn); mesh->insertNextCell(INTERP_KERNEL::NORM_TRI3,3,targetConn+3); @@ -178,7 +178,7 @@ void ParaMEDMEMTest::testFabienAPI2() MEDCoupling::ComponentTopology comptopo; paramesh=new ParaMESH(mesh,*dec->getTargetGrp(),"target mesh"); parafield=new ParaFIELD(ON_CELLS,NO_TIME,paramesh, comptopo); - parafield->getField()->setNature(ConservativeVolumic); + parafield->getField()->setNature(IntensiveMaximum); } dec->attachLocalField(parafield); dec->synchronize();