mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
simplify BlackoilModelEbos::isParallel()
This commit is contained in:
parent
4411712dce
commit
3a9146866a
@ -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(); }
|
||||
|
Loading…
Reference in New Issue
Block a user