mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-23 22:32:59 -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
|
bool isParallel() const
|
||||||
isParallel() const
|
{ return grid_.comm().size() > 1; }
|
||||||
{
|
|
||||||
#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
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
const EclipseState& eclState() const
|
const EclipseState& eclState() const
|
||||||
{ return ebosSimulator_.gridManager().eclState(); }
|
{ return ebosSimulator_.gridManager().eclState(); }
|
||||||
|
Loading…
Reference in New Issue
Block a user