//
// 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
//
// 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
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
MPI_Comm gcom;
std::string service = "SERVICE";
std::ostringstream meshfilename, meshname;
MPI_Comm gcom;
std::string service = "SERVICE";
std::ostringstream meshfilename, meshname;
- ParaMEDMEM::ParaMESH *paramesh=0;
- ParaMEDMEM::MEDCouplingUMesh* mesh;
- ParaMEDMEM::ParaFIELD *parafield=0;
- ParaMEDMEM::CommInterface* interface;
- ParaMEDMEM::MPIProcessorGroup* source, *target;
+ MEDCoupling::ParaMESH *paramesh=0;
+ MEDCoupling::MEDCouplingUMesh* mesh;
+ MEDCoupling::ParaFIELD *parafield=0;
+ MEDCoupling::CommInterface* interface;
+ MEDCoupling::MPIProcessorGroup* source, *target;
MPI_Comm_size( MPI_COMM_WORLD, &lsize );
MPI_Comm_rank( MPI_COMM_WORLD, &lrank );
MPI_Comm_size( MPI_COMM_WORLD, &lsize );
MPI_Comm_rank( MPI_COMM_WORLD, &lrank );
- interface = new ParaMEDMEM::CommInterface;
- source = new ParaMEDMEM::MPIProcessorGroup(*interface,0,gsize-lsize-1,gcom);
- target = new ParaMEDMEM::MPIProcessorGroup(*interface,gsize-lsize,gsize-1,gcom);
+ interface = new MEDCoupling::CommInterface;
+ source = new MEDCoupling::MPIProcessorGroup(*interface,0,gsize-lsize-1,gcom);
+ target = new MEDCoupling::MPIProcessorGroup(*interface,gsize-lsize,gsize-1,gcom);
const double targetCoordsAll[3][16]={{0.7,1.45,0.7,1.65,0.9,1.65,0.9,1.45, 1.1,1.4,1.1,1.6,1.3,1.6,1.3,1.4},
{0.7,-0.6,0.7,0.7,0.9,0.7,0.9,-0.6, 1.1,-0.7,1.1,0.6,1.3,0.6,1.3,-0.7},
const double targetCoordsAll[3][16]={{0.7,1.45,0.7,1.65,0.9,1.65,0.9,1.45, 1.1,1.4,1.1,1.6,1.3,1.6,1.3,1.4},
{0.7,-0.6,0.7,0.7,0.9,0.7,0.9,-0.6, 1.1,-0.7,1.1,0.6,1.3,0.6,1.3,-0.7},
mesh->setCoords(myCoords);
myCoords->decrRef();
paramesh=new ParaMESH (mesh,*target,"target mesh");
mesh->setCoords(myCoords);
myCoords->decrRef();
paramesh=new ParaMESH (mesh,*target,"target mesh");
parafield = new ParaFIELD(ON_CELLS,NO_TIME,paramesh, comptopo);
parafield = new ParaFIELD(ON_CELLS,NO_TIME,paramesh, comptopo);
- ParaMEDMEM::InterpKernelDEC dec(*source,*target);
- parafield->getField()->setNature(ConservativeVolumic);
+ MEDCoupling::InterpKernelDEC dec(*source,*target);
+ parafield->getField()->setNature(IntensiveMaximum);
const double *expected=targetResults[grank-(gsize-lsize)];
CPPUNIT_ASSERT_DOUBLES_EQUAL(expected[0],res[0],1e-13);
CPPUNIT_ASSERT_DOUBLES_EQUAL(expected[1],res[1],1e-13);
const double *expected=targetResults[grank-(gsize-lsize)];
CPPUNIT_ASSERT_DOUBLES_EQUAL(expected[0],res[0],1e-13);
CPPUNIT_ASSERT_DOUBLES_EQUAL(expected[1],res[1],1e-13);