mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
computeTimeError --> relativeChange.
This commit is contained in:
@@ -180,7 +180,7 @@ namespace Opm {
|
|||||||
|
|
||||||
/// \brief compute the relative change between to simulation states
|
/// \brief compute the relative change between to simulation states
|
||||||
// \return || u^n+1 - u^n || / || u^n+1 ||
|
// \return || u^n+1 - u^n || / || u^n+1 ||
|
||||||
double computeTimeError( const SimulatorState& previous, const SimulatorState& current ) const;
|
double relativeChange( const SimulatorState& previous, const SimulatorState& current ) const;
|
||||||
|
|
||||||
/// The size (number of unknowns) of the nonlinear system of equations.
|
/// The size (number of unknowns) of the nonlinear system of equations.
|
||||||
int sizeNonLinear() const;
|
int sizeNonLinear() const;
|
||||||
|
|||||||
@@ -2387,8 +2387,8 @@ namespace detail {
|
|||||||
template <class Grid, class Implementation>
|
template <class Grid, class Implementation>
|
||||||
double
|
double
|
||||||
BlackoilModelBase<Grid, Implementation>::
|
BlackoilModelBase<Grid, Implementation>::
|
||||||
computeTimeError(const SimulatorState& previous,
|
relativeChange(const SimulatorState& previous,
|
||||||
const SimulatorState& current ) const
|
const SimulatorState& current ) const
|
||||||
{
|
{
|
||||||
std::vector< double > p0 ( previous.pressure() );
|
std::vector< double > p0 ( previous.pressure() );
|
||||||
std::vector< double > sat0( previous.saturation() );
|
std::vector< double > sat0( previous.saturation() );
|
||||||
|
|||||||
Reference in New Issue
Block a user