timeError --> relativeChange.

This commit is contained in:
Robert Kloefkorn
2015-11-10 09:53:40 -07:00
parent 005a0c2930
commit d3af817ff2
4 changed files with 18 additions and 26 deletions

View File

@@ -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 () {}