}
}
#ifdef HAVE_MPI2
- if (MyGlobals::_Verbose>500) MPI_Barrier(MPI_COMM_WORLD); //synchronize verbose trace
+ if (MyGlobals::_Verbose>500 && MyGlobals::_World_Size>1) MPI_Barrier(MPI_COMM_WORLD); //synchronize verbose trace
#endif
if (MyGlobals::_Is0verbose>500) std::cout << std::endl;
}
}
#ifdef HAVE_MPI2
- if (MyGlobals::_Verbose>500) MPI_Barrier(MPI_COMM_WORLD); //synchronize verbose trace
+ if (MyGlobals::_Verbose>500 && MyGlobals::_World_Size>1) MPI_Barrier(MPI_COMM_WORLD); //synchronize verbose trace
#endif
if (MyGlobals::_Is0verbose>500) std::cout << std::endl;
for (int iold=0; iold<oldTopology->nbDomain(); iold++)
{
int ioldNbCell=oldTopology->getCellNumber(iold);
- //cout<<"proc "<<MyGlobals::_Rank<<" : cell number old domain "<<iold<<" : "<<ioldNbCell<<endl;
+ //std::cout<<"proc "<<MyGlobals::_Rank<<" : cell number old domain "<<iold<<" : "<<ioldNbCell<<std::endl;
//if not my old domains getCellNumber is 0
std::vector<int> globalids(ioldNbCell);
oldTopology->getCellList(iold, &globalids[0]); //unique global numerotation
#ifndef __MEDPARTITIONER_PARALLELTOPOLOGY_HXX__
#define __MEDPARTITIONER_PARALLELTOPOLOGY_HXX__
-#include "MEDPARTITIONER.hxx"
-
#include "MEDPARTITIONER_Topology.hxx"
#include "MEDPARTITIONER_ParaDomainSelector.hxx"
{
class SkyLineArray;
class ParaDomainSelector;
- class MEDPARTITIONER_EXPORT MEDPARTITIONER_EXPORT UserGraph : public Graph
+ class MEDPARTITIONER_EXPORT UserGraph : public Graph
{
public:
UserGraph(MEDPARTITIONER::SkyLineArray*, const int*, int);
*/
std::vector<std::string> MEDPARTITIONER::AllgathervVectorOfString(const std::vector<std::string>& vec)
{
+ if (MyGlobals::_World_Size==1) //nothing to do
+ return vec;
+
int world_size=MyGlobals::_World_Size;
std::string str=SerializeFromVectorOfString(vec);