mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
add wellIterationsLast_.
This commit is contained in:
@@ -36,7 +36,8 @@ namespace Opm
|
||||
linearIterations_(0),
|
||||
wellIterations_(0),
|
||||
nonlinearIterationsLast_(0),
|
||||
linearIterationsLast_(0)
|
||||
linearIterationsLast_(0),
|
||||
wellIterationsLast_(0)
|
||||
{
|
||||
if (!model_) {
|
||||
OPM_THROW(std::logic_error, "Must provide a non-null model argument for NonlinearSolver.");
|
||||
@@ -85,6 +86,11 @@ namespace Opm
|
||||
return linearIterationsLast_;
|
||||
}
|
||||
|
||||
template <class PhysicalModel>
|
||||
int NonlinearSolver<PhysicalModel>::wellIterationsLastStep() const
|
||||
{
|
||||
return wellIterationsLast_;
|
||||
}
|
||||
|
||||
template <class PhysicalModel>
|
||||
int
|
||||
@@ -143,9 +149,10 @@ namespace Opm
|
||||
|
||||
linearIterations_ += linIters;
|
||||
nonlinearIterations_ += iteration - 1; // Since the last one will always be trivial.
|
||||
wellIterations_ = wellIters;
|
||||
wellIterations_ += wellIters;
|
||||
linearIterationsLast_ = linIters;
|
||||
nonlinearIterationsLast_ = iteration;
|
||||
wellIterationsLast_ = wellIters;
|
||||
|
||||
// Do model-specific post-step actions.
|
||||
model_->afterStep(dt, reservoir_state, well_state);
|
||||
|
||||
Reference in New Issue
Block a user