StandardWellsDense: fix two assertations

the compiler suggested braces around the conditions, and by look of
it, it was right: these asserts most likely want express that only the
threephase case or the twophase case without gas are handled...
This commit is contained in:
Andreas Lauser 2016-11-29 13:22:19 +01:00
parent eb4e2c9548
commit 69240fe435
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ enum WellVariablePositions {
// assumes the gas fractions are stored after water fractions
// WellVariablePositions needs to be changed for 2p runs
assert (np == 3 || np == 2 && !pu.phase_used[Gas] );
assert (np == 3 || (np == 2 && !pu.phase_used[Gas]) );
#endif
// set invDuneD

View File

@ -124,7 +124,7 @@ namespace Opm
const int waterpos = pu.phase_pos[Water];
const int gaspos = pu.phase_pos[Gas];
assert (np == 3 || np == 2 && !pu.phase_used[Gas] );
assert(np == 3 || (np == 2 && !pu.phase_used[Gas]));
// assumes the gas fractions are stored after water fractions
if(std::abs(total_rates) > 0) {
if( pu.phase_used[Water] ) {