ok, now we got it. euclidianNormSquared.
This commit is contained in:
@@ -57,12 +57,12 @@ namespace Opm
|
||||
}
|
||||
|
||||
// compute || u^n - u^n+1 ||
|
||||
const double stateOld = euclideanNormSquared( p0_.begin(), p0_.end() ) +
|
||||
euclideanNormSquared( sat0_.begin(), sat0_.end() );
|
||||
const double stateOld = euclidianNormSquared( p0_.begin(), p0_.end() ) +
|
||||
euclidianNormSquared( sat0_.begin(), sat0_.end() );
|
||||
|
||||
// compute || u^n+1 ||
|
||||
const double stateNew = euclideanNormSquared( state.pressure().begin(), state.pressure().end() ) +
|
||||
euclideanNormSquared( state.saturation().begin(), state.saturation().end() );
|
||||
const double stateNew = euclidianNormSquared( state.pressure().begin(), state.pressure().end() ) +
|
||||
euclidianNormSquared( state.saturation().begin(), state.saturation().end() );
|
||||
|
||||
// shift errors
|
||||
for( int i=0; i<2; ++i )
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace Opm
|
||||
protected:
|
||||
// return inner product for given container, here std::vector
|
||||
template <class Iterator>
|
||||
double euclideanNormSquared( Iterator it, const Iterator end ) const
|
||||
double euclidianNormSquared( Iterator it, const Iterator end ) const
|
||||
{
|
||||
double product = 0.0 ;
|
||||
for( ; it != end; ++it )
|
||||
|
||||
Reference in New Issue
Block a user