X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FParaMEDMEMTest%2Ftest_perf.cxx;h=ee5b273eb6b5a61534460de658eac72891897bce;hb=dcc261ea8b9015285a05b5f7bc2960d883815c9a;hp=6a5d646eae4ed12c285b8813f868fa2d83f873f1;hpb=8763c12d01e33d6845dd53be65b001514d00bd42;p=tools%2Fmedcoupling.git diff --git a/src/ParaMEDMEMTest/test_perf.cxx b/src/ParaMEDMEMTest/test_perf.cxx index 6a5d646ea..ee5b273eb 100644 --- a/src/ParaMEDMEMTest/test_perf.cxx +++ b/src/ParaMEDMEMTest/test_perf.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 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 @@ -51,7 +51,7 @@ #endif using namespace std; -using namespace ParaMEDMEM; +using namespace MEDCoupling; void testInterpKernelDEC_2D(const string& filename1, const string& meshname1, const string& filename2, const string& meshname2, @@ -132,24 +132,24 @@ void testInterpKernelDEC_2D(const string& filename_xml1, const string& meshname1 procs_target.insert(i); self_procs.insert(rank); - ParaMEDMEM::CommInterface interface; + MEDCoupling::CommInterface interface; - ParaMEDMEM::ProcessorGroup* self_group = new ParaMEDMEM::MPIProcessorGroup(interface,self_procs); - ParaMEDMEM::ProcessorGroup* target_group = new ParaMEDMEM::MPIProcessorGroup(interface,procs_target); - ParaMEDMEM::ProcessorGroup* source_group = new ParaMEDMEM::MPIProcessorGroup(interface,procs_source); + MEDCoupling::ProcessorGroup* self_group = new MEDCoupling::MPIProcessorGroup(interface,self_procs); + MEDCoupling::ProcessorGroup* target_group = new MEDCoupling::MPIProcessorGroup(interface,procs_target); + MEDCoupling::ProcessorGroup* source_group = new MEDCoupling::MPIProcessorGroup(interface,procs_source); //loading the geometry for the source group - ParaMEDMEM::InterpKernelDEC dec (*source_group,*target_group); + MEDCoupling::InterpKernelDEC dec (*source_group,*target_group); if(tri) dec.setIntersectionType(INTERP_KERNEL::Triangulation); else dec.setIntersectionType(INTERP_KERNEL::Convex); - ParaMEDMEM::MEDCouplingUMesh* mesh; - ParaMEDMEM::ParaMESH* paramesh; - ParaMEDMEM::ParaFIELD* parafield; - ICoCo::Field* icocofield ; + MEDCoupling::MEDCouplingUMesh* mesh = nullptr; + MEDCoupling::ParaMESH* paramesh = nullptr; + MEDCoupling::ParaFIELD* parafield = nullptr; + ICoCo::MEDField* icocofield = nullptr; // To remove tmp files from disk ParaMEDMEMTest_TmpFilesRemover aRemover; @@ -171,7 +171,7 @@ void testInterpKernelDEC_2D(const string& filename_xml1, const string& meshname1 meshname<< meshname1<<"_"<< rank+1; get_time( &telps, &tcpu_u, &tcpu_s, &tcpu ); - mesh=MEDLoader::ReadUMeshFromFile(strstream.str().c_str(),meshname.str().c_str(),0); + mesh=ReadUMeshFromFile(strstream.str().c_str(),meshname.str().c_str(),0); get_time( &telps, &tcpu_u, &tcpu_s, &tcpu ); if( rank == 0 ) cout << "IO : Telapse = " << telps << " TuserCPU = " << tcpu_u << " TsysCPU = " << tcpu_s << " TCPU = " << tcpu << endl; @@ -179,7 +179,7 @@ void testInterpKernelDEC_2D(const string& filename_xml1, const string& meshname1 paramesh=new ParaMESH (mesh,*source_group,"source mesh"); - ParaMEDMEM::ComponentTopology comptopo; + MEDCoupling::ComponentTopology comptopo; parafield = new ParaFIELD(ON_CELLS, NO_TIME, paramesh, comptopo); int nb_local=mesh->getNumberOfCells(); @@ -187,7 +187,7 @@ void testInterpKernelDEC_2D(const string& filename_xml1, const string& meshname1 for(int ielem=0; ielemgetCellMesh(),parafield->getField()); + icocofield=new ICoCo::MEDField(parafield->getField()); dec.attachLocalField(icocofield); } @@ -207,19 +207,19 @@ void testInterpKernelDEC_2D(const string& filename_xml1, const string& meshname1 meshname<< meshname2<<"_"<incrRef(); paramesh=new ParaMESH (mesh,*target_group,"target mesh"); - ParaMEDMEM::ComponentTopology comptopo; + MEDCoupling::ComponentTopology comptopo; parafield = new ParaFIELD(ON_CELLS,NO_TIME,paramesh, comptopo); int nb_local=mesh->getNumberOfCells(); double *value=parafield->getField()->getArray()->getPointer(); for(int ielem=0; ielemgetCellMesh(),parafield->getField()); + icocofield=new ICoCo::MEDField(parafield->getField()); dec.attachLocalField(icocofield); }