mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
relativeChange: brackets for if statement.
This commit is contained in:
parent
ebf61ed1bd
commit
ab12d95273
@ -2398,7 +2398,7 @@ namespace detail {
|
|||||||
|
|
||||||
// compute u^n - u^n+1
|
// compute u^n - u^n+1
|
||||||
for( std::size_t i=0; i<pSize; ++i ) {
|
for( std::size_t i=0; i<pSize; ++i ) {
|
||||||
p0[ i ] -= current.pressure()[ i ];
|
p0[ i ] -= current.pressure()[ i ];
|
||||||
}
|
}
|
||||||
|
|
||||||
for( std::size_t i=0; i<satSize; ++i ) {
|
for( std::size_t i=0; i<satSize; ++i ) {
|
||||||
@ -2417,10 +2417,12 @@ namespace detail {
|
|||||||
current.numPhases(),
|
current.numPhases(),
|
||||||
linsolver_.parallelInformation() );
|
linsolver_.parallelInformation() );
|
||||||
|
|
||||||
if( stateNew > 0.0 )
|
if( stateNew > 0.0 ) {
|
||||||
return stateOld / stateNew ;
|
return stateOld / stateNew ;
|
||||||
else
|
}
|
||||||
|
else {
|
||||||
return 0.0;
|
return 0.0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class Grid, class Implementation>
|
template <class Grid, class Implementation>
|
||||||
|
Loading…
Reference in New Issue
Block a user