mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
Enable single-phase runs.
This commit is contained in:
committed by
Atgeirr Flø Rasmussen
parent
e4e8425bad
commit
d873ae165d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user