Added WGLIR to SummaryConfigTests.cpp

This commit is contained in:
Håkon Hægland 2020-09-29 15:52:28 +02:00
parent ce4f2a157b
commit 7db5d2fd5c
2 changed files with 7 additions and 5 deletions

View File

@ -469,10 +469,12 @@ double efac( const std::vector<std::pair<std::string,double>>& eff_factors, cons
inline quantity alqrate( const fn_args& args ) {
const auto& well = args.schedule_wells.front();
const auto& name = well.name();
if( args.wells.count( name ) == 0 ) return { 0, measure::gas_surface_rate };
const auto alq_value = args.wells.at(name).rates.get(rt::alq, 0.0);
return { alq_value, measure::gas_surface_rate };
auto xwPos = args.wells.find(well.name());
if (xwPos == args.wells.end()) {
return { 0.0, measure::gas_surface_rate };
}
return { xwPos->second.rates.get(rt::alq, 0.0), measure::gas_surface_rate };
}
template< rt phase, bool injection = true >

View File

@ -392,7 +392,7 @@ static const auto ALL_keywords = {
"WBHP", "WGIR", "WGIT", "WGOR", "WGPR", "WGPT", "WOIR",
"WOIT", "WOPR", "WOPT", "WPI", "WTHP", "WVIR", "WVIT",
"WVPR", "WVPT", "WWCT", "WWGR", "WWIR", "WWIT", "WWPR",
"WWPT",
"WWPT", "WGLIR",
// ALL will not expand to these keywords yet
"AAQR", "AAQRG", "AAQT", "AAQTG"
};