mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-16 20:24:48 -06:00
using Dune::MPIHelper::getCommunicator() in newtonmethod.hh
removing function details::getMPIHelperCommunicator() in newtonmethod.hh
This commit is contained in:
parent
6f54bd9310
commit
d90937419c
@ -155,19 +155,6 @@ struct NewtonMaxIterations<TypeTag, TTag::NewtonMethod> { static constexpr int v
|
||||
} // namespace Opm::Properties
|
||||
|
||||
namespace Opm {
|
||||
namespace detail
|
||||
{
|
||||
inline auto getMPIHelperCommunicator()
|
||||
{
|
||||
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2, 7)
|
||||
return Dune::MPIHelper::getCommunicator();
|
||||
#else
|
||||
static Dune::MPIHelper::MPICommunicator comm;
|
||||
return comm;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
* \ingroup Newton
|
||||
* \brief The multi-dimensional Newton method.
|
||||
@ -205,7 +192,7 @@ public:
|
||||
: simulator_(simulator)
|
||||
, endIterMsgStream_(std::ostringstream::out)
|
||||
, linearSolver_(simulator)
|
||||
, comm_(detail::getMPIHelperCommunicator())
|
||||
, comm_(Dune::MPIHelper::getCommunicator())
|
||||
, convergenceWriter_(asImp_())
|
||||
{
|
||||
lastError_ = 1e100;
|
||||
|
Loading…
Reference in New Issue
Block a user