From: secher Date: Mon, 4 May 2009 14:16:14 +0000 (+0000) Subject: use an other constructor of MPIProcessorGroup X-Git-Tag: V5_1_main_FINAL~394 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b1226224c8e7495e7353bc808fcb30168124e52c;p=tools%2Fmedcoupling.git use an other constructor of MPIProcessorGroup --- diff --git a/src/ParaMEDMEM/MPIProcessorGroup.cxx b/src/ParaMEDMEM/MPIProcessorGroup.cxx index 8fb3208d2..d5b676781 100644 --- a/src/ParaMEDMEM/MPIProcessorGroup.cxx +++ b/src/ParaMEDMEM/MPIProcessorGroup.cxx @@ -118,7 +118,7 @@ namespace ParaMEDMEM \param pstart id in MPI_COMM_WORLD of the first processor in the group \param pend id in MPI_COMM_WORLD of the last processor in the group */ - MPIProcessorGroup::MPIProcessorGroup (const CommInterface& comm_interface, int pstart, int pend): ProcessorGroup(comm_interface,pstart,pend),_world_comm(MPI_COMM_WORLD) + MPIProcessorGroup::MPIProcessorGroup (const CommInterface& comm_interface, int pstart, int pend, const MPI_Comm& world_comm): ProcessorGroup(comm_interface,pstart,pend),_world_comm(world_comm) { //Creation of a communicator MPI_Group group_world; diff --git a/src/ParaMEDMEM/MPIProcessorGroup.hxx b/src/ParaMEDMEM/MPIProcessorGroup.hxx index 62c9f438a..ee679f855 100644 --- a/src/ParaMEDMEM/MPIProcessorGroup.hxx +++ b/src/ParaMEDMEM/MPIProcessorGroup.hxx @@ -33,7 +33,7 @@ namespace ParaMEDMEM MPIProcessorGroup(const CommInterface& interface); MPIProcessorGroup(const CommInterface& interface, std::set proc_ids, const MPI_Comm& world_comm=MPI_COMM_WORLD); MPIProcessorGroup (const ProcessorGroup& proc_group, std::set proc_ids); - MPIProcessorGroup(const CommInterface& interface,int pstart, int pend); + MPIProcessorGroup(const CommInterface& interface,int pstart, int pend, const MPI_Comm& world_comm=MPI_COMM_WORLD); virtual ~MPIProcessorGroup(); virtual ProcessorGroup* fuse (const ProcessorGroup&) const; void intersect (ProcessorGroup&) { }