mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-28 02:00:59 -06:00
return well iterations.
This commit is contained in:
parent
969f6f1d1b
commit
b14ebe7616
@ -108,12 +108,18 @@ namespace Opm {
|
||||
/// Number of linear solver iterations used in all calls to step().
|
||||
unsigned int linearIterations() const;
|
||||
|
||||
/// Number of well iterations used in all calls to step().
|
||||
unsigned int wellIterations() const;
|
||||
|
||||
/// Number of nonlinear solver iterations used in the last call to step().
|
||||
unsigned int nonlinearIterationsLastStep() const;
|
||||
|
||||
/// Number of linear solver iterations used in the last call to step().
|
||||
unsigned int linearIterationsLastStep() const;
|
||||
|
||||
/// Number of well iterations used in the last call to step().
|
||||
unsigned int wellIterationsLastStep() const;
|
||||
|
||||
/// Reference to physical model.
|
||||
const PhysicalModel& model() const;
|
||||
|
||||
@ -151,8 +157,10 @@ namespace Opm {
|
||||
std::unique_ptr<PhysicalModel> model_;
|
||||
unsigned int nonlinearIterations_;
|
||||
unsigned int linearIterations_;
|
||||
unsigned int wellIterations_;
|
||||
unsigned int nonlinearIterationsLast_;
|
||||
unsigned int linearIterationsLast_;
|
||||
unsigned int wellIterationsLast_;
|
||||
};
|
||||
} // namespace Opm
|
||||
|
||||
|
@ -54,6 +54,12 @@ namespace Opm
|
||||
return linearIterations_;
|
||||
}
|
||||
|
||||
template <class PhysicalModel>
|
||||
unsigned int NonlinearSolver<PhysicalModel>::wellIterations() const
|
||||
{
|
||||
return wellIterations_;
|
||||
}
|
||||
|
||||
template <class PhysicalModel>
|
||||
const PhysicalModel& NonlinearSolver<PhysicalModel>::model() const
|
||||
{
|
||||
@ -78,6 +84,12 @@ namespace Opm
|
||||
return linearIterationsLast_;
|
||||
}
|
||||
|
||||
template <class PhysicalModel>
|
||||
unsigned int NonlinearSolver<PhysicalModel>::wellIterationsLastStep() const
|
||||
{
|
||||
return wellIterationsLast_;
|
||||
}
|
||||
|
||||
|
||||
template <class PhysicalModel>
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user