mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Remove unused argument, silence warnings.
This commit is contained in:
parent
7777fe6918
commit
ae1d78f505
@ -698,13 +698,11 @@ namespace Opm {
|
||||
sg = 0;
|
||||
so = 1.0 - sw - sg;
|
||||
const double& rsSat = FluidSystem::oilPvt().saturatedGasDissolutionFactor(fs.pvtRegionIndex(), reservoir_state.temperature()[cell_idx], reservoir_state.pressure()[cell_idx]);
|
||||
double& rs = reservoir_state.gasoilratio()[cell_idx];
|
||||
rs = rsSat*(1-epsilon);
|
||||
} else if (so <= 0.0 && has_vapoil_) {
|
||||
reservoir_state.hydroCarbonState()[cell_idx] = HydroCarbonState::GasOnly; // sg --> rv
|
||||
so = 0;
|
||||
sg = 1.0 - sw - so;
|
||||
double& rv = reservoir_state.rv()[cell_idx];
|
||||
// use gas pressure?
|
||||
const double& rvSat = FluidSystem::gasPvt().saturatedOilVaporizationFactor(fs.pvtRegionIndex(), reservoir_state.temperature()[cell_idx], reservoir_state.pressure()[cell_idx]);
|
||||
rv = rvSat*(1-epsilon);
|
||||
|
@ -242,8 +242,7 @@ public:
|
||||
// Run a multiple steps of the solver depending on the time step control.
|
||||
solver_timer.start();
|
||||
|
||||
const std::vector<double> pv(geo_.poreVolume().data(), geo_.poreVolume().data() + geo_.poreVolume().size());
|
||||
const WellModel well_model(wells, model_param_, terminal_output_, pv);
|
||||
const WellModel well_model(wells, model_param_, terminal_output_);
|
||||
|
||||
auto solver = createSolver(well_model);
|
||||
|
||||
|
@ -83,8 +83,7 @@ enum WellVariablePositions {
|
||||
// --------- Public methods ---------
|
||||
StandardWellsDense(const Wells* wells_arg,
|
||||
const ModelParameters& param,
|
||||
const bool terminal_output,
|
||||
const std::vector<double>& pv)
|
||||
const bool terminal_output)
|
||||
: wells_active_(wells_arg!=nullptr)
|
||||
, wells_(wells_arg)
|
||||
, param_(param)
|
||||
@ -1290,7 +1289,6 @@ enum WellVariablePositions {
|
||||
}
|
||||
std::vector<double> g = {1,1,0.01};
|
||||
if (well_controls_iget_type(wc, current) == RESERVOIR_RATE) {
|
||||
const double* distr = well_controls_iget_distr(wc, current);
|
||||
for (int phase = 0; phase < np; ++phase) {
|
||||
g[phase] = distr[phase];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user