mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-16 16:31:55 -06:00
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:
parent
eb4e2c9548
commit
69240fe435
@ -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
|
||||
|
@ -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] ) {
|
||||
|
Loading…
Reference in New Issue
Block a user