mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-28 18:21:00 -06:00
BlackoilModelNldd: rename ebosNewtonMethod to newtonMethod
This commit is contained in:
parent
16b0b942e9
commit
9287374ad8
@ -515,20 +515,20 @@ private:
|
|||||||
/// Apply an update to the primary variables.
|
/// Apply an update to the primary variables.
|
||||||
void updateDomainSolution(const Domain& domain, const BVector& dx)
|
void updateDomainSolution(const Domain& domain, const BVector& dx)
|
||||||
{
|
{
|
||||||
auto& modelSimulator = model_.simulator();
|
auto& simulator = model_.simulator();
|
||||||
auto& ebosNewtonMethod = modelSimulator.model().newtonMethod();
|
auto& newtonMethod = simulator.model().newtonMethod();
|
||||||
SolutionVector& solution = modelSimulator.model().solution(/*timeIdx=*/0);
|
SolutionVector& solution = simulator.model().solution(/*timeIdx=*/0);
|
||||||
|
|
||||||
ebosNewtonMethod.update_(/*nextSolution=*/solution,
|
newtonMethod.update_(/*nextSolution=*/solution,
|
||||||
/*curSolution=*/solution,
|
/*curSolution=*/solution,
|
||||||
/*update=*/dx,
|
/*update=*/dx,
|
||||||
/*resid=*/dx,
|
/*resid=*/dx,
|
||||||
domain.cells); // the update routines of the black
|
domain.cells); // the update routines of the black
|
||||||
// oil model do not care about the
|
// oil model do not care about the
|
||||||
// residual
|
// residual
|
||||||
|
|
||||||
// if the solution is updated, the intensive quantities need to be recalculated
|
// if the solution is updated, the intensive quantities need to be recalculated
|
||||||
modelSimulator.model().invalidateAndUpdateIntensiveQuantities(/*timeIdx=*/0, domain);
|
simulator.model().invalidateAndUpdateIntensiveQuantities(/*timeIdx=*/0, domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
//! \brief Get reservoir quantities on this process needed for convergence calculations.
|
//! \brief Get reservoir quantities on this process needed for convergence calculations.
|
||||||
|
Loading…
Reference in New Issue
Block a user