Commit d283c020 authored by remicres's avatar remicres

FIX: Compilation error with MPI implementation

parent aa288e4d
......@@ -119,6 +119,7 @@ void Controller<TSegmenter>::RunSegmentation()
#ifdef OTB_USE_MPI
// Only the master process is doing the next part
if (otb::MPIConfig::Instance()->GetMyRank() != 0)
return;
#endif
......
......@@ -37,15 +37,8 @@ MergeAllGraphsAndAchieveSegmentation(
std::cout << "--- Graph aggregation...\n" << std::endl;
// TODO parallelize this ?
#ifdef OTB_USE_MPI
if (otb::MPIConfig::Instance()->GetMyRank() != 0)
return;
#endif
TSegmenter segmenter;
std::cout << "Reading graphs" << std::endl;
for(unsigned int row = 0; row < nbTilesY; ++row)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment