From d969e87d743ca3df62c6f4f1d02a99ffebc2d5ae Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Sun, 3 Jun 2018 23:28:19 +0200 Subject: [PATCH] Add injection rates to rate detection algorithm --- lib/ecl/smspec_node.cpp | 2 +- python/tests/ecl_tests/test_sum.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ecl/smspec_node.cpp b/lib/ecl/smspec_node.cpp index 6b6774de76..ce6f61ea26 100644 --- a/lib/ecl/smspec_node.cpp +++ b/lib/ecl/smspec_node.cpp @@ -283,7 +283,7 @@ static char LAST_CHAR(const char * s) { bool smspec_node_identify_rate(const char * keyword) { - const char *rate_vars[] = {"OPR" , "GPR" , "WPR" , "GOR" , "WCT"}; + const char *rate_vars[] = {"OPR" , "GPR" , "WPR" , "LPR", "OIR", "GIR", "WIR", "LIR", "GOR" , "WCT"}; int num_rate_vars = sizeof( rate_vars ) / sizeof( rate_vars[0] ); bool is_rate = false; int ivar; diff --git a/python/tests/ecl_tests/test_sum.py b/python/tests/ecl_tests/test_sum.py index 822ceedb35..1523a3a47a 100644 --- a/python/tests/ecl_tests/test_sum.py +++ b/python/tests/ecl_tests/test_sum.py @@ -569,3 +569,4 @@ def test_total_and_rate(self): self.assertTrue( EclSum.is_rate("WOPR:OP_4")) self.assertFalse( EclSum.is_rate("BPR:123")) + self.assertTrue(EclSum.is_rate("FWIR"))