Added checks for BHP and fluid_volume_rate for group control. Also added error tolerance for group control

This commit is contained in:
Kjetil Olsen Lye committed 2012-04-13 12:57:47 +02:00
1 parent 40ac7414ac
commit fcca65748e
1 file changed
+1 -1
+1 -1
View File
@@ -76,7 +76,7 @@ int main(int argc, char** argv) {
std::vector<double> well_rate; std::vector<double> well_rate;
pressure_solver.solve(totmob, omega, src, wdp, bcs.c_bcs(), pressure, face_flux, well_bhp, well_rate); pressure_solver.solve(totmob, omega, src, wdp, bcs.c_bcs(), pressure, face_flux, well_bhp, well_rate);
std::cout << "Solved" << std::endl; std::cout << "Solved" << std::endl;
if(wells.wellCollection().conditionsMet(well_bhp, well_rate)) { if(wells.wellCollection().conditionsMet(well_bhp, well_rate, *grid.c_grid(), state.saturation() )) {
std::cout << "Conditions met for wells!" << std::endl; std::cout << "Conditions met for wells!" << std::endl;
} }
else else