simplify BlackoilModelEbos::isParallel()

This commit is contained in:
Andreas Lauser 2017-01-11 18:57:47 +01:00
parent 4411712dce
commit 3a9146866a

View File

@ -207,25 +207,8 @@ namespace Opm {
}
}
bool
isParallel() const
{
#if HAVE_MPI
if ( istlSolver().parallelInformation().type() !=
typeid(ParallelISTLInformation) )
{
return false;
}
else
{
const auto& comm =boost::any_cast<const ParallelISTLInformation&>(istlSolver().parallelInformation()).communicator();
return comm.size() > 1;
}
#else
return false;
#endif
}
bool isParallel() const
{ return grid_.comm().size() > 1; }
const EclipseState& eclState() const
{ return ebosSimulator_.gridManager().eclState(); }