-// 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
#include "ComponentTopology.hxx"
#include "ICoCoMEDField.hxx"
#include "MEDLoader.hxx"
+#include "TestInterpKernelUtils.hxx"
#include <string>
#define ENABLE_FORCED_FAILURES
using namespace std;
-using namespace ParaMEDMEM;
+using namespace MEDCoupling;
/*
* Check methods defined in StructuredCoincidentDEC.hxx
return;
}
- ParaMEDMEM::CommInterface interface;
+ MEDCoupling::CommInterface interface;
- ParaMEDMEM::MPIProcessorGroup self_group (interface,rank,rank);
- ParaMEDMEM::MPIProcessorGroup target_group(interface,3,size-1);
- ParaMEDMEM::MPIProcessorGroup source_group (interface,0,2);
+ MEDCoupling::MPIProcessorGroup self_group (interface,rank,rank);
+ MEDCoupling::MPIProcessorGroup target_group(interface,3,size-1);
+ MEDCoupling::MPIProcessorGroup source_group (interface,0,2);
- ParaMEDMEM::MEDCouplingUMesh* mesh;
- ParaMEDMEM::ParaMESH* paramesh;
- ParaMEDMEM::ParaFIELD* parafield;
+ MEDCoupling::MEDCouplingUMesh* mesh = nullptr;
+ MEDCoupling::ParaMESH* paramesh = nullptr;
+ MEDCoupling::ParaFIELD* parafield = nullptr;
- string filename_xml1 = getResourceFile("square1_split");
- string filename_2 = getResourceFile("square1.med");
+ string filename_xml1 = INTERP_TEST::getResourceFile("square1_split");
+ string filename_2 = INTERP_TEST::getResourceFile("square1.med");
//string filename_seq_wr = makeTmpFile("");
//string filename_seq_med = makeTmpFile("myWrField_seq_pointe221.med");
//loading the geometry for the source group
- ParaMEDMEM::StructuredCoincidentDEC dec(source_group, target_group);
+ MEDCoupling::StructuredCoincidentDEC dec(source_group, target_group);
MPI_Barrier(MPI_COMM_WORLD);
if (source_group.containsMyRank()) {
ostringstream meshname;
meshname<< "Mesh_2_"<< rank+1;
- mesh=MEDLoader::ReadUMeshFromFile(strstream.str().c_str(),meshname.str().c_str(),0);
+ mesh=ReadUMeshFromFile(strstream.str().c_str(),meshname.str().c_str(),0);
paramesh=new ParaMESH (mesh,source_group,"source mesh");
- ParaMEDMEM::ComponentTopology comptopo(6);
+ MEDCoupling::ComponentTopology comptopo(6);
parafield = new ParaFIELD(ON_CELLS,NO_TIME,paramesh, comptopo);
int nb_local=mesh->getNumberOfCells();
- const int* global_numbering = paramesh->getGlobalNumberingCell();
+ const mcIdType* global_numbering = paramesh->getGlobalNumberingCell();
double *value=parafield->getField()->getArray()->getPointer();
for(int ielem=0; ielem<nb_local;ielem++)
if (target_group.containsMyRank()) {
string meshname2("Mesh_2");
- mesh = MEDLoader::ReadUMeshFromFile(filename_2.c_str(),meshname2.c_str(),0);
+ mesh = ReadUMeshFromFile(filename_2.c_str(),meshname2.c_str(),0);
paramesh=new ParaMESH (mesh,self_group,"target mesh");
- ParaMEDMEM::ComponentTopology comptopo(6, &target_group);
+ MEDCoupling::ComponentTopology comptopo(6, &target_group);
parafield = new ParaFIELD(ON_CELLS,NO_TIME,paramesh, comptopo);