mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
keep the unity of the API.
This commit is contained in:
parent
b14ebe7616
commit
d13d21231d
@ -219,6 +219,8 @@ namespace {
|
|||||||
const double r0 = residualNorm();
|
const double r0 = residualNorm();
|
||||||
const double r_polymer = residual_.material_balance_eq[2].value().matrix().lpNorm<Eigen::Infinity>();
|
const double r_polymer = residual_.material_balance_eq[2].value().matrix().lpNorm<Eigen::Infinity>();
|
||||||
int it = 0;
|
int it = 0;
|
||||||
|
// this solver does not solve well equations first.
|
||||||
|
wellIterations_ = 0;
|
||||||
std::cout << "\nIteration Residual Polymer Res\n"
|
std::cout << "\nIteration Residual Polymer Res\n"
|
||||||
<< std::setw(9) << it << std::setprecision(9)
|
<< std::setw(9) << it << std::setprecision(9)
|
||||||
<< std::setw(18) << r0 << std::setprecision(9)
|
<< std::setw(18) << r0 << std::setprecision(9)
|
||||||
@ -267,6 +269,11 @@ namespace {
|
|||||||
return linearIterations_;
|
return linearIterations_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int FullyImplicitCompressiblePolymerSolver::wellIterations() const
|
||||||
|
{
|
||||||
|
return wellIterations_;
|
||||||
|
}
|
||||||
|
|
||||||
FullyImplicitCompressiblePolymerSolver::ReservoirResidualQuant::ReservoirResidualQuant()
|
FullyImplicitCompressiblePolymerSolver::ReservoirResidualQuant::ReservoirResidualQuant()
|
||||||
: accum(2, ADB::null())
|
: accum(2, ADB::null())
|
||||||
, mflux( ADB::null())
|
, mflux( ADB::null())
|
||||||
|
@ -88,6 +88,7 @@ namespace Opm {
|
|||||||
|
|
||||||
int nonlinearIterations() const;
|
int nonlinearIterations() const;
|
||||||
int linearIterations() const;
|
int linearIterations() const;
|
||||||
|
int wellIterations() const;
|
||||||
|
|
||||||
/// Not used by this class except to satisfy interface requirements.
|
/// Not used by this class except to satisfy interface requirements.
|
||||||
typedef parameter::ParameterGroup SolverParameters;
|
typedef parameter::ParameterGroup SolverParameters;
|
||||||
@ -159,6 +160,7 @@ namespace Opm {
|
|||||||
|
|
||||||
unsigned int newtonIterations_;
|
unsigned int newtonIterations_;
|
||||||
unsigned int linearIterations_;
|
unsigned int linearIterations_;
|
||||||
|
unsigned int wellIterations_;
|
||||||
|
|
||||||
// Private methods.
|
// Private methods.
|
||||||
SolutionState
|
SolutionState
|
||||||
|
Loading…
Reference in New Issue
Block a user