Merge pull request #1018 from andlaus/simplify_isParallel

simplify BlackoilModelEbos::isParallel()
This commit is contained in:
Atgeirr Flø Rasmussen 2017-01-12 10:41:15 +01:00 committed by GitHub
commit 0028b35e03

View File

@ -205,25 +205,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(); }