mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Passed around a WellControlResult argument to the different wellcontrol functions
This commit is contained in:
parent
d557b91db0
commit
4197f16a14
@ -77,7 +77,8 @@ int main(int argc, char** argv) {
|
||||
std::vector<double> well_rate;
|
||||
|
||||
computeFlowRatePerWell(*wells.c_wells(), well_rate_per_cell, well_rate);
|
||||
if(wells.wellCollection().conditionsMet(well_bhp, well_rate, *grid.c_grid(), state.saturation() )) {
|
||||
WellControlResult well_control_results;
|
||||
if(wells.wellCollection().conditionsMet(well_bhp, well_rate, *grid.c_grid(), state.saturation(), well_control_results )) {
|
||||
std::cout << "Conditions met for wells!" << std::endl;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user