Joakim Hove
14453560da
Add UDAValue::operator*=
2021-10-19 11:12:06 +02:00
Joakim Hove
7002faba3b
Merge pull request #2662 from joakim-hove/remove-uda-autocreate
...
Remove uda autocreate
2021-09-12 08:45:44 +02:00
Joakim Hove
9bad260538
Special case treatment of trailing slash for UDQ keywords
2021-09-11 08:29:42 +02:00
Joakim Hove
026cbade9c
UDQ - a keyword is not recognized only from UNITS verb
2021-09-09 08:30:00 +02:00
Joakim Hove
babff0e0ba
Stopped auto creation of UDQ ASSIGN from UDQ UNITS
2021-09-09 08:30:00 +02:00
Joakim Hove
aff9cb74d1
Add UDQConfig::operator[](std::size_t insert_index)
2021-08-20 14:29:45 +02:00
Joakim Hove
5e60927477
Rename uad -> uda
2021-08-20 14:29:16 +02:00
Joakim Hove
1ce143e479
Rename UDQActive::get_iuad() -> iuad()
2021-08-20 14:29:16 +02:00
Joakim Hove
a0ad7883c7
Remove unused size query functions
2021-08-20 14:29:14 +02:00
Joakim Hove
9862d88b12
Remove unused UDQActive::operator[]
2021-08-19 17:01:31 +02:00
Joakim Hove
7939adf3e3
Normalise input data in UDQ definitions
...
The UDQDefine::input_string() function will return normalized input which is
equivalent to the deck input string, but not necessarily identical. Normalizing
which might give rise to differences:
- All selectors/qualifiers in expressions like "WWCT '*'" are quoted.
- Whether to pad operators with space like "170 + FU_PAR10" or "170+FU_PAR10" is
hardcoded and independent of the space used in the input.
- Floating point numbers is output with format "%g" - no trailing zeros.
2021-07-25 16:36:18 +02:00
Joakim Hove
6af909778c
Load UDQConfig and UDQState from restart data
2021-07-01 07:31:48 +02:00
Joakim Hove
3fa67b21b3
Alternative selector implementation for UDQAssign loaded from rst
2021-06-25 15:25:48 +02:00
Bård Skaflestad
665a82b9cd
Identify GCONINJE UDA Items
...
This commit adds UDA items for the GCONINJE keyword. This is in
preparation of tracking UDA status in this context. While here,
also add unit tests for the expected values of UDQ::keyword() and
UDQ::udaCode().
2021-06-09 20:41:03 +02:00
Bård Skaflestad
32fa3df6b6
Don't Increment Loop Counter Twice
2021-05-25 17:31:44 +02:00
Joakim Hove
7b896359f6
Part 2: Use Opm::time_point
2021-03-03 15:13:34 +01:00
Joakim Hove
bcffaefa7a
Use ScheduleState for wells++
...
Use SchedueleState for wells, in addition to the members UDQConfig, GasLiftOpt
and GuideRateConfig.
2021-02-10 07:22:46 +01:00
Joakim Hove
08cb85e08e
Add temporary disabled Schedule::unique<UDQConfig>() test
2021-02-04 11:11:40 +01:00
Joakim Hove
acb1284efd
Use small wrapper to manage shared pointers in ScheduleState
2021-01-29 11:42:36 +01:00
Joakim Hove
a4ca61dc4e
Renamed WellOrder -> NameOrder
2021-01-28 19:49:05 +01:00
Joakim Hove
56c7e89bbd
Use WellOrder to construct WellMatcher
2021-01-25 10:20:57 +01:00
Joakim Hove
344972624a
Use ScheduleState to manage UDQActive
2021-01-15 09:19:33 +01:00
Joakim Hove
fa3b740d1d
UDQ Cast can cast to both lhs type and rhs type
2020-11-24 11:48:17 +01:00
Joakim Hove
b2da0228b1
Support UDQ UPDATE action
2020-11-15 10:03:34 +01:00
Joakim Hove
e0e5ed1f91
Make sure UDQ can use also special summary values like TIME
2020-11-15 10:02:34 +01:00
Joakim Hove
47543641ee
Testing of negative prefix
2020-11-05 15:38:23 +01:00
Joakim Hove
6c449a48b1
Merge pull request #2069 from joakim-hove/udq-wlist
...
Udq wlist
2020-11-03 11:22:02 +01:00
Joakim Hove
14df089f14
Use WellMatcher() in Schedule::wellNames()
2020-10-31 09:04:32 +01:00
Joakim Hove
7ef7e3017e
Add class WellMatcher and use it UDQ evaluation
2020-10-30 22:17:59 +01:00
Joakim Hove
9bec2673ad
Explicitly delete UDAValue::operator=()
2020-10-30 17:19:02 +01:00
Joakim Hove
d301274e89
Improve warning for UDQ missing unit
2020-10-27 18:50:47 +01:00
Joakim Hove
e9dadcf93e
Extract leading sign when extract UDQ factor
2020-10-27 14:17:12 +01:00
Joakim Hove
b53acbc6a7
Add functionality to extract required summary keys from UDQConfig
2020-10-23 16:05:55 +02:00
Joakim Hove
80a023794e
Ensure that division is left assosiative in UDQ parser
2020-10-22 14:40:32 +02:00
Joakim Hove
ee7f50a51d
Merge pull request #2037 from joakim-hove/udq-define-order
...
Make sure UDQ define statements are evaluated in definition order
2020-10-21 17:32:55 +02:00
Joakim Hove
413a16157c
Make sure UDQ define statements are evaluated in definition order
2020-10-21 13:49:07 +02:00
Joakim Hove
2289ba165b
Update SummaryState in UDQContext
2020-10-20 22:22:21 +02:00
Joakim Hove
5ff65747f3
Rename summary variable in test
2020-10-20 20:02:19 +02:00
Joakim Hove
451eefbda5
UDQContext - differentiate between missing well and invalid variable
2020-10-16 11:24:21 +02:00
Williham Williham Totland
c43600337b
Throws exception with nesting, and generalises tests to account for same.
2020-10-05 11:06:19 +02:00
Joakim Hove
0ab50fbc95
Merge pull request #1977 from wito/test-warning-noise-fix
...
Test Compilation Warning Noise Fix
2020-10-02 07:56:14 +02:00
Joakim Hove
0512ab88b4
ParseContext will throw OpmInputError
2020-09-29 15:37:14 +02:00
Williham Williham Totland
6d2f8cca5c
Adds type information to integer literals.
2020-09-29 13:54:21 +02:00
Joakim Hove
e01400fa18
Add KeywordLocation argument to ParseContext::handleError()
2020-09-29 09:56:07 +02:00
Joakim Hove
5a060910a3
Differentiate better between UDQ ASSIGN and UDQ DEFINE
...
A quite typical situation is that a UDQ keyword is first initialized with UDQ
ASSIGN statement, and then subsequently a formula for updates every timestep is
entered with UDQ DEFINE:
UDQ
ASSIGN FU_VAR1 0 /
DEFINE FU_VAR1 FU_VAR1 + 1 /
/
Then the assign statement should be run once, and the define formula should be
evaluated for every subsequent timestep.
2020-09-09 21:39:29 +02:00
Joakim Hove
fc1e245ea4
Add TIMESTEP as context variable in summary eval
2020-09-09 19:42:42 +02:00
Joakim Hove
4a9ec1403e
UDQ: get from an unknown summary variable throws std::out_of_range
2020-09-08 08:23:45 +02:00
Joakim Hove
8d11a04033
Add report_step argument to UDQConfig::eval()
2020-09-08 08:23:45 +02:00
Joakim Hove
11e70ca779
Handle undefined UDQ expressions
2020-09-02 23:03:03 +02:00
Arne Morten Kvarving
acad356e2d
remove unused variable
2020-09-01 15:25:44 +02:00