mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-08 07:23:02 -06:00
Merge pull request #1018 from andlaus/simplify_isParallel
simplify BlackoilModelEbos::isParallel()
This commit is contained in:
commit
0028b35e03
@ -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(); }
|
||||
|
Loading…
Reference in New Issue
Block a user