X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FParaMEDMEMTest%2FParaMEDMEMTest_ICoco.cxx;h=480c0d54f0b003a79e8731b5aebb37b700593939;hb=d426837c21eca9b56b9b8a7a7434aaf3969c8977;hp=0a15f558966d2bd20f620294355aadfa6f5e0cda;hpb=e8f616a523471bd47f2eb60e6fded7b2b6363639;p=tools%2Fmedcoupling.git diff --git a/src/ParaMEDMEMTest/ParaMEDMEMTest_ICoco.cxx b/src/ParaMEDMEMTest/ParaMEDMEMTest_ICoco.cxx index 0a15f5589..480c0d54f 100644 --- a/src/ParaMEDMEMTest/ParaMEDMEMTest_ICoco.cxx +++ b/src/ParaMEDMEMTest/ParaMEDMEMTest_ICoco.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D +// Copyright (C) 2007-2016 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 @@ -67,8 +67,8 @@ void affiche(const ParaFIELD& field) MEDCouplingUMesh *init_quad() { - MEDCouplingAutoRefCountObjectPtr m(MEDCouplingUMesh::New("champ_quad",2)); - MEDCouplingAutoRefCountObjectPtr coo(DataArrayDouble::New()); + MCAuto m(MEDCouplingUMesh::New("champ_quad",2)); + MCAuto coo(DataArrayDouble::New()); const double dataCoo[24]={0.,0.,0.,1.,0.,0.,0.,0.,1.,1.,0.,1.,0.,1e-05,0.,1.,1e-05,0.,0.,1e-05,1.,1.,1e-05,1.}; coo->alloc(8,3); std::copy(dataCoo,dataCoo+24,coo->getPointer()); @@ -82,8 +82,8 @@ MEDCouplingUMesh *init_quad() MEDCouplingUMesh *init_triangle() { - MEDCouplingAutoRefCountObjectPtr m(MEDCouplingUMesh::New("champ_triangle",2)); - MEDCouplingAutoRefCountObjectPtr coo(DataArrayDouble::New()); + MCAuto m(MEDCouplingUMesh::New("champ_triangle",2)); + MCAuto coo(DataArrayDouble::New()); const double dataCoo[24]={0.,0.,0.,1.,0.,0.,0.,0.,1.,1.,0.,1.,0.,1e-05,0.,1.,1e-05,0.,0.,1e-05,1.,1.,1e-05,1.}; coo->alloc(8,3); std::copy(dataCoo,dataCoo+24,coo->getPointer()); @@ -126,21 +126,21 @@ void ParaMEDMEMTest::testICoco1() MEDCoupling::ParaMESH *paramesh(0); if (cas=="emetteur") { - MEDCouplingAutoRefCountObjectPtr mesh_emetteur(init_triangle()); + MCAuto mesh_emetteur(init_triangle()); paramesh=new MEDCoupling::ParaMESH(mesh_emetteur,emetteur_group,"emetteur mesh"); MEDCoupling::ComponentTopology comptopo; champ_emetteur=new MEDCoupling::ParaFIELD(ON_CELLS,ONE_TIME,paramesh,comptopo); - champ_emetteur->getField()->setNature(ConservativeVolumic); + champ_emetteur->getField()->setNature(IntensiveMaximum); champ_emetteur->setOwnSupport(true); champ_emetteur->getField()->getArray()->fillWithValue(1.); } else { - MEDCouplingAutoRefCountObjectPtr mesh_recepteur(init_quad()); + MCAuto mesh_recepteur(init_quad()); paramesh=new MEDCoupling::ParaMESH(mesh_recepteur,recepteur_group,"recepteur mesh"); MEDCoupling::ComponentTopology comptopo; champ_recepteur=new MEDCoupling::ParaFIELD(ON_CELLS,ONE_TIME,paramesh,comptopo); - champ_recepteur->getField()->setNature(ConservativeVolumic); + champ_recepteur->getField()->setNature(IntensiveMaximum); champ_recepteur->setOwnSupport(true); }