return well iterations.

This commit is contained in:
Liu Ming 2016-06-20 15:31:25 +08:00
parent 969f6f1d1b
commit b14ebe7616
2 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -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