mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
timeError --> relativeChange.
This commit is contained in:
@@ -26,19 +26,19 @@ namespace Opm
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
///
|
||||
/// TimeStepControlInterface
|
||||
/// RelativeChangeInterface
|
||||
///
|
||||
///////////////////////////////////////////////////////////////////
|
||||
class SolutionTimeErrorInterface
|
||||
class RelativeChangeInterface
|
||||
{
|
||||
protected:
|
||||
SolutionTimeErrorInterface() {}
|
||||
RelativeChangeInterface() {}
|
||||
public:
|
||||
/// \return || u^n+1 - u^n || / || u^n+1 ||
|
||||
virtual double timeError() const = 0;
|
||||
virtual double relativeChange() const = 0;
|
||||
|
||||
/// virtual destructor (empty)
|
||||
virtual ~SolutionTimeErrorInterface () {}
|
||||
virtual ~RelativeChangeInterface() {}
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
@@ -57,7 +57,7 @@ namespace Opm
|
||||
/// \param timeError object to compute || u^n+1 - u^n || / || u^n+1 ||
|
||||
///
|
||||
/// \return suggested time step size for the next step
|
||||
virtual double computeTimeStepSize( const double dt, const int iterations, const SolutionTimeErrorInterface& timeError ) const = 0;
|
||||
virtual double computeTimeStepSize( const double dt, const int iterations, const RelativeChangeInterface& relativeChange ) const = 0;
|
||||
|
||||
/// virtual destructor (empty)
|
||||
virtual ~TimeStepControlInterface () {}
|
||||
|
||||
Reference in New Issue
Block a user