Enable single-phase runs.

This commit is contained in:
Halvor M. Nilsen
2019-10-11 08:19:18 +02:00
committed by Atgeirr Flø Rasmussen
parent e4e8425bad
commit d873ae165d
12 changed files with 264 additions and 171 deletions
@@ -128,13 +128,17 @@ namespace Opm
{
// shift errors
for( int i=0; i<2; ++i ) {
errors_[ i ] = errors_[i+1];
errors_[ i ] = errors_[i+1];
}
// store new error
const double error = relChange.relativeChange();
errors_[ 2 ] = error;
for( int i=0; i<2; ++i ) {
assert(std::isfinite(errors_[i]));
assert(errors_[i]>0);
}
if( error > tol_ )
{
// adjust dt by given tolerance