Commit dec0649c authored by Martin Khannouz's avatar Martin Khannouz Committed by Berenger Bramas

Change data mapping function.

When a morton index isn't mapped on any mpi process it is now mapped on
the last one
parent 35b23622
......@@ -921,8 +921,8 @@ protected:
if(nodeRepartition[idxLevel][i][0] <= nodeRepartition[idxLevel][i][1] && idx >= nodeRepartition[idxLevel][i][0] && idx <= nodeRepartition[idxLevel][i][1])
return i;
if(mpi_rank == 0)
cout << "[scalfmm][map error] idx " << idx << " on level " << idxLevel << " isn't mapped on any proccess." << endl;
return -1;
cout << "[scalfmm][map error] idx " << idx << " on level " << idxLevel << " isn't mapped on any proccess. (Default set to 0)." << endl;
return nproc-1;
}
/**
* This function is creating the interactions vector between blocks.
......
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