//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#include "MEDMEM_Grid.hxx"
#include "CommInterface.hxx"
+#include "MEDMEM_Grid.hxx"
#include "ProcessorGroup.hxx"
#include "MPIProcessorGroup.hxx"
#include "Topology.hxx"
#ifndef COMPONENTTOPOLOGY_HXX_
#define COMPONENTTOPOLOGY_HXX_
-#include <vector>
#include "ProcessorGroup.hxx"
+#include <vector>
#include "Topology.hxx"
}
}
}
- MESSAGE (" rank "<<group->myRank()<< " broadcastTopology is over");
+ MESSAGE_MED (" rank "<<group->myRank()<< " broadcastTopology is over");
}
void ExplicitCoincidentDEC::transferMappingToSource()
{
//MPI_COMM_WORLD is used instead of group because there is no
//mechanism for creating the union group yet
- MESSAGE("recvData");
+ MESSAGE_MED("recvData");
cout<<"start AllToAll"<<endl;
void ExplicitCoincidentDEC::sendData()
{
- MESSAGE ("sendData");
+ MESSAGE_MED ("sendData");
for (int i=0; i< 4; i++)
cout << _sendcounts[i]<<" ";
cout <<endl;
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include "CommInterface.hxx"
#include "MEDMEM_Mesh.hxx"
#include "MEDMEM_Support.hxx"
-#include "CommInterface.hxx"
#include "ProcessorGroup.hxx"
#include "MPIProcessorGroup.hxx"
#include "ParaSUPPORT.hxx"
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include "ParaMESH.hxx"
#include "ICoCoMEDField.hxx"
#include "ICoCoTrioField.hxx"
#include "ProcessorGroup.hxx"
-#include "ParaMESH.hxx"
#include "UnstructuredParaSUPPORT.hxx"
#include "ParaFIELD.hxx"
#include "MEDMEM_Mesh.hxx"
#ifndef LINEARTIMEINTERPOLATOR_HXX_
#define LINEARTIMEINTERPOLATOR_HXX_
+#include "TimeInterpolator.hxx"
#include <map>
#include <iostream>
-#include "TimeInterpolator.hxx"
-
namespace ParaMEDMEM {
class DEC;
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include "MPI_Access.hxx"
+
#include <iostream>
-#include "MPI_Access.hxx"
#include "MEDMEM_Exception.hxx"
using namespace std;
#include <map>
#include <list>
#include <vector>
+#include <iostream>
namespace ParaMEDMEM
{
struct RequestStruct *aRequestStruct = _MapOfRequestStruct[ RequestId ] ;
if ( aRequestStruct ) {
if ( _Trace )
- cout << "MPI_Access::DeleteRequest" << _MyRank << "( " << RequestId << " ) "
+ std::cout << "MPI_Access::DeleteRequest" << _MyRank << "( " << RequestId << " ) "
<< aRequestStruct << " MPIRequest " << aRequestStruct->MPIRequest
- << " MPIIsRecv " << aRequestStruct->MPIIsRecv << endl ;
+ << " MPIIsRecv " << aRequestStruct->MPIIsRecv << std::endl ;
if ( _MapOfRequestStruct[RequestId]->MPIRequest != MPI_REQUEST_NULL ) {
Request_Free( &_MapOfRequestStruct[RequestId]->MPIRequest ) ;
}
}
else {
if ( _Trace )
- cout << "MPI_Access::DeleteRequest" << _MyRank << "( " << RequestId
- << " ) Request not found" << endl ;
+ std::cout << "MPI_Access::DeleteRequest" << _MyRank << "( " << RequestId
+ << " ) Request not found" << std::endl ;
}
}
// Delete all requests of the array ArrayOfSendRequests
// the corresponding target.
inline void MPI_Access::DeleteSendRecvRequest( int RequestId ) {
if ( _Trace )
- cout << "MPI_Access::DeleteSendRecvRequest" << _MyRank
- << "( " << RequestId << " ) " << endl ;
+ std::cout << "MPI_Access::DeleteSendRecvRequest" << _MyRank
+ << "( " << RequestId << " ) " << std::endl ;
if ( MPIIsRecv( RequestId ) ) {
_RecvRequests[ MPITarget( RequestId ) ].remove( RequestId ) ;
}
#ifndef MPI_ACESSDEC_HXX_
#define MPI_ACESSDEC_HXX_
-#include <map>
-#include <iostream>
-
#include "MPI_Access.hxx"
#include "DEC.hxx"
#include "LinearTimeInterpolator.hxx"
+#include <map>
+#include <iostream>
+
namespace ParaMEDMEM {
// typedef enum{WithoutTimeInterp,LinearTimeInterp} TimeInterpolationMethod;
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include "CommInterface.hxx"
#include "MEDMEM_Exception.hxx"
#include "Topology.hxx"
#include "BlockTopology.hxx"
#include "UnstructuredParaSUPPORT.hxx"
#include "ExplicitCoincidentDEC.hxx"
#include "StructuredCoincidentDEC.hxx"
-#include "CommInterface.hxx"
#include "ProcessorGroup.hxx"
#include "MPIProcessorGroup.hxx"
#include "ParaFIELD.hxx"
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include "ParaGRID.hxx"
+
#include <fstream>
#include <vector>
-#include "ParaGRID.hxx"
-
using namespace std;
namespace ParaMEDMEM
throw (MEDMEM::MEDEXCEPTION){
const char* LOC = "ParaMEDMEM::ParaGRID::write()";
- BEGIN_OF(LOC);
+ BEGIN_OF_MED(LOC);
if (!_block_topology->getProcGroup()->containsMyRank()) return;
strcpy(distfilename,suffix.str().c_str());
filename[i]=string(distfilename);
- MESSAGE("File name "<<string(distfilename));
+ MESSAGE_MED("File name "<<string(distfilename));
}
//creation of the master file by proc 0 on ProgGroup
int id=_grid->addDriver(MEDMEM::MED_DRIVER,filename[myrank],_name);
- MESSAGE("Start writing");
+ MESSAGE_MED("Start writing");
_grid->write(id);
- END_OF("ParaMEDMEM::ParaGRID::write()");
+ END_OF_MED("ParaMEDMEM::ParaGRID::write()");
};
#ifndef PARAGRID_HXX_
#define PARAGRID_HXX_
+#include "CommInterface.hxx"
+
#include <vector>
#include "MEDMEM_Exception.hxx"
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include "ParaMESH.hxx"
+
#include <fstream>
#include <vector>
-#include "ParaMESH.hxx"
#include "ProcessorGroup.hxx"
#include "MPIProcessorGroup.hxx"
#include "Topology.hxx"
throw (MEDMEM::MEDEXCEPTION) :_has_mesh_ownership(true) {
const char* LOC = "MEDSPLITTER::MESHCollectionDriver::read()";
- BEGIN_OF(LOC);
+ BEGIN_OF_MED(LOC);
string meshstring;
// reading ascii master file
try{
- MESSAGE("Start reading");
+ MESSAGE_MED("Start reading");
ifstream asciiinput(filename.c_str());
char charbuffer[512];
asciiinput.getline(charbuffer,512);
int ncell=_mesh->getNumberOfElements(MED_EN::MED_CELL,MED_EN::MED_ALL_ELEMENTS);
int * array=new int[ncell];
int offset=0;
- MESSAGE("Reading cell global numbering for mesh "<< domain_id);
+ MESSAGE_MED("Reading cell global numbering for mesh "<< domain_id);
MED_EN::MESH_ENTITIES::const_iterator currentEntity;
list<MED_EN::medGeometryElement>::const_iterator iter;
currentEntity = MED_EN::meshEntities.find(MED_EN::MED_CELL);
}
_cellglobal=array;
- MESSAGE("Reading node global numbering");
+ MESSAGE_MED("Reading node global numbering");
int nnode= _mesh->getNumberOfNodes();
array=new int[nnode];
med_2_3::MEDglobalNumLire(fid,meshname, array, nnode,
med_2_3::MED_NOEUD, med_2_3::MED_POINT1);
_nodeglobal=array;
- MESSAGE("Reading face global numbering for mesh "<<domain_id);
+ MESSAGE_MED("Reading face global numbering for mesh "<<domain_id);
int nbface=_mesh->getNumberOfElements(MED_EN::MED_FACE,MED_EN::MED_ALL_ELEMENTS);
array=new int[nbface];
currentEntity = MED_EN::meshEntities.find(MED_EN::MED_FACE);
_block_topology=new BlockTopology(group,ncell);
- MESSAGE("end of read");
+ MESSAGE_MED("end of read");
}//of try
catch(...)
// new ParallelTopology((m_collection->getMesh()),(m_collection->getCZ()),cellglobal,nodeglobal,faceglobal)
// );
- END_OF("MEDSPLITTER::MESHCollectionDriver::read()")
+ END_OF_MED("MEDSPLITTER::MESHCollectionDriver::read()")
};
/*! Constructor for creating a ParaMESH from a local mesh and
throw (MEDMEM::MEDEXCEPTION){
const char* LOC = "ParaMEDMEM::ParaMESH::write()";
- BEGIN_OF(LOC);
+ BEGIN_OF_MED(LOC);
if (!_block_topology->getProcGroup()->containsMyRank()) return;
strcpy(distfilename,suffix.str().c_str());
filename[i]=string(distfilename);
- MESSAGE("File name "<<string(distfilename));
+ MESSAGE_MED("File name "<<string(distfilename));
}
//creation of the master file by proc 0 on ProgGroup
if (myrank==0)
{
- MESSAGE("Master File Name "<<master_filename);
+ MESSAGE_MED("Master File Name "<<master_filename);
ofstream file(master_filename.c_str());
if (!file) throw (MEDEXCEPTION("Unable to create master file"));
file <<"#MED Fichier V 2.3"<<" "<<endl;
int id=_mesh->addDriver(MEDMEM::MED_DRIVER,filename[myrank],_name);
- MESSAGE("Start writing");
+ MESSAGE_MED("Start writing");
_mesh->write(id);
_mesh->rmDriver(id);
- END_OF("ParaMEDMEM::ParaMESH::write()");
+ END_OF_MED("ParaMEDMEM::ParaMESH::write()");
};
const int* ParaMESH::getGlobalNumbering(const MED_EN::medEntityMesh entity)const
//
#ifndef PARAMESH_HXX_
#define PARAMESH_HXX_
+
+#include "CommInterface.hxx"
+
#include <string>
#include <vector>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include "ParaMESH.hxx"
#include "ParaSUPPORT.hxx"
#include "ParaMESH.hxx"
#include "MEDMEM_Support.hxx"
//
#ifndef PROCESSORGROUP_HXX_
#define PROCESSORGROUP_HXX_
-#include <set>
-#include "CommInterface.hxx"
+#include "CommInterface.hxx"
+#include <set>
namespace ParaMEDMEM
{
if (topo!=0 && topo->getProcGroup()->myRank()==0)
{
- MESSAGE ("Master rank");
+ MESSAGE_MED ("Master rank");
topo->serialize(serializer, size);
rank_master = group->translateRank(topo->getProcGroup(),0);
- MESSAGE("Master rank world number is "<<rank_master);
- MESSAGE("World Size is "<<group->size());
+ MESSAGE_MED("Master rank world number is "<<rank_master);
+ MESSAGE_MED("World Size is "<<group->size());
for (int i=0; i< group->size(); i++)
{
if (i!= rank_master)
}
else
{
- MESSAGE(" rank "<<group->myRank()<< " waiting ...");
+ MESSAGE_MED(" rank "<<group->myRank()<< " waiting ...");
_comm_interface->recv(&rank_master, 1,MPI_INT, MPI_ANY_SOURCE, tag+group->myRank(), *(group->getComm()),&status);
- MESSAGE(" rank "<<group->myRank()<< "received master rank"<<rank_master);
+ MESSAGE_MED(" rank "<<group->myRank()<< "received master rank"<<rank_master);
}
// The topology is broadcasted to all processsors in the group
_comm_interface->broadcast(&size, 1,MPI_INT,rank_master,*(group->getComm()));
delete[] buffer;
if (serializer!=0)
delete[] serializer;
- MESSAGE (" rank "<<group->myRank()<< " unserialize is over");
+ MESSAGE_MED (" rank "<<group->myRank()<< " unserialize is over");
delete group;
}
{
//MPI_COMM_WORLD is used instead of group because there is no
//mechanism for creating the union group yet
- MESSAGE("recvData");
+ MESSAGE_MED("recvData");
for (int i=0; i< 4; i++)
cout << _recvcounts[i]<<" ";
cout <<endl;
void StructuredCoincidentDEC::sendData()
{
- MESSAGE ("sendData");
+ MESSAGE_MED("sendData");
for (int i=0; i< 4; i++)
cout << _sendcounts[i]<<" ";
cout <<endl;
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include "ParaMESH.hxx"
#include "Topology.hxx"
#include "BlockTopology.hxx"
#include "ParaGRID.hxx"
-#include "ParaMESH.hxx"
#include "StructuredParaSUPPORT.hxx"
#include "MEDMEM_Support.hxx"
#ifndef _MPIACCESSDECTEST_HXX_
#define _MPIACCESSDECTEST_HXX_
+#include "mpi.h"
+
#include <cppunit/extensions/HelperMacros.h>
#include <set>
#include <string>
#include <iostream>
-#include "mpi.h"
class MPIAccessDECTest : public CppUnit::TestFixture
#ifndef _MPIACCESSTEST_HXX_
#define _MPIACCESSTEST_HXX_
+#include "mpi.h"
#include <cppunit/extensions/HelperMacros.h>
#include <set>
#include <string>
#include <iostream>
-#include "mpi.h"
class MPIAccessTest : public CppUnit::TestFixture
#ifndef _ParaMEDMEMTEST_HXX_
#define _ParaMEDMEMTEST_HXX_
+#include "mpi.h"
#include <cppunit/extensions/HelperMacros.h>
#include <set>
#include <string>
#include <iostream>
-#include "mpi.h"
class ParaMEDMEMTest : public CppUnit::TestFixture
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
+
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include "MPIAccessDECTest.hxx"
#include <cppunit/TestAssert.h>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include "MPIAccessDECTest.hxx"
#include <cppunit/TestAssert.h>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include "MPIAccessDECTest.hxx"
#include <cppunit/TestAssert.h>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include <time.h>
#include "MPIAccessDECTest.hxx"
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <math.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include <time.h>
#include "MPIAccessDECTest.hxx"
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <time.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include "MPIAccessTest.hxx"
#include <cppunit/TestAssert.h>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include "MPIAccessTest.hxx"
#include <cppunit/TestAssert.h>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include "MPIAccessTest.hxx"
#include <cppunit/TestAssert.h>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <time.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include "MPIAccessTest.hxx"
#include <cppunit/TestAssert.h>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include "MPIAccessTest.hxx"
#include <cppunit/TestAssert.h>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include "MPIAccessTest.hxx"
#include <cppunit/TestAssert.h>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <time.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include "MPIAccessTest.hxx"
#include <cppunit/TestAssert.h>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include "MPIAccessTest.hxx"
#include <cppunit/TestAssert.h>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include "MPIAccessTest.hxx"
#include <cppunit/TestAssert.h>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include "MPIAccessTest.hxx"
#include <cppunit/TestAssert.h>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include "MPIAccessTest.hxx"
#include <cppunit/TestAssert.h>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include "MPIAccessTest.hxx"
#include <cppunit/TestAssert.h>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include "MPIAccessTest.hxx"
#include <cppunit/TestAssert.h>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include "MPIAccessTest.hxx"
#include <cppunit/TestAssert.h>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <mpi.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
-#include <mpi.h>
#include "MPIAccessTest.hxx"
#include <cppunit/TestAssert.h>
#ifndef TIMEINTERPOLATOR_HXX_
#define TIMEINTERPOLATOR_HXX_
+#include "ProcessorGroup.hxx"
#include <map>
#include <iostream>
-#include "ProcessorGroup.hxx"
-
namespace ParaMEDMEM {
class TimeInterpolator {
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include "ParaMESH.hxx"
#include "Topology.hxx"
#include "ExplicitTopology.hxx"
#include "BlockTopology.hxx"
-#include "ParaMESH.hxx"
#include "UnstructuredParaSUPPORT.hxx"
#include "MEDMEM_Support.hxx"