Commit Graph

5 Commits

Author SHA1 Message Date
Jørgen Kvalsvik
a0706a32af Replace silent wrong default with throw
Not asking sum_rate/vol for wat/oil/gas is a programmer error in the
library and shouldn't happen, but is unfortunately unverifiable with the
current tooling. The fall-through now signals a runtime error instead of
silently returning the wrong value.
2016-04-27 10:50:33 +02:00
Jørgen Kvalsvik
e84c888d72 Support for SUMMARY configured output G-keywords
Add support for a set of G-family summary keywords; productions, rates
and ratios.
2016-04-27 10:50:33 +02:00
Jørgen Kvalsvik
bf7217139d Rename wwct/wgor to wct/gor
These functions don't care if the source is a well, group or region, so
they've been renamed to emphasise its generality and reusability.
2016-04-27 09:54:21 +02:00
Jørgen Kvalsvik
0786ec0156 Well dispatcher use partial applications
To clarify intent and the high-level formulas used to calculate the
requested values, a series of partial applications are introduced since
most parameters to the functions are fixed from the caller.

This increases signal-to-noise ratio in the switch dispatch, at the
expense of some boilerplate before the switch itself.
2016-04-26 13:50:52 +02:00
Jørgen Kvalsvik
e09e7fea1f Support for SUMMARY configured output W-keywords
Support for the creation and output of ecl-compatible SUMMARY-section
configured files. Supports a set of Well keywords, with unit conversions
based on user request, and comes with a test suite.
2016-04-25 15:35:46 +02:00