Skip to content

Commit

Permalink
Add injection rates to rate detection algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
joakim-hove committed Jun 3, 2018
1 parent e4c62d6 commit d969e87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ecl/smspec_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions python/tests/ecl_tests/test_sum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))

0 comments on commit d969e87

Please sign in to comment.