more convenient name.

This commit is contained in:
Robert Kloefkorn committed 2014-10-07 10:45:09 +02:00
1 parent b111fbbb15
commit ba316dd651
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -57,12 +57,12 @@ namespace Opm
}
// compute || u^n - u^n+1 ||
const double stateOld = euclideanNorm2( p0_.begin(), p0_.end() ) +
euclideanNorm2( sat0_.begin(), sat0_.end() );
const double stateOld = euclideanNormSquared( p0_.begin(), p0_.end() ) +
euclideanNormSquared( sat0_.begin(), sat0_.end() );
// compute || u^n+1 ||
const double stateNew = euclideanNorm2( state.pressure().begin(), state.pressure().end() ) +
euclideanNorm2( state.saturation().begin(), state.saturation().end() );
const double stateNew = euclideanNormSquared( state.pressure().begin(), state.pressure().end() ) +
euclideanNormSquared( state.saturation().begin(), state.saturation().end() );
// shift errors
for( int i=0; i<2; ++i )