Remove WellMap from WellState

This commit is contained in:
Joakim Hove
2021-08-24 13:25:02 +02:00
parent 8f9e7d8e96
commit 5a721b8cd2
6 changed files with 71 additions and 139 deletions
+1 -1
View File
@@ -433,7 +433,7 @@ protected:
// TODO: Some inconsistencies here that perhaps should be clarified. The "offical" rate as reported below is
// occasionally significant different from the sum over connections (as calculated above). Only observed
// for small values, neglible for the rate itself, but matters when used to calculate tracer concentrations.
std::size_t well_index = simulator_.problem().wellModel().wellState().wellIndex(well.name());
std::size_t well_index = simulator_.problem().wellModel().wellState().index(well.name()).value();
Scalar official_well_rate_total = simulator_.problem().wellModel().wellState().well(well_index).surface_rates[tr.phaseIdx_];
rateWellTotal = official_well_rate_total;