diff --git a/src/opm/output/eclipse/Summary.cpp b/src/opm/output/eclipse/Summary.cpp index 4ae2bf171..fd84983a8 100644 --- a/src/opm/output/eclipse/Summary.cpp +++ b/src/opm/output/eclipse/Summary.cpp @@ -2293,7 +2293,10 @@ static const auto funs = std::unordered_map { { "CTFAC", trans_factors }, { "CDFAC", d_factors }, { "CPI", connection_productivity_index }, - + { "CGFRF", sub(crate, crate) }, // Free gas flow + { "CGFRS", crate }, // Solution gas flow + { "COFRF", sub(crate, crate) }, // Liquid oil flow + { "COFRS", crate }, // Vaporized oil { "FWPR", rate< rt::wat, producer > }, { "FOPR", rate< rt::oil, producer > }, { "FGPR", rate< rt::gas, producer > }, diff --git a/tests/summary_deck.DATA b/tests/summary_deck.DATA index 85791b57a..1b88ec278 100644 --- a/tests/summary_deck.DATA +++ b/tests/summary_deck.DATA @@ -870,6 +870,24 @@ CGPR '*' / / +CGFRF + '*' / +/ + +CGFRS + '*' / +/ + +COFRF + '*' / +/ + +COFRS + '*' / +/ + + + CNFR '*' / / diff --git a/tests/test_Summary.cpp b/tests/test_Summary.cpp index d822c400d..fd18a0349 100644 --- a/tests/test_Summary.cpp +++ b/tests/test_Summary.cpp @@ -1407,6 +1407,13 @@ BOOST_AUTO_TEST_CASE(connection_kewords) { BOOST_CHECK_CLOSE( 1.9, ecl_sum_get_well_connection_var( resp, 1, "W_1", "CPR", 1, 1, 1), 1e-5); + BOOST_CHECK_CLOSE( 100.2-100.4,ecl_sum_get_well_connection_var( resp, 1, "W_1", "CGFRF", 1, 1, 1 ), 1e-5 ); + BOOST_CHECK_CLOSE( 100.4, ecl_sum_get_well_connection_var( resp, 1, "W_1", "CGFRS", 1, 1, 1 ), 1e-5 ); + + BOOST_CHECK_CLOSE( 100.1-100.5,ecl_sum_get_well_connection_var( resp, 1, "W_1", "COFRF", 1, 1, 1 ), 1e-5 ); + BOOST_CHECK_CLOSE( 100.5, ecl_sum_get_well_connection_var( resp, 1, "W_1", "COFRS", 1, 1, 1 ), 1e-5 ); + + BOOST_CHECK_MESSAGE(! ecl_sum_has_well_connection_var( resp, "W_1", "CVPR", 1, 1, 1 ), "Summary vector CVPR must NOT exist for connection 1,1,1 of well W_1");