mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -114,10 +114,6 @@ enum WellVariablePositions {
|
|||||||
return;
|
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;
|
fluid_ = fluid_arg;
|
||||||
active_ = active_arg;
|
active_ = active_arg;
|
||||||
vfp_properties_ = vfp_properties_arg;
|
vfp_properties_ = vfp_properties_arg;
|
||||||
@@ -133,6 +129,15 @@ enum WellVariablePositions {
|
|||||||
const int nperf = wells().well_connpos[nw];
|
const int nperf = wells().well_connpos[nw];
|
||||||
const int nc = numCells();
|
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
|
// set invDuneD
|
||||||
invDuneD_.setSize( nw, nw, nw );
|
invDuneD_.setSize( nw, nw, nw );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user