flow_ebos: fix build with debugging flags

once more, it seems like we became a victim of the combinatorial
explosion of possibilities.
This commit is contained in:
Andreas Lauser
2016-11-29 11:36:30 +01:00
parent 5bb23cfe9d
commit fdb01cb9a3

View File

@@ -114,10 +114,6 @@ enum WellVariablePositions {
return;
}
// 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] );
fluid_ = fluid_arg;
active_ = active_arg;
vfp_properties_ = vfp_properties_arg;
@@ -133,6 +129,15 @@ enum WellVariablePositions {
const int nperf = wells().well_connpos[nw];
const int nc = numCells();
#ifndef NDEBUG
const auto pu = fluid_->phaseUsage();
const int np = pu.num_phases;
// 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] );
#endif
// set invDuneD
invDuneD_.setSize( nw, nw, nw );