Merge pull request #958 from andlaus/fix_asserts

StandardWellsDense: fix two assertations
This commit is contained in:
Bård Skaflestad 2016-11-29 15:05:32 +01:00 committed by GitHub
commit 6281d1f090
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] ) {