From 4197f16a147cf7eae89ed39ce6f5c13761c47e6f Mon Sep 17 00:00:00 2001 From: Kjetil Olsen Lye Date: Tue, 17 Apr 2012 16:36:49 +0200 Subject: [PATCH] Passed around a WellControlResult argument to the different wellcontrol functions --- examples/wells_example.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/wells_example.cpp b/examples/wells_example.cpp index 8059cb8e6..b60a4fb95 100644 --- a/examples/wells_example.cpp +++ b/examples/wells_example.cpp @@ -77,7 +77,8 @@ int main(int argc, char** argv) { std::vector 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