Commit e157be33 authored by Lukas Riedel's avatar Lukas Riedel

fixed bug in 'check_parallel_allowed'

parent e75d0ced
......@@ -11,7 +11,7 @@ namespace Dorie {
template<typename GridType>
void check_parallel_allowed (const Dune::MPIHelper& helper)
{
if(helper.rank() > 1
if(helper.size() > 1
&& !std::is_same<YaspGrid<GridType::dimension>,GridType>::value) {
DUNE_THROW(Dune::Exception,"DORiE does not support parallel execution with this grid configuration!");
}
......
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