mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-16 04:51:56 -06:00
Merge pull request #958 from andlaus/fix_asserts
StandardWellsDense: fix two assertations
This commit is contained in:
commit
6281d1f090
@ -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