Skip to content
Snippets Groups Projects
Commit 4e1bcd94 authored by Rémi Cresson's avatar Rémi Cresson
Browse files

REFAC: move GetProcFromDivision from header to txx file

parent 7aa1ed31
No related branches found
No related tags found
No related merge requests found
......@@ -269,12 +269,7 @@ private:
/*
* Returns the process id which process a given region
*/
unsigned int GetProcFromDivision(unsigned int regionIndex)
{
if (otb::MPIConfig::Instance()->GetNbProcs()==0)
return 0;
return ( regionIndex % otb::MPIConfig::Instance()->GetNbProcs());
}
unsigned int GetProcFromDivision(unsigned int regionIndex);
/*
* Arranges the splitting layout to match the number of MPI processes
......
......@@ -64,6 +64,16 @@ SimpleParallelTiffWriter<TInputImage>
{
}
template <class TInputImage>
unsigned int
SimpleParallelTiffWriter<TInputImage>
::GetProcFromDivision(unsigned int regionIndex)
{
if (otb::MPIConfig::Instance()->GetNbProcs()==0)
return 0;
return ( regionIndex % otb::MPIConfig::Instance()->GetNbProcs());
}
/*
* Arranges the splitting layout to match the number of MPI processes
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment