Atgeirr Flø Rasmussen
4a3326a7d8
Merge pull request #3221 from atgeirr/release/2022.10
...
Bump version for final release candidate
2022-11-15 08:16:10 +01:00
Atgeirr Flø Rasmussen
7f2bdb9d65
Bump version for final release candidate
2022-11-15 08:11:20 +01:00
Atgeirr Flø Rasmussen
8738f78a10
Merge pull request #3216 from atgeirr/release/2022.10
...
Bump version for release.
2022-11-08 08:48:56 +01:00
Atgeirr Flø Rasmussen
45f01eb2ab
Bump version for release.
2022-11-07 18:03:31 +01:00
Atgeirr Flø Rasmussen
5babdb413c
Merge pull request #3214 from atgeirr/backport-of-pr-3205
...
Make sure compilation is not tested.
2022-11-07 16:41:44 +01:00
Markus Blatt
ebc0f30b94
Make sure compilation is not tested.
...
This is broken for DUNE >= 2.8 and dune module that use OPM.
2022-11-07 16:41:01 +01:00
Atgeirr Flø Rasmussen
5ae44d0d4c
Merge pull request #3213 from atgeirr/backport-of-pr-3203
...
[bufix,cmake] Fixes simple find_package(opm-module) calls
2022-11-07 16:39:20 +01:00
Markus Blatt
aed0063b61
[bufix,cmake] Fixes simple find_package(opm-module) calls
...
When not using the OPM CMake build system magic a
find_package(opm-module) did fail in some settings as the
CMAKE_MODULE_PATH did not include the location of OpmPackge.cmake and
the likes.
This fixes this by issuing a find_package(opm-common) for modules that
are not opm-common.
2022-11-07 16:37:47 +01:00
Bård Skaflestad
ba067e4132
Merge pull request #3210 from akva2/backport_3195
...
Ensure At Least One Well List per Well
2022-11-03 09:49:38 +01:00
Bård Skaflestad
81c8021cdd
Ensure At Least One Well List per Well
...
If the input model sets the maximum number of well lists per well
to zero (or negative), then treat this as if the limit is defaulted
and reset the value to the default (one).
2022-11-03 09:02:11 +01:00
Atgeirr Flø Rasmussen
325da26722
Merge pull request #3209 from atgeirr/backport-of-pr-3198
...
Backport of pr 3198
2022-11-01 23:33:12 +01:00
Markus Blatt
87b501f7b0
Fixed spelling eror in compareECL
2022-11-01 23:32:24 +01:00
Markus Blatt
1ab30d9182
Fix typos: spesific -> specific
2022-11-01 23:32:24 +01:00
Markus Blatt
330ef3c26a
Updated manpages
2022-11-01 23:32:24 +01:00
Atgeirr Flø Rasmussen
0c1ae46f01
Merge pull request #3208 from atgeirr/backport-of-pr-3193
...
change order of directiona and type and support default ijk
2022-11-01 23:31:42 +01:00
Tor Harald Sandve
81160c55e9
change order of directiona and type and support default ijk
2022-11-01 23:30:38 +01:00
Atgeirr Flø Rasmussen
a52f8bf782
Merge pull request #3207 from atgeirr/backport-of-pr-3192
...
Update GASVISCT
2022-11-01 23:29:56 +01:00
OPMUSER
43eb1bac37
Update GASVISCT
...
Fix GASVISCT JSON definition, based on OILVISCT and WATVISCT
2022-11-01 23:28:11 +01:00
Atgeirr Flø Rasmussen
2f0e782dfd
Merge pull request #3206 from atgeirr/backport-of-pr-3186
...
Use MPI_FOUND not MPI_Found.
2022-11-01 23:25:27 +01:00
Atgeirr Flø Rasmussen
5f77a71b8f
Use MPI_FOUND not MPI_Found.
2022-11-01 23:22:12 +01:00
Atgeirr Flø Rasmussen
e281a1e661
Merge pull request #3182 from atgeirr/release/2022.10
...
Bump version for release.
2022-10-19 10:48:23 +02:00
Atgeirr Flø Rasmussen
d894ef99d3
Bump version for release.
2022-10-19 10:04:12 +02:00
Atgeirr Flø Rasmussen
cc81743dad
Merge pull request #3181 from akva2/damaris_fixes
...
Damaris depends on MPI
2022-10-18 15:22:30 +02:00
Bård Skaflestad
a4995686f3
Merge pull request #3180 from akva2/from_intersection
...
added: FaceDir::FromIntersectionIndex
2022-10-18 13:30:29 +02:00
Arne Morten Kvarving
bd3aa76268
fixed: damaris depends on MPI
2022-10-18 13:08:34 +02:00
Arne Morten Kvarving
6c740656bb
changed: do not output damaris info if damaris is not requested
2022-10-18 13:08:33 +02:00
Arne Morten Kvarving
69839e8766
added: FaceDir::FromIntersectionIndex
...
this translates from a dune intersection id to a FaceDir::DirEnum
2022-10-17 14:44:13 +02:00
Markus Blatt
f414cdd30e
Merge pull request #3178 from bska/velocity-unit
...
Add Unit for Pipeflow Velocity
2022-10-17 12:11:16 +02:00
Markus Blatt
3f8f4d0362
Merge pull request #3177 from blattms/fix-mult-find-dune-fem
...
Fixes bug that hit only for multiple find calls.
2022-10-17 11:44:23 +02:00
Bård Skaflestad
cba282bd34
Add Unit for Pipeflow Velocity
...
Needed for summary and RFT file output of fluid flow velocity in
well segments.
2022-10-14 15:24:21 +02:00
Markus Blatt
2a2a9748a3
Prevent Zoltan vars from growing with multiple find_package.
2022-10-12 22:57:43 +02:00
Markus Blatt
20e3202067
Make sure HAVE_${MODULE} is always defined in all scopes.
...
1. Was a normal variable if no test program was compiled before.
that meant HAVE_DUNE_FEM was not defined even if dune-fem was found.
2. The if-statement checking whether there is something to compile was
wrong as this is macro and hence prog is not a variable. Resorted
to comparison to empty string.
2022-10-12 22:56:00 +02:00
Atgeirr Flø Rasmussen
6c8120abe6
Merge pull request #3176 from akva2/damaris_cmake_script
...
add cmake script for damaris handling
2022-10-12 14:39:36 +02:00
Markus Blatt
499663f048
Merge pull request #3175 from blattms/fix-mssing-targets-for-multiple-cmake-runs
...
[cmake] Search for modules/packages each time a search is triggered.
2022-10-12 13:45:16 +02:00
Arne Morten Kvarving
64964c3afe
add cmake script for damaris handling
2022-10-12 11:16:43 +02:00
Tor Harald Sandve
6c735230ba
Merge pull request #3170 from osae/hysterKillough
...
Support for capillary pressure hysteresis.
2022-10-12 07:52:10 +02:00
Markus Blatt
3f8195a839
Merge pull request #3171 from bska/support-lowercase-compdat-direction
...
Support Lower Case COMPDAT Direction Strings
2022-10-11 21:23:05 +02:00
Markus Blatt
2b87eecd68
Search for modules/packages each time a search is triggered.
...
This is essential if find package modules define imported
targets (usual for modern Cmake). Without this rerunning Cmake another
time in a non-clean build directory will abort with errors if imported
targets are used. E.g. with
```
CMake Error at /home/mblatt/src/dune/opm-2.9/opm-common/cmake/Modules/OpmSatellites.cmake:320 (add_executable):
Target "test_mpiutil" links to target "ParMETIS::ParMETIS" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
CMakeLists.txt:308 (opm_add_test)
CMake Error at /home/mblatt/src/dune/opm-2.9/opm-common/cmake/Modules/OpmSatellites.cmake:320 (add_executable):
Target "test_mpiutil" links to target "QuadMath::QuadMath" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
CMakeLists.txt:308 (opm_add_test)
```
This will result in multiple searches, but this should be rather fast
due their previous results being cached.
2022-10-11 20:50:46 +02:00
Markus Blatt
991ea3cf0d
Allow find_package calls for METIS/Quadmath if targets already exists
2022-10-11 20:46:38 +02:00
Ove Sævareid
c1d916f66e
Neutral initialisation of flags.
2022-10-10 14:17:14 +02:00
Bård Skaflestad
67dbe5c9e7
Support Lower Case COMPDAT Direction Strings
...
Some models will use lower-case strings to input the direction of
penetration, e.g., 'x' or 'z'. This commit extends our direction
parser to support such strings.
2022-10-09 18:30:46 +02:00
Markus Blatt
9f02b613e8
Merge pull request #3114 from bska/rst-read-vfpexp
...
Restore Explicit THP Control Options from Restart File
2022-10-07 09:19:01 +02:00
Ove Sævareid
121a062abe
Support for capillary pressure hysteresis.
2022-10-05 14:13:36 +02:00
Bård Skaflestad
00eda12fa0
Restore Explicit THP Control Options from Restart File
...
In particular, this commit restores all WVFPEXP-related items from
the restart file's IWEL array.
2022-10-05 09:55:03 +02:00
Markus Blatt
0e341ef6e1
Merge pull request #3163 from bska/segment-node-xy
...
Add XY Coordinates to Segment's Node
2022-10-05 09:52:39 +02:00
Arne Morten Kvarving
8601805d62
Merge pull request #3165 from akva2/add_headers
...
added: add headers to library definition
2022-10-05 09:52:24 +02:00
Markus Blatt
d410f38e11
Merge pull request #3169 from akva2/fix_python_install_path
...
fixed: properly export opm-common_PYTHON_COMMON_DIR
2022-10-05 09:44:52 +02:00
Arne Morten Kvarving
57bc9a8f02
added: add headers to library definition
...
for better IDE integration
2022-10-05 09:18:31 +02:00
Arne Morten Kvarving
ca0246c548
fixed: properly export opm-common_PYTHON_COMMON_DIR
...
this needs to be different for the in-tree and installed
config files
2022-10-05 08:49:22 +02:00
Bård Skaflestad
4326b8c78e
Add XY Coordinates to Segment's Node
...
These are not used in the simulation, but needed/useful for the SEG
option of the WRFTPLT keyword.
2022-10-04 17:42:38 +02:00
Bård Skaflestad
77676000f7
Merge pull request #3166 from akva2/rename_serialize_object
...
changed: rename serializeObject to serializationTestObject
2022-10-04 17:04:00 +02:00
Arne Morten Kvarving
fb0f3c451e
changed: rename serializeObject to serializationTestObject
...
makes it more clear what these members are used for.
2022-10-04 14:10:30 +02:00
Bård Skaflestad
1010c81b3d
Merge pull request #3162 from tskille/fix_rsm_compare_ecl
...
additional output from compareECL related to rsm files
2022-10-04 12:03:47 +02:00
Torbjørn Skille
cc6769c1a2
adding new file type RSM to compareECL
...
When using -t SMRY the RSM file is not checked
When using -t RSM the SMRY files is not checked
when running without -t option both RSM and SMRY files are checked together with restart, grid, init and rft file.
2022-10-04 08:51:36 +02:00
Torbjørn Skille
16af572080
additional output from compareECL related to rsm files
2022-10-03 19:16:41 +02:00
Bård Skaflestad
cea1dea368
Merge pull request #3091 from akva2/fix_uninitialized_access
...
fixed: avoid use of uninitialized SummaryNode::number_
2022-09-30 19:33:36 +02:00
Bård Skaflestad
51ecf87682
fixed: avoid use of uninitialized SummaryNode::number_
...
SummaryNode::number_ does not have a value for all
summary keywords.
2022-09-30 16:52:34 +02:00
Markus Blatt
a61747eb74
Merge pull request #3154 from tskille/fix_esmry_startd
...
Fix bug in ExtESmry
2022-09-28 19:57:15 +02:00
Bård Skaflestad
ec7145e817
Merge pull request #3160 from atgeirr/add-item-numbers-netbalan
...
Add item numbers for NETBALAN.
2022-09-28 18:52:59 +02:00
Atgeirr Flø Rasmussen
e10faa139c
Add item numbers for NETBALAN.
2022-09-28 17:39:36 +02:00
Bård Skaflestad
99affa9043
Merge pull request #3110 from bska/rst-read-wgrupcon
...
Load WGRUPCON Information From Restart File
2022-09-28 15:18:36 +02:00
Bård Skaflestad
f54c3d7480
Load WGRUPCON Information From Restart File
2022-09-28 14:00:11 +02:00
Bård Skaflestad
6af6676d5f
Remove Tests Which Only Passed by Accident
...
There is no reason to expect that, for instance, the dynamic
control mode in a restart file is equal to that of the input file.
2022-09-28 14:00:11 +02:00
Bård Skaflestad
eecb713e00
Pull Helper Functions Out of Opm Namespace
...
Mostly to more clearly distinguish these from proper library
functions.
2022-09-28 14:00:11 +02:00
Bård Skaflestad
6b05ee2210
Merge pull request #3094 from bska/add-smry-cat-compl
...
Add New Summary Node Category of Completion
2022-09-28 13:58:21 +02:00
Bård Skaflestad
03a94a7288
Add New Summary Node Category of Completion
...
This enables detecting the last remaining case that has a valid NUMS
entry despite nominally being a well-level keyword.
2022-09-27 18:16:47 +02:00
Bård Skaflestad
c5158a1c24
Merge pull request #3155 from bska/support-rft-seg-option
...
Internalise WRFTPLT Segment Option
2022-09-27 18:07:45 +02:00
Bård Skaflestad
1a3166d913
Simplify Erasure From PLT States
...
Suggested by: [at]blattms
2022-09-27 17:05:53 +02:00
Bård Skaflestad
328ee9b591
Internalise WRFTPLT Segment Option
...
In preparation of adding RFT file output support for segment data.
2022-09-27 17:05:23 +02:00
Torbjørn Skille
39c1a68f37
Fix bug in ExtESmry
...
Start date in ESMRY file (format) have 7 elements, last element is milliseconds.
2022-09-27 15:38:24 +02:00
Bård Skaflestad
26a566ef94
Merge pull request #3156 from kjetilly/kjetilly_reserved_keyword_fix
...
Remove use of reserved identifier in OPM_THROW.
2022-09-27 12:51:42 +02:00
Bård Skaflestad
39c91be4ee
Merge pull request #3158 from bska/fix-facedir-switch
...
Handle All FaceDir Enumerators in Switch Statements
2022-09-27 10:18:42 +02:00
Bård Skaflestad
7a60c4c239
Handle All FaceDir Enumerators in Switch Statements
...
Forgotten in commit 9e143482c .
2022-09-26 13:19:25 +02:00
Kjetil Olsen Lye
c664a0dfd2
Remove use of reserved identifier in OPM_THROW.
2022-09-26 11:51:37 +02:00
Tor Harald Sandve
7e34f86f42
Merge pull request #3113 from hakonhagland/fieldprops
...
Add support for directional relative permeabilties
2022-09-26 09:09:52 +02:00
Bård Skaflestad
d609d942db
Merge pull request #3152 from OPMUSER/VFPPROD
...
Update VFPProdTable.cpp
2022-09-23 10:59:33 +02:00
OPMUSER
c67bdf8aeb
Update VFPProdTable.cpp
...
The error message for when VFPPROD tables had non-monotonic entries had the table number and the number of errors reversed. This PR fixes this output discrepancy.
2022-09-23 13:53:29 +08:00
Håkon Hægland
34ea7f3662
Add one more test
2022-09-21 15:47:41 +02:00
Bård Skaflestad
351a5d7292
Merge pull request #3150 from atgeirr/check-backend-exists
...
Check that backend exists before logging.
2022-09-21 12:02:39 +02:00
Atgeirr Flø Rasmussen
c042c22546
Check that backend exists before logging.
2022-09-21 10:30:47 +02:00
Håkon Hægland
5086d5d74e
Add a CopyablePtr class
...
Adds a template class that wraps a std::unique_ptr and makes it
copyable. See pull #714 in opm-models for a use case.
2022-09-20 01:30:16 +02:00
Bård Skaflestad
1850e45ed5
Merge pull request #3103 from bska/rst-read-wecon
...
Add Restart Support for Known Well Level Economic Limits
2022-09-19 10:25:07 +02:00
Bård Skaflestad
939b943911
Add Restart Support for Known Well Level Economic Limits
...
Notably missing are
- Maximum gas-liquid ratio
- Maximum temperature
- Minimum reservoir fluid flow rate
- Follow-on well
We do not currently write those items to the restart file but will
extend the support as need arises.
2022-09-16 18:32:01 +02:00
Bård Skaflestad
b33d04ebf7
Extract RstState Object Creation to Factory Function
...
In preparation of adding unit tests for restarted economic limits at
the well level (WECON).
2022-09-16 18:32:01 +02:00
Bård Skaflestad
34ab8d73b0
Tidy Up Implementation of RstWell
...
In particular, make RstWell::segment() return 'reference-to-const'
instead of an object. While here, also rewrap the licence blocks
and reorder two data members. The latter is in preparation of
adding restart support for economic limits (WECON).
2022-09-16 18:32:01 +02:00
Bård Skaflestad
cff70712ca
Merge pull request #3149 from akva2/serializer_import
...
Import serializer code from opm-simulators
2022-09-16 16:02:06 +02:00
Arne Morten Kvarving
d731cd3775
import serializer code from opm-simulators
...
add tests using a simple memcpy based packer
2022-09-16 15:34:58 +02:00
Bård Skaflestad
95e78f64ad
Merge pull request #3148 from akva2/serializer_simplify
...
changed: only use operator() for the serializer
2022-09-16 13:08:31 +02:00
Håkon Hægland
9e143482cf
Add a unknown value to the facedir enum
...
This is will be used by code in opm-models and opm-simulators to
identify a face direction that is not known or not important.
2022-09-14 23:40:49 +02:00
Håkon Hægland
63f5dbdb81
Add debugging output method to FaceDir
2022-09-14 15:34:33 +02:00
Håkon Hægland
14f9c41613
Add KRNUM to recognized field props
2022-09-14 15:34:33 +02:00
Bård Skaflestad
25daf13909
Merge pull request #3107 from plgbrts/equil
...
keyword RVWVD to specify vaporized water-gas ratio vs depth tables
2022-09-14 14:28:45 +02:00
Arne Morten Kvarving
6576370c19
changed: only use operator() for the serializer
2022-09-14 10:33:56 +02:00
Paul Egberts
35cf4761df
updated cmake file
2022-09-14 10:27:12 +02:00
Paul Egberts
f55bbefd18
addition of entry in EQUIL keyword for water-gas ratio initialization
2022-09-13 17:58:28 +02:00
Markus Blatt
ff3da8cc79
Merge pull request #3146 from akva2/janitoring
...
Some janitoring
2022-09-12 12:36:21 +02:00
Tor Harald Sandve
d10ed6c953
Merge pull request #3109 from totto82/tempAquifer
...
add support for temperature and analytical aquifers
2022-09-12 07:32:49 +02:00
Arne Morten Kvarving
6546b780f8
fixed: respect rule-of-three for EclipseGrid
...
no need to explicitly declare the cc
2022-09-09 08:06:09 +02:00
Arne Morten Kvarving
1f5b60d651
changed: give variable a name
...
clang cannot parse the nameless variant for some reason
2022-09-09 07:46:45 +02:00
Arne Morten Kvarving
43c66042da
add virtual dtor in class with virtual members
2022-09-09 07:46:18 +02:00
Arne Morten Kvarving
8e2445b4cc
fixed: build python bindings on systems without openmp
2022-09-09 07:39:11 +02:00
Bård Skaflestad
b936fe6c0b
Merge pull request #3145 from bska/refactor-rft-output
...
Refactor RFT File Writing Code
2022-09-08 17:05:52 +02:00
Bård Skaflestad
964fdfde12
Refactor RFT File Writing Code
...
In preparation of supporting new data types (PLT and segment).
Introduce a wrapper class, WellRFTOutputData, which knows about all
supported data types and how to emit the RFT record header. Defer
specialised data type handling to dedicated record types and, to
this end, rename the existing WellRFT class to RFTRecord.
2022-09-08 16:22:39 +02:00
Bård Skaflestad
b38da649e0
Refactor RFTConfig
...
Mostly in preparation of adding new data types (e.g., segment),
but also to leverage standard algorithms and to apply 'const' where
possible.
2022-09-08 16:22:39 +02:00
Bård Skaflestad
07b506fc1c
Reduce Level of Nesting in WRFT* Keyword Handlers
...
Mostly by switching from
if (something) {
handle case
}
into
if (! something) {
continue;
}
handle case
While here, also reduce the length of a couple of very long lines.
2022-09-08 16:22:39 +02:00
Bård Skaflestad
d91608eff3
Rewrap WellConnections Code
...
Mostly to split long lines and to apply 'const' where possible.
2022-09-08 16:22:39 +02:00
Bård Skaflestad
8395ffd904
Merge pull request #3112 from bska/limit-action-messages
...
Direct Verbose Action Messages to Debug File
Resolves OPM/opm-simulators#4042
2022-09-08 16:10:24 +02:00
Bård Skaflestad
6b94c5091a
Direct Verbose Action Messages to Debug File
...
While useful for analysis in the case of failure, end users will
typically not care that we "rerun" portions of the SCHEDULE section
in response to triggering an action. In the cases where we do need
those messages they will be available in the CASE.DBG file instead.
2022-09-08 11:44:27 +02:00
Markus Blatt
d21926a837
Merge pull request #3095 from bska/rst-read-netbalan
...
Add Restart Support for NETBALAN Keyword
2022-09-08 11:16:34 +02:00
Bård Skaflestad
418173bbcc
Add Restart Support for NETBALAN Keyword
...
This commit loads NETBALAN parameters from the restart file and
forms Network::Balance objects from these parameters.
2022-09-07 13:04:54 +02:00
Bård Skaflestad
1670c217ee
Rename NETBALAN Items in INTEHEAD
...
Mostly to make restart code slightly more self explanatory.
2022-09-07 13:04:54 +02:00
Bård Skaflestad
de13002f2f
Prepare for Adding NETBALAN Restart Support
...
Mostly whitespace and sorting headers.
2022-09-07 13:04:54 +02:00
Bård Skaflestad
541fba174a
Merge pull request #3144 from akva2/remove_dead_serialization
...
Remove dead serialization code
2022-09-07 12:54:35 +02:00
Arne Morten Kvarving
d42481b747
add serializeObject to TranCalculator
2022-09-07 10:31:47 +02:00
Arne Morten Kvarving
ada6853a61
changed: remove unused Serialization class
2022-09-07 10:31:47 +02:00
Arne Morten Kvarving
1573ffb8da
SummaryState: remove unused serialization code
2022-09-07 10:31:47 +02:00
Arne Morten Kvarving
0b1280ceec
FieldProps(Manager): remove unused serialization code
2022-09-07 10:24:01 +02:00
Arne Morten Kvarving
5eb496c79c
PAvgCalculator: remove unused serialization code
2022-09-07 10:24:01 +02:00
Arne Morten Kvarving
08830154b6
UDQScalar/UDQSet: remove unused serialization code
2022-09-07 10:08:54 +02:00
Arne Morten Kvarving
7b903660a0
UDQState: remove unused serialization code
2022-09-07 10:08:54 +02:00
Markus Blatt
f018c2e0d9
Merge pull request #3143 from akva2/tran_serialize
...
added: support serialization for TranCalculator
2022-09-07 10:04:59 +02:00
Arne Morten Kvarving
0c4492500b
added: support serialization for TranCalculator
...
and some accessors to enable downstream to use it
2022-09-07 09:38:27 +02:00
Bård Skaflestad
1a9713278c
Merge pull request #3142 from akva2/drop_friends
...
drop unused friend declarations
2022-09-07 09:36:14 +02:00
Bård Skaflestad
8a67f6606c
Merge pull request #3141 from akva2/summarystate_append
...
added: append function in SummaryState
2022-09-07 09:35:36 +02:00
Arne Morten Kvarving
9690397cc1
drop unused friend declarations
2022-09-07 08:19:22 +02:00
Arne Morten Kvarving
a2bade84a4
added: append function in SummaryState
...
this appends information from one instance to another.
needed to handle semantics used in parallel serialization
2022-09-07 08:17:48 +02:00
Bård Skaflestad
b1e3774aeb
Merge pull request #3140 from akva2/summarystate_serialize
...
SummaryState: add serializer support
2022-09-06 11:33:05 +02:00
Bård Skaflestad
14c67cdbe6
Merge pull request #3139 from akva2/restartvalue_serialize
...
RestartValue: add serializer support
2022-09-06 10:41:36 +02:00
Arne Morten Kvarving
a8c0e19424
SummaryState: add serializer support
2022-09-06 10:03:55 +02:00
Arne Morten Kvarving
de7f5a8f69
RestartValue: add serializer support
2022-09-06 10:01:27 +02:00
Bård Skaflestad
e8b9e258b1
Merge pull request #3138 from akva2/aquiferdata_serialize
...
data::AquiferData: add serializer support
2022-09-06 09:55:29 +02:00
Bård Skaflestad
ae90a27ca1
Merge pull request #3134 from akva2/wells_serialize
...
data::Wells: add serializer support
2022-09-06 09:28:02 +02:00
Arne Morten Kvarving
64aee42bf1
data::AquiferData: add serializer support
2022-09-06 08:26:32 +02:00
Arne Morten Kvarving
c7329aa527
data::Wells: add serializer support
2022-09-06 08:23:40 +02:00
Bård Skaflestad
f6fa3e9fa5
Merge pull request #3137 from akva2/numericaquiferdata_serialize
...
data::NumericAquiferData: add serializer support
2022-09-05 16:26:37 +02:00
Bård Skaflestad
016b899ad6
Merge pull request #3136 from akva2/cartertracydata_serialize
...
data::CarterTracyData: add serializer support
2022-09-05 16:17:34 +02:00
Bård Skaflestad
9da5bbb463
Merge pull request #3135 from akva2/fetkovichdata_serialize
...
data::FetkovichData: add serializer support
2022-09-05 16:16:59 +02:00
Bård Skaflestad
8d6dbd9a7e
Merge pull request #3133 from akva2/well_serialize
...
data::Well: add serializer support
2022-09-05 16:16:21 +02:00
Bård Skaflestad
6738269487
Merge pull request #3125 from akva2/groupandnetworkvalues_serialize
...
data::GroupAndNetworkValues: add serializer support
2022-09-05 16:15:49 +02:00
Arne Morten Kvarving
6112a6018b
data::NumericAquiferData: add serializer support
2022-09-05 15:21:40 +02:00
Arne Morten Kvarving
1c967f6d70
data::CarterTracyData: add serializer support
2022-09-05 15:15:06 +02:00
Arne Morten Kvarving
1a9e6b3810
data::FetkovichData: add serializer support
2022-09-05 15:08:46 +02:00
Arne Morten Kvarving
bc6d5e38ce
data::GroupAndNetworkValues: add serializer support
2022-09-05 14:12:16 +02:00
Bård Skaflestad
231b71a29c
Merge pull request #3123 from akva2/groupdata_serialize
...
data::GroupData: add serializer support
2022-09-05 14:09:21 +02:00
Arne Morten Kvarving
645b3b3eaa
data::Well: add serializer support
2022-09-05 13:57:18 +02:00
Arne Morten Kvarving
d68e254811
fixed: missing dynamicStatus in comparison operator
2022-09-05 13:57:18 +02:00
Bård Skaflestad
fbff174cd8
Merge pull request #3131 from akva2/segment_serialize
...
data::Segment: add serializer support
2022-09-05 13:19:00 +02:00
Arne Morten Kvarving
cb5475d178
data::GroupData: add serializer support
2022-09-05 13:02:47 +02:00
Bård Skaflestad
b05cba5315
Merge pull request #3122 from akva2/groupguiderates_serialize
...
data::GroupGuideRates: add serializer support
2022-09-05 13:01:15 +02:00
Arne Morten Kvarving
3d36bbcb9c
data::Segment: add serializer support
2022-09-05 12:59:17 +02:00
Bård Skaflestad
a90b202b87
Merge pull request #3132 from akva2/currentcontrol_serialize
...
data::CurrentControl: add serializer support
2022-09-05 12:59:09 +02:00
Bård Skaflestad
0c1186346a
Merge pull request #3129 from akva2/connection_serialize
...
data::Connection: add serializer support
2022-09-05 12:57:30 +02:00
Arne Morten Kvarving
f4af5fd947
data::Connection: add serializer support
2022-09-05 12:22:25 +02:00
Arne Morten Kvarving
ea8f64cb87
data::GroupGuideRates: add serializer support
2022-09-05 12:17:50 +02:00
Bård Skaflestad
524752da63
Merge pull request #3130 from akva2/segmentpressures_serialize
...
data::SegmentPressures: add serializer support
2022-09-05 12:15:07 +02:00
Bård Skaflestad
6ac5c8127d
Merge pull request #3128 from akva2/rates_serialize
...
data::Rates: add serializer support
2022-09-05 12:14:33 +02:00
Bård Skaflestad
848942317e
Merge pull request #3127 from akva2/solution_serialize
...
data::Solution: add serializer support
2022-09-05 12:14:05 +02:00
Bård Skaflestad
87a736ef84
Merge pull request #3121 from akva2/guideratevalue_serialize
...
data::GuideRateValue: add serializer support
2022-09-05 12:13:34 +02:00
Arne Morten Kvarving
88d3d86dd6
data::CurrentControl: add serializer support
2022-09-05 11:47:20 +02:00
Bård Skaflestad
4faa9634a0
Merge pull request #3126 from akva2/restartkey_serialize
...
RestartKey: add serializer support
2022-09-05 11:11:35 +02:00
Arne Morten Kvarving
efe759676b
data::SegmentPressures: add serializer support
2022-09-05 11:09:25 +02:00
Bård Skaflestad
a7ecd2aaac
Merge pull request #3124 from akva2/nodedata_serialize
...
data::NodeData: add serializer support
2022-09-05 11:06:57 +02:00
Arne Morten Kvarving
e3a961df2b
data::Rates: add serializer support
2022-09-05 10:35:51 +02:00
Arne Morten Kvarving
3abfddd088
data::Solution: add serializer support
2022-09-05 10:27:08 +02:00
Arne Morten Kvarving
7670a0c248
RestartKey: add serializer support
2022-09-05 10:19:26 +02:00
Paul Egberts
feb695e1fd
new keyword RVWVD to specify vaporized water-gas ratio RVW vs depth tables
2022-09-05 10:06:12 +02:00
Arne Morten Kvarving
c95cae5c63
data::NodeData: add serializer support
2022-09-05 09:57:58 +02:00
Arne Morten Kvarving
883e701a13
data::GuideRateValue: add serializer support
2022-09-05 09:15:20 +02:00
Bård Skaflestad
2a4f62844d
Merge pull request #3120 from akva2/serialize_groupconstraints
...
data::GroupConstraints: add serializer support
2022-09-02 21:44:08 +02:00
Bård Skaflestad
7f50f7e95d
Merge pull request #3118 from akva2/serialize_map_change
...
adjust for map serializer API change
2022-09-02 20:59:07 +02:00
Bård Skaflestad
3dcc3e35b9
Merge pull request #3117 from akva2/serialize_set_change
...
adjust for set serializer API change
2022-09-02 20:57:36 +02:00
Arne Morten Kvarving
d5830c0aa0
data::GroupConstraints: add serializer support
2022-09-02 18:12:09 +02:00
Bård Skaflestad
3c48148d8b
Merge pull request #3119 from akva2/celldata_serialize
...
data::CellData: add serializer support
2022-09-02 17:24:36 +02:00
Arne Morten Kvarving
d09c275fe4
adjust for map serializer API change
2022-09-02 17:20:14 +02:00
Arne Morten Kvarving
99ea0ee497
adjust for set serializer API change
2022-09-02 17:17:11 +02:00
Bård Skaflestad
e9e70c6eac
Merge pull request #3116 from akva2/serialize_vector_change
...
adjust for vector serializer API change
2022-09-02 17:08:14 +02:00
Bård Skaflestad
93dbf570d6
Merge pull request #3115 from akva2/serialize_array_change
...
adjust for array serializer API change
2022-09-02 17:07:29 +02:00
Arne Morten Kvarving
a21680cc96
data::CellData: add serializer support
2022-09-02 15:52:11 +02:00
Arne Morten Kvarving
0de1c488d2
adjust for vector serializer API change
2022-09-02 14:39:16 +02:00
Arne Morten Kvarving
fd3f444c80
adjust for array serializer API change
2022-09-02 14:18:15 +02:00
Bård Skaflestad
17c8b01d4b
Merge pull request #3111 from akva2/fix_cell_serialize_object
...
fixed: initialize dimensions in serializeObject
2022-09-01 13:17:52 +02:00
Tor Harald Sandve
072b8be064
add support for temperature and analytical aquifers
2022-09-01 12:28:22 +02:00
Arne Morten Kvarving
a3a9413ab0
fixed: initialize dimensions in serializeObject
...
the array is left uninitialized by the constructor
2022-09-01 12:21:58 +02:00
Bård Skaflestad
1522ee4f4d
Merge pull request #3035 from GitPaean/throw_wrong_time_stepping
...
throw when report steps has start time later than end time
2022-08-26 10:59:33 +02:00
Kai Bao
632f1457b1
throw for an inconsistent DATES setup
2022-08-26 10:07:21 +02:00
Markus Blatt
6479f77340
Merge pull request #3105 from bska/serialize-all-schedule-data
...
Serialize All Schedule Data Members
2022-08-25 14:54:35 +02:00
Kai Bao
3ffc61e221
throw when a negative TSTEP value is input
2022-08-25 14:38:00 +02:00
Bård Skaflestad
9658257960
Serialize Exit Status
...
While here, also add missing serialization tests for WGNames and
CompletedCells.
2022-08-25 11:22:59 +02:00
Bård Skaflestad
7ee1fd9ed1
Match Member Order in Schedule Serialization
...
In particular, in Schedule::seralizeOp(), Schedule::operator==(),
and Schedule::serializeObject().
2022-08-25 11:20:51 +02:00
Bård Skaflestad
da6802e787
Prefer Template Argument Deduction
...
Don't pass 'Serializer' as an explicit template argument.
2022-08-25 11:14:37 +02:00
Kai Bao
f1986689b5
fixing a schedule test and adding another for PR3035
2022-08-24 16:07:19 +02:00
Kai Bao
b9ed81fe2a
throw when report steps has start time later than end time
2022-08-24 16:07:19 +02:00
Atgeirr Flø Rasmussen
ba120652b5
Merge pull request #3104 from atgeirr/fix-packing
...
Prepare for fixing packing of Rates, fix bug in Connection comparison operator
2022-08-24 15:23:44 +02:00
Atgeirr Flø Rasmussen
6c5e2541bc
Do not test equality for unneeded objects.
...
They are not equal in any case, now that the comparison operator
for Connection is fixed.
2022-08-24 14:50:39 +02:00
Atgeirr Flø Rasmussen
2f7f360563
Bugfix: compare trans_factor in Connection::operator==().
2022-08-24 14:50:39 +02:00
Atgeirr Flø Rasmussen
8754a59d38
Add friend declarations to enable writing out of class packing functions.
2022-08-24 14:50:39 +02:00
Bård Skaflestad
70d45e74dc
Merge pull request #3102 from GitPaean/handling_connection_aquifer_mismatch
...
Handling connection aquifer mismatch
2022-08-24 09:52:22 +02:00
Kai Bao
61e68dccb6
fixing running when only analytical aquifer connections defined
...
without this, the restart writer will trigger a segmentation fault
error.
And also, some minor refactoring and function development so that the
simulator can check whether there are valid connections defined for
aquifers with certain id.
2022-08-24 09:31:20 +02:00
Atgeirr Flø Rasmussen
e4346da3ea
Merge pull request #3101 from atgeirr/use-portable-timegm
...
Add and use portable_timegm().
2022-08-18 09:58:06 +02:00
Atgeirr Flø Rasmussen
49262ae96d
Add and use portable_timegm().
...
This function converts a std::tm to a std::time_t, assuming UTC
and not local timezone. This is used instead of relying on
repeated calls to mktime(), which can fail on some system (BSD)
for dates before 1900.
2022-08-18 09:21:52 +02:00
Bård Skaflestad
cbab4e50c0
Merge pull request #3100 from tskille/smspec_bug
...
fixing bug in IO class ESmry
2022-08-17 17:48:40 +02:00
Torbjørn Skille
94150f1a0c
fixing bug in IO class ESmry
2022-08-17 15:54:45 +02:00
Bård Skaflestad
ff13f8c091
Merge pull request #3099 from GitPaean/extend_default_aqutab
...
extend the range of default AQUTAB table (table 1)
2022-08-17 13:35:43 +02:00
Kai Bao
0dadf54a23
extend the range of default AQUTAB table (table 1)
...
for better accuracy of the extrapolation
2022-08-16 23:43:43 +02:00
Bård Skaflestad
17a08ddcd9
Merge pull request #3098 from atgeirr/modify-aquancon-inactive-cell-warnings
...
AQUANCON: Add a summarizing warning stating the number of inactive connection ignored
2022-08-16 18:18:09 +02:00
Atgeirr Flø Rasmussen
8e636f22a1
Add a summarizing warning stating the number of inactive connections ignored.
...
Also add tags to the Aquancon inactive connection warnings.
2022-08-16 15:39:17 +02:00
Bård Skaflestad
e5fdfb16df
Merge pull request #3097 from bska/restore-build
...
Remove Consistency Checks for SPE10 Models
2022-08-16 14:37:57 +02:00
Bård Skaflestad
cc48ad4632
Remove Consistency Checks for SPE10 Models
...
The input decks were removed from the opm-tests repository. We
*may* consider readding them from a new location at a later time.
2022-08-16 14:01:33 +02:00
Bård Skaflestad
dacd635c38
Merge pull request #3092 from atgeirr/fix-wpimult-actionx
...
Enable using WPIMULT in ACTIONX.
2022-08-12 17:56:20 +02:00
Bård Skaflestad
9660189290
Merge pull request #3096 from akva2/remove_empty_well_header
...
changed: remove (basically) empty Well(Injection|Production)Properties.hpp
2022-08-11 12:55:00 +02:00
Arne Morten Kvarving
5df933460b
changed: remove (basically) empty Well(Injection|Production)Properties.hpp
2022-08-11 11:47:54 +02:00
Bård Skaflestad
e4129cf826
Merge pull request #3080 from totto82/add_unit_gas_oil_ratio_rate
...
add unit gas oil ratio rate for output of drsdt
2022-08-11 11:29:26 +02:00
Tor Harald Sandve
189a043c6d
add unit gas oil ratio rate for output of drsdt
2022-08-10 15:42:50 +02:00
Atgeirr Flø Rasmussen
7e8a91b81f
Enable using WPIMULT in ACTIONX.
2022-08-04 09:19:44 +02:00
Bård Skaflestad
eb7476e0cf
Merge pull request #3089 from atgeirr/add-missing-include
...
Add <cstddef> include for std::size_t.
2022-08-01 00:05:10 +02:00
Atgeirr Flø Rasmussen
f96290e1df
Add <cstddef> include for std::size_t.
2022-07-31 21:24:30 +02:00
Bård Skaflestad
9af8c785b2
Merge pull request #3085 from akva2/cleanup_schedule
...
Cleanup Schedule.hpp usage
2022-07-30 00:42:06 +02:00
Arne Morten Kvarving
e82ec7a274
clean up includes in Schedule.hpp
2022-07-29 18:37:57 +02:00
Markus Blatt
6561138236
Merge pull request #3067 from GitPaean/fixing_multiple_wpimult
...
fixing multiple WPIMULT records
2022-07-29 10:24:50 +02:00
Markus Blatt
26886bf4fa
Merge pull request #3087 from akva2/small_buildsys_fixes
...
Small buildsystem fixes
2022-07-28 09:03:48 +02:00
Bård Skaflestad
9ec5680915
Merge pull request #3086 from akva2/remove_unused
...
remove unused file
2022-07-28 00:58:29 +02:00
Arne Morten Kvarving
0b0f9cab33
remove faulty brace
2022-07-27 18:08:52 +02:00
Arne Morten Kvarving
90f27b58cd
fixed: use proper case in find_package_handle_standard_args
2022-07-27 18:08:52 +02:00
Arne Morten Kvarving
1012e15711
remove unused file
2022-07-27 17:51:17 +02:00
Arne Morten Kvarving
ec57a4d10b
changed: remove include of Schedule.hpp in header
...
and deal with the consequences
2022-07-27 17:13:45 +02:00
Markus Blatt
92ebef3bc9
Merge pull request #3084 from akva2/cleanup_stream_includes
...
clean up stream includes
2022-07-27 17:08:28 +02:00
Markus Blatt
5532176af4
Merge pull request #3083 from akva2/cleanup_deck
...
changed: remove include of Deck.hpp in header
2022-07-27 17:06:26 +02:00
Markus Blatt
c5b0cd6f61
Merge pull request #3082 from akva2/clean_eclipsestate
...
changed: remove include of EclipseState.hpp in header
2022-07-27 17:03:17 +02:00
Arne Morten Kvarving
068bff1ebc
clean up stream includes
2022-07-27 16:05:01 +02:00
Arne Morten Kvarving
5e7191c79e
changed: remove include of Deck.hpp in header
...
and deal with the consequences
2022-07-26 18:42:39 +02:00
Arne Morten Kvarving
ef6d448077
changed: remove include of EclipseState.hpp in header
...
and deal with the consequences
2022-07-26 16:03:52 +02:00
Arne Morten Kvarving
10dcb8945f
Merge pull request #3081 from Diullei/patch-1
...
Fix eclipse SOLWNUM json file
2022-07-25 08:33:08 +02:00
Diullei Gomes
cf0eb66009
Fix eclipse SOLWNUM json file property name
2022-07-24 11:11:29 +02:00
Bård Skaflestad
247547355c
Merge pull request #3074 from OPMUSER/NNC
...
Update NNC
2022-07-14 14:13:12 +02:00
OPMUSER
1ea89ab140
Update NNC
...
Remove erroneous warning messages:
NNC: invalid value '' in record 1 for item 12
In file: RON-P50-A01-OPM.DATA, line 3387
NNC(FACE1): not supported use 1* - will continue
For NNC(FACE1) and NNC(FACE2) by deleting the default "" value in the JSON file.
Client model had hundreds of these messages.
2022-07-14 18:20:39 +08:00
Bård Skaflestad
5cca4b0be0
Merge pull request #3071 from OPMUSER/MINPORV
...
Support MINPORV
2022-07-12 14:12:34 +02:00
OPMUSER
a8a1d140d5
Update EclipseGrid and JSON Definitions
...
Update EclipseGrid with checks for MINPVFIL. For JSON definitions: remove MINPVFIL check in MINPV and MINPORV, and all checks from MINPVFIL.
2022-07-12 11:07:10 +08:00
OPMUSER
4fe559ba3c
Remove C++ Code and Place Conditions in JSON Files
...
Remove the C++ code checks and instead place the logic in the keyword JSON files. This is a cleaner approach.
Note we force that only one of the keywords is allowed in the deck to avoid confusion on what cut-off is actually being applied.
2022-07-11 15:02:10 +08:00
OPMUSER
a5cfafe4de
Support MINPORV
...
Add support for MINPORV, which is an alias for MINPV. Also added additional checks, such that only one of MINPV, MINPORV and MINPVFIL can be active in the deck
2022-07-11 14:05:34 +08:00
Markus Blatt
bad915fdf5
Merge pull request #3069 from bska/decouple-box-from-grid
...
Decouple Opm::Box From EclipseGrid
2022-07-06 15:15:51 +02:00
Kai Bao
96ab0e036d
addressing some reviewing comments for PR#3067
2022-07-06 14:32:59 +02:00
Bård Skaflestad
a79ee15082
Decouple Opm::Box From EclipseGrid
...
This commit switches to constructing Box instances from a GridDims
and two call-back functions instead of taking an EclipseGrid
directly. The two call-back functions are a predicate for active
cells and a translation from Cartesian to active cell indices
respectively.
This is intended to simplify working with nested boxes, such as
those that occur for local grid refinement.
2022-07-05 14:27:49 +02:00
Markus Blatt
7dd56d2bde
Merge pull request #3070 from bska/simplify-griddims-ijk
...
Streamline GridDims::getIJK()
2022-07-05 14:23:41 +02:00
Kai Bao
b87867d144
multple MPIMULT keywords within one report step is handled
...
and ScheduleTests is updated with tests
2022-07-05 10:52:25 +02:00
Bård Skaflestad
5377ff3442
Streamline GridDims::getIJK()
...
This commit switches the Cartesian -> IJK decomposition in GridDims
from K->J->I into the I->J->K order. The latter is simpler.
While here, also consistently use 'std::size_t' instead of 'size_t'.
2022-07-04 15:06:07 +02:00
Bård Skaflestad
336f7a4159
Merge pull request #3064 from bska/refactor-numerical-aquifer-handling
...
Handle Active Cell/Numerical Aquifers In Constructor Body
2022-07-04 15:04:55 +02:00
Bård Skaflestad
c740b3705d
Handle Active Cell/Numerical Aquifers In Constructor Body
...
The constructor did implicitly assume that no cell in a numerical
aquifer would be declared inactive in ACTNUM, and this restriction
still applies. Moving numerical aquifer property and connection
processing into the constructor body enables using existing member
functions for non-neighbouring connections and removes a branch that
obscured the fact that we should have ACTNUM be as close to
finalised as possible before creating analytic aquifer connections.
2022-07-04 14:08:11 +02:00
Bård Skaflestad
c951d7ff6e
Merge pull request #3068 from goncalvesmachadoc/temp
...
fix Bug Temp
2022-07-04 14:06:11 +02:00
goncalvesmachadoc
99702cdf49
fixBugTemp
2022-06-30 13:44:09 +02:00
Kai Bao
ffa12e5d09
adding a test for WPIMULT to test new functionality
...
from this PR.
2022-06-30 13:30:36 +02:00
Kai Bao
3f025070fe
fixing interpreting multiple WPIMULT records
...
During a report step, if there are multple records for a well has
defaulted connection and completion information, only the last record
will apply to that well.
But the following record is considered not to have defaulted connection
and completion information.
WMPIMUL
'WEL' 0.8 0 0 0 /
/
2022-06-29 10:54:20 +02:00
Bård Skaflestad
1516b63a39
Merge pull request #3065 from blattms/ordered-map-truncate-key
...
Use only first 8 characters as fault name when comparing/searching.
2022-06-28 10:22:35 +02:00
Arne Morten Kvarving
fdc0ea3436
Merge pull request #3066 from akva2/janitoring
...
Some janitoring
2022-06-27 15:27:29 +02:00
Arne Morten Kvarving
114753c459
changed: add initializer
...
harmless and suppresses compiler diagnostics
2022-06-27 14:44:30 +02:00
Arne Morten Kvarving
e2c99a28e7
changed: remove unused lambda captures
2022-06-27 14:44:30 +02:00
Markus Blatt
80545120b6
Merge pull request #3063 from bska/ensure-correct-initial-actnum
...
Apply Generalised ACTNUM Handling to All Grid Types
2022-06-27 11:32:48 +02:00
Markus Blatt
35029e0313
Only use first 8 characters as fault names when comparing/searching.
...
Note this is currently done silently as the warnings will probably
need to go to the validation code in opm-simulators.
2022-06-27 11:14:41 +02:00
Markus Blatt
19c58e33c4
Document at least what OrderedMap class is all about.
2022-06-27 11:14:22 +02:00
Markus Blatt
d4cd92ee40
Support ignoring additional characters in key of OrderedMap.
...
At least for faults we should only look at the first 8 characters.
2022-06-27 11:14:22 +02:00
Bård Skaflestad
013b279682
Apply Generalised ACTNUM Handling to All Grid Types
...
Commit eca858335 introduced a more comprehensive way of forming the
initial ACTNUM array used when constructing the EclipseGrid from a
corner-point description. This commit applies that strategy to all
known grid types. As an additional benefit this will also cover one
special case that was not handled and would effectively discard the
work done in the generalised initial ACTNUM construction.
Add unit tests to exercise the ACTNUM handling for other grid types.
2022-06-24 14:01:17 +02:00
Markus Blatt
f18ee95574
Merge pull request #3058 from bska/copy-defaulted-pvt-tables
...
Treat All-Defaulted PVTW Record as Copy of Previous
2022-06-24 13:54:14 +02:00
Bård Skaflestad
254b2e2862
Extract Common Base Class For Flat Tables With Record Copying
...
This commit introduces a new helper template class,
FlatTableWithCopy<RecordType>
which wraps a vector<RecordType>, provides constructors from
DeckKeyword and initializer_list<RecordType> and handles copying
tables for all-defaulted records.
We reimplement the PVTW, DENSITY, and GRAVITY tables in terms of
this helper class to reduce duplication. If the copy behaviour is
generally useful/needed we expect to replace the existing FlatTable
mechanism with the new helper.
Suggested by: Markus Blatt
2022-06-24 12:56:08 +02:00
Markus Blatt
b4eb8fbd4f
OrderedMap: Remove template parameter for key type.
...
It is only used with std::string anyway.
2022-06-24 09:32:10 +02:00
Bård Skaflestad
d35abfddb6
Implement Defaulted Table Copy for DENSITY and GRAVITY
...
Use the same targeted strategy as for PVTW.
2022-06-23 16:04:50 +02:00
Bård Skaflestad
54ba23d71b
Implement Defaulted Table Copy for PVTO and PVTG
...
The existing mechanism did not handle this case sufficiently well.
It is likely that we will have to polish this approach, but for now
use an explicit table copy to ensure that we have structurally
correct backing table data.
2022-06-23 16:04:50 +02:00
Bård Skaflestad
a066d2b95f
Implement Defaulted Table Copy for PVDO and PVDG
2022-06-23 16:04:50 +02:00
Bård Skaflestad
433cc4d649
Treat All-Defaulted PVTW Record as Copy of Previous
...
A simulation model may choose to give PVTW data as
PVTW
1.0 1.0 1.0e-5 0.2 0.0 /
/ -- record 2 (copied from record 1)
if, for instance, the oil and/or gas tables are different in regions
1 and 2, but the water is the same. In this case we must properly
copy record 1 into record 2 and essentially recreate the table.
To this end, decouple the 'PvtwTable' from the 'FlatTable' machinery
and make the former into an independent type containing vector<>
instead of inheriting from vector<>. Implement the default->copy
behaviour in the new PvtwTable::PvtwTable(const DeckKeyword&)
constructor.
2022-06-23 16:04:50 +02:00
Markus Blatt
00ace58e6c
Merge pull request #3052 from bska/dont-assume-monotonic-wlist-position-on-restart
...
Don't Assume Increasing WLIST Position In Restart Files
2022-06-23 15:25:31 +02:00
Bård Skaflestad
042830e860
Don't Assume Increasing WLIST Position In Restart Files
...
The well list positions for individual wells (i.e,, IWLS) need not,
and typically are not, strictly increasing in the restart files.
Therefore we must only 'resize()' the well name vectors if the
'well_order' is strictly larger than the current size. Otherwise,
we lose information about which wells are in which well lists.
2022-06-23 10:38:23 +02:00
Atgeirr Flø Rasmussen
5495266115
Merge pull request #3056 from bska/extract-single-record-construction-helper
...
Extract Helper for Single Table Record Construction
2022-06-23 09:59:20 +02:00
Bård Skaflestad
4d9387ee23
Extract Helper for Single Table Record Construction
...
Use case is table copy for PVTW.
2022-06-22 16:50:15 +02:00
Bård Skaflestad
531803eb0a
Merge pull request #3061 from ElyesAhmed/alugrid
...
assert if Alugrid can be initialized from Deck: check format and geometry
2022-06-22 16:36:41 +02:00
Atgeirr Flø Rasmussen
c07357cdc3
Merge pull request #3060 from bska/xeff-smry
...
Add Well and Group Level Efficiency Factor Summary Vectors
2022-06-22 13:26:51 +02:00
Bård Skaflestad
0a287ca914
Add Well and Group Level Efficiency Factor Summary Vectors
...
This commit adds support for the GEFF, WEFF, and WEFFG summary
vectors that report the efficiency factors at the well (WEFAC) and
group (GEFAC) levels. WEFFG additionally accounts for efficiency
factors in a well's superior groups in the group tree.
2022-06-22 11:52:58 +02:00
Bård Skaflestad
7b31522fdd
Merge pull request #3062 from blattms/import-error-fault
...
Improves error messages on faults when additional chars are used.
2022-06-22 11:48:00 +02:00
Bård Skaflestad
41d0b21463
Merge pull request #3055 from blattms/improve-error-region-op-multz
...
Improve error message for region operations on multz
2022-06-22 11:47:27 +02:00
Markus Blatt
9e1aaca9e9
Improves error messages on faults when additional chars are used.
...
Faults are stored in an OrderedMap with the full string used during
construction even if that is longer than 8 characters. When later
these faults are e.g. modified whith MULTFLT using only the first 8
characters, the only message the user got was
```
An error occurred while creating the reservoir properties
Internal error: Key not found:
Unrecoverable errors while loading input: Key not found
```
With this patch we at least add some more context to the error
message:
```
Error:
An error occurred while creating the reservoir properties
Internal error: [/../EclipseState.cpp:362] Could not set fault transmissibility multiplier 5.23166e-10 for fault CFN2_05t: Key ABCD_05q not found. Similar entries are ABCD_05q_extended_width, UABCD_05q_extended_width.
```
2022-06-22 11:35:40 +02:00
Elyes Ahmed
04736dcbd0
removing methods for specific grid
2022-06-22 11:25:31 +02:00
Markus Blatt
6caebad329
Use OpmInputError instead of std::logic_error.
...
Message now becomes:
```
Error: Problem with keyword MULTIREG
In /path/to/file.inc line 3
region operation on 3D field MULTZ with global storage is not implemented!
```
2022-06-21 16:38:05 +02:00
Markus Blatt
a4576d253d
Add operation name to error.
2022-06-21 15:42:08 +02:00
Markus Blatt
8611f664cb
Improve error message for region operations on MULTZ.
...
MULTZ is the only keyword that is stored in global representation
(i.e. with values for inactive cells, too) to allow the "PINCH ALL"
processing. This produced errors like:
```
Error:
An error occurred while creating the reservoir properties
Internal error: Region operations on 3D fields with global storage is
not implemented
```
With this change the error message has more information for the user
and might help to work around it:
```
Error:
An error occurred while creating the reservoir properties
Internal error: In file /path/to/file.inc line 3: MULTIREG region operation on 3D field MULTZ with global storage is not implemented!
```
2022-06-21 15:42:08 +02:00
Elyes Ahmed
d0a1101bc8
assert if Alugrid can initialized from Deck: check format and geometry
2022-06-21 14:49:13 +02:00
Bård Skaflestad
4d76351111
Merge pull request #3049 from atgeirr/fix-actnum-equals-manipulation
...
Fix ACTNUM manipulation with EQUALS
2022-06-21 09:59:33 +02:00
Atgeirr Flø Rasmussen
a97df7c889
Use BOOST_CHECK_EQUAL_COLLECTIONS.
2022-06-21 09:32:31 +02:00
Bård Skaflestad
0d6dc717d3
Merge pull request #3059 from tskille/fix_esmry_load
...
Prevent data vector loading twice
2022-06-20 20:49:29 +02:00
Atgeirr Flø Rasmussen
02c06e9ae3
Add unit tests for new ACTNUM initialization features.
2022-06-20 17:57:25 +02:00
Atgeirr Flø Rasmussen
90d0b6479a
Make new ACTNUM initialization unconditional, simplify.
2022-06-20 17:56:56 +02:00
Atgeirr Flø Rasmussen
0dab2aaf2b
If no ACTNUM, default to all active in FieldProps.
2022-06-20 17:56:08 +02:00
Torbjørn Skille
f9bbf34b9a
Prevent data vector loading twice
...
if same vector is defined twice in the vector list
2022-06-20 14:24:15 +02:00
Atgeirr Flø Rasmussen
e568d14a87
Future-proof checking for BOX-related keywords.
2022-06-17 13:02:42 +02:00
Atgeirr Flø Rasmussen
86fe7bbc3f
Add moved header to public header list.
2022-06-17 13:02:42 +02:00
Atgeirr Flø Rasmussen
bc966fa32a
Get actnum vector as it exists in FieldProps without modification.
2022-06-17 13:02:42 +02:00
Atgeirr Flø Rasmussen
eca8583358
Use new FieldProps constructor to get ACTNUM.
2022-06-17 13:02:42 +02:00
Atgeirr Flø Rasmussen
f5a2f6de74
Add new EclipseGrid contructor with no geometry or actnum info.
2022-06-17 13:02:42 +02:00
Atgeirr Flø Rasmussen
29954fd91f
Add new constructor to only find correct ACTNUM.
2022-06-17 13:02:42 +02:00
Bård Skaflestad
194a599303
Merge pull request #3054 from hakonhagland/krnum
...
Fix typo in KRNUM json file
2022-06-17 12:52:04 +02:00
Håkon Hægland
7867bcb5fd
Fix some more typos in keyword JSON files
2022-06-17 10:40:04 +02:00
Håkon Hægland
412a11d92f
Fix typo in KRNUM json file
2022-06-16 23:36:23 +02:00
Tor Harald Sandve
fae7b5ccfc
Merge pull request #2999 from totto82/rsrvinj
...
implement item 10 WCONINJE
2022-06-16 08:30:20 +02:00
Bård Skaflestad
dd528b74dd
Merge pull request #3051 from Tongdongq/add-header-functional
...
Include header to compile with g++-8.4.0
2022-06-15 11:57:33 +02:00
Tong Dong Qiu
a058253ece
Include header to compile with g++-8.4.0
2022-06-15 11:13:55 +02:00
Bård Skaflestad
d42d437e17
Merge pull request #3048 from goncalvesmachadoc/patch-6
...
Output FOE
2022-06-13 23:06:41 +02:00
Bård Skaflestad
f5b49a19fe
Merge pull request #3047 from akva2/improve_error_logging_tableID
...
changed: pass table ID into SimpleTable constructors
2022-06-13 20:16:12 +02:00
Arne Morten Kvarving
0d1075daee
changed: pass table ID into SimpleTable constructors
...
use this to improve logging in case of failure
2022-06-13 15:48:57 +02:00
Cintia Goncalves Machado
43dafbc995
Output FOE
...
Keyword is implemented, but missing in Summary.cpp. Small fix also to be pushed in opm-simulators.
2022-06-13 15:20:33 +02:00
Arne Morten Kvarving
e3f97e45d9
Merge pull request #3045 from akva2/improve_error_logging
...
Improve error logging
2022-06-13 15:11:02 +02:00
Arne Morten Kvarving
050540525f
changed: log keyword location when parsing a table failed
2022-06-13 14:59:05 +02:00
Markus Blatt
4a51cfb707
Merge pull request #3046 from akva2/janitoring
...
changed: use modern include file path
2022-06-13 14:26:10 +02:00
Arne Morten Kvarving
3af1d464eb
changed: avoid duplicating code
2022-06-13 13:30:33 +02:00
Arne Morten Kvarving
964f028413
changed: use modern include file path
...
to avoid deprecation warnings
2022-06-13 12:33:26 +02:00
Bård Skaflestad
d032078634
Merge pull request #3044 from tskille/erft_api_change
...
API change for I/O classes ERft and ERst
2022-06-10 16:07:09 +02:00
Markus Blatt
b3eddb7061
Merge pull request #3040 from hakonhagland/python_nsp2
...
Make the Python `opm` package a namespace package
2022-06-10 15:01:07 +02:00
Torbjørn Skille
e778960932
API change of class ERft and ERst
...
ERft - return false (not throw an exception) if function hasArray( .. ) is used with an
non-existing rftreport.
ERst - new memeber function hasArray ( .. )
2022-06-10 14:27:48 +02:00
Håkon Hægland
046736e45d
Make Python opm package a namespace package
...
Convert the Python opm package from a regular package to a namespace
package such that opm-simulators can contribute to the package from a
different filesystem path. In this way, the two packages opm.simulators
and opm.io (for example) can have a different parent filesystem path.
2022-06-10 09:02:19 +02:00
Markus Blatt
02167f2c2f
Merge pull request #3041 from blattms/always-search-superlu
...
Make sure USE_SUPERLU is defined when calling FindSuperLU.cmake
2022-06-09 16:13:41 +02:00
Markus Blatt
819a28a94d
Make sure USE_SUPERLU is defined when calling FindSuperLU.cmake
...
Previously, touching CMakeLists.txt after a first compilation would
trigger compile errors as the two CMake runs were done with
inconsistent parameters (first one without USE_SUPERLU defined and
second one with -DUSE_SUPERLU=ON). Of course that meant that the
options would also differ from module to module, which seems like a
recipe for desaster.
This patch fixes this by moving the definition of the USE_SUPERLU
option to OpmInit.cmake which is included very early in the top most
CMakeLists.txt of each module.
Closes OPM/opm-simulators#3908
2022-06-09 12:26:56 +02:00
Markus Blatt
dbec8e4466
Merge pull request #3029 from plgbrts/new-jt-table
...
Joule-Thomson keywords for gas, oil and water phase
2022-06-07 13:17:06 +02:00
Markus Blatt
5a61625768
Merge pull request #3037 from hakonhagland/inst_pyt
...
WIP: Install the `install.py` script such that it can be reused by opm-simulators
2022-06-07 13:02:09 +02:00
Markus Blatt
3a5b17a070
Merge pull request #3039 from bska/rst-glo-compat
...
Increase Compatibility of GLO Restart Output
2022-06-07 11:53:31 +02:00
Bård Skaflestad
f6ca3ccaff
Increase Compatibility of GLO Restart Output
...
We need to honour a "small rate threshold" when outputting the lift
gas max supply rate limit and total gas production limit. This
threshold renders the output discontinuous, but is needed for
compatibility.
2022-06-06 21:18:47 +02:00
Bård Skaflestad
e6d8d59525
Merge pull request #3028 from tskille/esmry_updates
...
Esmry updates
2022-06-06 21:16:49 +02:00
Håkon Hægland
32c3d9bcb0
Add the python script directory to opm-project-config
...
Uses GNUInstallDIrs' CMAKE_INSTALL_DATAROOTDIR as top directory for
common python scripts. Also adds that location to
opm-project-config.cmake.in such that other opm modules can
easily lookup the common scripts
2022-06-03 09:03:34 +02:00
Torbjørn Skille
9a97d5c998
updated ExtESmry unit test
...
Loading summary vector from restart simulation with loadBaseRunData = true and selected summary vector not present in baserun.
Common use case where a new vector added in the restart run.
2022-06-02 19:46:37 +02:00
Torbjørn Skille
1433bc7a55
ExtESmry - support loading when number of time steps have increased (on disk)
...
The ESMRY file can be updated with more time step data in the time span between opening an ESMRY file
and loading actual summary data from the file. This can happen if the ESMRY is generated by an active
run. Length of summary vectors extracted will be equal to number of time steps on disk when the file was
first opened (with the constructor).
2022-06-02 19:44:20 +02:00
Torbjørn Skille
ab81083e02
Write temporary ESMRY file before renaming this to the actual file name
...
This increases the availability of the file for other processes. Duration for a
rename file operation is very short relative to writing a new file.
2022-06-02 14:10:17 +02:00
Torbjørn Skille
d34910c27d
Minimum time interval between update of ESMRY file
...
The ESMRY file need a complete rewrite every time this is being updated.
This will makes the file more available for reading by other processes.
2022-06-02 14:10:14 +02:00
Atgeirr Flø Rasmussen
e1e0edba7d
Merge pull request #3038 from bska/jfunc-require-endscale
...
Require ENDSCALE When JFUNC Entered
2022-06-01 08:54:28 +02:00
Bård Skaflestad
4333a69cd4
Require ENDSCALE When JFUNC Entered
...
We effectively ignore JFUNC data unless end-point scaling is
activated through the ENDSCALE keyword in the RUNSPEC section.
Alert the user to this fact by terminating the simulation run if the
case uses JFUNC without ENDSCALE present in RUNSPEC. In this case,
issue a diagnostic message of the form
Error: Unrecoverable errors while loading input: Problem with keyword JFUNC
In CASE.DATA line 125
Incompatible keyword combination: JFUNC declared, but ENDSCALE is missing.
2022-05-31 16:56:27 +02:00
Håkon Hægland
89b790d72f
Install install.py
...
Install the install.py python script such that it can be used by
opm-simulators when building against an installed opm-common
2022-05-31 12:19:50 +02:00
Markus Blatt
d278880091
Merge pull request #3032 from bska/netbalan-rst-fixes
...
Increase Compatibility of NETBALAN Restart Output
2022-05-27 21:46:21 +02:00
Bård Skaflestad
8ff84920ed
Increase Compatibility of NETBALAN Restart Output
...
The current Network::Balance class applies default values a little
too eagerly and this leads to problems for restarted simulation. We
must take care to preserve the "did this item have a value" state
also in the restart file lest interactions with TUNING be lost
there.
To this end, make the minimum timestep size for network balancing be
an std::optional<> and use std::nullopt to represent "no value set"
in the input file. While here, also preserve negative balancing
intervals exactly instead of replacing these values by zero.
2022-05-27 17:09:23 +02:00
Markus Blatt
378bd03eef
Merge pull request #3033 from tskille/fix_esmry
...
ESmry and ExtESmry - Prevent loading data multiple times
2022-05-25 15:15:33 +02:00
Torbjørn Skille
607b8e7ebf
ESmry and ExtESmry - Prevent loading data multiple times
2022-05-25 12:01:36 +02:00
Bård Skaflestad
4f181ec439
Merge pull request #3021 from bska/wecon-etc-restart-output
...
Identify Additional IWEL and SWEL Items
2022-05-25 10:54:35 +02:00
Bård Skaflestad
b4cebad6a9
Address Review Comments
...
In particular, add more unit testing and give names to a number of
index constants.
Thanks to [at]blattms for reviewing the initial version of this
patch.
2022-05-24 18:21:41 +02:00
Bård Skaflestad
188d7802a3
Temporarily Disable Higher-Level Water Injection Control
...
Instead, just declare that all non-FIELD groups are subject to
higher-level control of the water injection.
This hack is needed for compatibility on a real field case. We must
revisit this at a later point.
2022-05-24 12:06:57 +02:00
Bård Skaflestad
adb84c15cc
Emit Group Control Target of Zero if Explicitly Assigned
...
If a simulation model explicitly assigns a target or limit of 0.0,
then we must honour that value in the restart file. Use a more
complete condition to detect whether or not group level targets or
limits are defaulted in GCONPROD and/or GCONINJE.
2022-05-24 12:06:57 +02:00
Bård Skaflestad
b36f415a96
Identify Additional IWEL and SWEL Items
...
In particular, add entries from WECON, WGRUPCON and, WVFPEXP and fix
an incorrect item attribution for the WTEST 'reason' parameter.
Thanks to [at]tskille for invaluable assistance in identify these
items.
2022-05-24 12:06:57 +02:00
Bård Skaflestad
67b7fe58b3
Don't Assert IWEL[24] == -1 Anymore
...
This setting is no longer magic.
2022-05-24 12:06:57 +02:00
Bård Skaflestad
6049b6e254
Expose First/Every Reporting
...
Needed for output to the restart file.
2022-05-24 12:06:57 +02:00
Bård Skaflestad
2aff28dd57
Merge pull request #3002 from bska/bxip-smry-values
...
Add Support for Block-Level Component-in-Place Summary Values
2022-05-24 12:04:23 +02:00
Bård Skaflestad
c5b9c8ea18
Add Support for Block-Level Component-in-Place Summary Values
...
This commit outputs the various BxIP* summary output values such as
BOIP (block-level oil-in-place) and BGIPL (block-level gas-in-place
in liquid phase). While here, also add support for outputting the
block-level dissolved gas-oil-ratio (BRS) and vaporised
oil-gas-ratio (BRV).
2022-05-23 14:51:30 +02:00
Markus Blatt
82a5e7192e
Merge pull request #3031 from hakonhagland/python_rates3
...
Adds a method get_injection_properties() to the Python interface to Opm::Schedule
2022-05-23 14:05:24 +02:00
Håkon Hægland
fa740678e0
Adds a method get_injection_properties()
...
Adds a method get_injection_properties() to the Python interface to
Opm::Schedule. This method can be used to get information about
Well::WellInjectionProperties for a given report step.
In order to avoid code duplication between opm-simulators and opm-common,
logic in CMakeLists.txt was refactored out into
cmake/Modules/PyInstallPrefix.cmake
2022-05-20 06:27:29 +02:00
Markus Blatt
acd90212d7
Merge pull request #3030 from blattms/bump-version-2022.10
...
Bump version to 2022.10-pre
2022-05-19 16:52:32 +02:00
Markus Blatt
a036273540
Bump version to 2022.10-pre
2022-05-19 16:46:35 +02:00
Markus Blatt
678114116f
Merge pull request #3026 from bska/expose-raw-guiderate-phase
...
Provide Accessor for WGRUPCON's Raw Phase Value
2022-05-19 15:34:19 +02:00
Markus Blatt
180b7cb664
Merge pull request #3027 from bska/attribute-missing-kw-terminator
...
Attribute Missing Terminator to Keyword/File/Line
2022-05-19 15:32:44 +02:00
Paul Egberts
d11d7d6ca0
Joule-Thomson keywords for gas, oil and water
2022-05-18 16:16:57 +02:00
Bård Skaflestad
462457fb39
Attribute Missing Terminator to Keyword/File/Line
...
This will hopefully aid the user in resolving the underlying issue.
2022-05-10 22:01:21 +02:00
Bård Skaflestad
f7ea7674c0
Provide Accessor for WGRUPCON's Raw Phase Value
...
Needed for restart file compatibility.
2022-05-10 10:03:27 +02:00
Bård Skaflestad
c91bde8182
Merge pull request #3005 from bska/weltarg-uda
...
Save and Restore UDAs From WELTARG Keyword
2022-05-09 14:09:30 +02:00
Bård Skaflestad
0e2623d6dd
List WCONPROD UDAs in Order of Increasing Enum Values
...
The entries for WRAT and GRAT were listed in reverse order.
2022-05-09 12:24:30 +02:00
Bård Skaflestad
b9e9112c6b
Distinguish Well/Group Injection/Production UDA Controls
...
This avoids add-on logic at the call site to identify UDAs in
WELTARG keywords.
Suggested by: [at]atgeirr
2022-05-09 12:05:28 +02:00
Bård Skaflestad
b9eaa3a6aa
Save and Restore UDAs From WELTARG Keyword
...
This commit hooks the WELTARG UDA support code up to the main path
for saving and reloading the IUAD/IUAP restart arrays.
2022-05-09 11:33:07 +02:00
Bård Skaflestad
f751c46f10
Count Active UDAs From WELTARG Keyword
...
This commit introduces a new overload of the updateUDQActive member
function of the WellInjectionProperties and WellProductionProperties
classes. The new overload is specifically targeted at accounting
for any active UDAs in WELTARG records. It is possible to have
"regular" UDAs introduced in WCONPROD/WCONINJE and also a separate
set of UDAs attributed to WELTARG at the same time so we need to be
able to distinguish the two cases.
Call the new overload from the WELTARG keyword handler.
2022-05-09 11:33:07 +02:00
Bård Skaflestad
14a6a5a4c3
Generate Units of Measurements for WELTARG UDAs
...
In preparation of loading such UDAs from the restart file.
2022-05-09 11:33:07 +02:00
Bård Skaflestad
25ede43bf7
Implement UDQ::*_control in Terms of UDQ::keyword
...
This replaces the cost of maintaining sets of switch/case statements
with some additional runtime cost of looking up the corresponding
keyword in a std::map<>, but these functions are not called in inner
loops so the extra cost is justified.
2022-05-09 11:33:07 +02:00
Bård Skaflestad
f4fde15e67
Support Recognizing UDAs in WELTARG Keyword
...
This commit extends the set of supported UDQ enumators to include
those of the WELTARG keyword. This is in preparation of adding
restart file support for such cases.
2022-05-09 11:33:07 +02:00
Bård Skaflestad
f467ed7251
Identify More UDA Integer Values
...
In particular, identify UDA control codes for RESV, BHP, and THP in
WCONPROD as well as BHP and THP in WCONINJE.
2022-05-09 11:33:07 +02:00
Bård Skaflestad
d9ca1fe86f
Increase Integer Literal Readability
...
Use C++14's digit separator character (single quote).
2022-05-09 11:33:07 +02:00
Atgeirr Flø Rasmussen
9a07a5d419
Merge pull request #3024 from atgeirr/use-invoke-result
...
Use std::invoke and friends instead of the deprecated std::result_of.
2022-05-09 11:31:11 +02:00
Atgeirr Flø Rasmussen
7e9e3e26eb
Use std::invoke and friends instead of the deprecated std::result_of.
2022-05-09 10:26:29 +02:00
Markus Blatt
84ef4f6aa3
Merge pull request #3023 from blattms/skip-shared-libs
...
Do not hard-code shared-libs in package configuration if not needed.
2022-05-06 14:00:38 +02:00
Markus Blatt
cec7cffe7a
Do not hard-code shared-libs in package configuration if not needed.
...
We usually list all libraries that might be needed for linking in the
CMake package configuration files. This is needed when building static
libraries as we do not yet use CMake targets (which would allow to
list them differently). As we are doing this unconditionally and
also including the ones listed in modules that we depend on, changing
a library (e.g. moving from Python 3.9 to 3.10) requires a complete
rebuild of all modules to get rid of the stale dependency on
libpython3.9.
At least when building shared libraries listing the dependencies is
not needed and this patch simply removes all shared libraries form the
list in the CMake package configuration file. Thus we only need to
recompile the modules that have direct dependency on a stale library.
2022-05-06 10:49:46 +02:00
Bård Skaflestad
9a51b6ec7c
Merge pull request #3020 from hakonhagland/python_rates
...
Adds a `get_production_properties()` method to the Python interface to Opm::Schedule
2022-05-05 17:52:46 +02:00
Bård Skaflestad
d345098471
Merge pull request #3019 from blattms/better-actionx-udq-unsupported-message
...
Improve error message for unsupported categories for UDQ/ACTIONX
2022-05-05 17:23:03 +02:00
Håkon Hægland
d2c778739b
Add trailing comma
2022-05-05 17:05:35 +02:00
Markus Blatt
68438e3f79
Improve error message for unsupported categories for UDQ/ACTIONX
...
We now print
"Keyword category 'Region' (e.g., summary keywords RPR) not supported
by ACTIONX."
instead of
"make_default_nodes does not yet support: RPR"
2022-05-05 15:43:44 +02:00
Håkon Hægland
d2cf59380e
Use more compact std::map constructor
2022-05-05 13:58:04 +02:00
Håkon Hægland
dd19213998
Adds get_production_properties()
...
Adds get_production_properties() to the python interface to Schedule.
This method can be used to get information about
Well::WellProductionProperties for a given report step
2022-05-05 13:04:03 +02:00
Markus Blatt
267f642794
Merge pull request #3018 from totto82/fix_warning_satfunc
...
fix warning due to missing else in satfuncs
2022-05-03 15:55:24 +02:00
Tor Harald Sandve
db929b509e
fix warning due to missing else in satfuncs
2022-05-03 14:48:13 +02:00
Tor Harald Sandve
2b53a25ff6
Merge pull request #2917 from osae/LETkeywords
...
LET-based family-I saturation functions.
2022-05-03 13:37:47 +02:00
Bård Skaflestad
90a451c37d
Merge pull request #3016 from goncalvesmachadoc/addBXPV
...
add Block Pore Volumes
2022-04-30 12:03:39 +02:00
Cintia Goncalves Machado
4f46615caa
Delete unnecessary BXPV from required fields
2022-04-30 08:39:05 +02:00
goncalvesmachadoc
1d3cb8b2bb
addBXPVs
2022-04-29 20:26:31 +02:00
Markus Blatt
5107d8c401
Merge pull request #3015 from blattms/install-python-bindings-by-default
...
Install python bindings as default.
2022-04-29 17:12:22 +02:00
Markus Blatt
51b73c1997
Install python bindings as default.
...
This is for consistency with opm-simulators, which (always)
installs them if they are built.
Closes #2976
2022-04-29 12:13:17 +02:00
Markus Blatt
aeb9ae8e1e
Merge pull request #3012 from blattms/make-no-quadmath-just-a-warning
...
Make not finding Quadmath non-fatal (e.g. not available on arm64)
2022-04-29 11:20:35 +02:00
Markus Blatt
b8ab89591a
Make not finding Quadmath non-fatal (e.g. not available on arm64)
...
Quadmath is usually unused except when a dependency uses it and
explicitly puts QuadMath::QuadMath into their CMake package
configuration file.
On most platforms the compiler has Quadmath available by
default. But on those that don't we should not stop CMake and fail.
Hence now we only print a message that Quadmath is not available.
2022-04-29 09:18:50 +02:00
Bård Skaflestad
612c156013
Merge pull request #2989 from plgbrts/vapoilwat
...
added vaporized_water rate type
2022-04-28 15:29:34 +02:00
Markus Blatt
ec7aadd511
Merge pull request #3007 from akva2/avoid_some_float_comps
...
fixed: avoid direct floating point comparisons in tests
2022-04-27 17:15:33 +02:00
Markus Blatt
410f2ecc34
Merge pull request #3008 from blattms/spelling-fix
...
Spelling fixes (valied -> valid).
2022-04-27 16:11:19 +02:00
Markus Blatt
7d66ff7c12
Spelling fixes (valied -> valid).
2022-04-27 14:08:53 +02:00
Bård Skaflestad
deffadd92e
Merge pull request #3006 from lindjoha/complump_defaults
...
Added default values for I, J, K1 and K2 in COMPLUMP
2022-04-27 12:40:22 +02:00
Arne Morten Kvarving
4871f618bf
fixed: avoid direct floating point comparisons in tests
...
we want to compare with an epsilon since these have gone
through calculations
2022-04-27 12:24:22 +02:00
Øyvind Lind-Johansen
dff5144d6a
Added default values for I, J, K1 and K2
2022-04-27 10:23:29 +02:00
Tor Harald Sandve
2eb49a451c
Merge pull request #3003 from bska/fix-update-uda-weltarg
...
Update THP Target in Case of THP Control
2022-04-26 08:41:58 +02:00
Bård Skaflestad
bf259a5444
Update THP Target in Case of THP Control
...
Updating the BHP target appears to have been a copy-paste error.
2022-04-25 12:55:46 +02:00
Tor Harald Sandve
3f34913fb0
implement item 10 WCONINJE
2022-04-21 14:58:44 +02:00
Markus Blatt
3349bac28f
Merge pull request #2997 from blattms/update-manpages
...
Cleanup, update and improve man pages for 2022.04
2022-04-21 11:27:29 +02:00
Markus Blatt
635aafa6f8
Merge pull request #2998 from akva2/jenkins_abs_refs
...
added: ability to use jenkins build scripts for release test building
2022-04-21 11:19:50 +02:00
Arne Morten Kvarving
9f332b87a4
added: ability to use jenkins build scripts for release test building
...
we need to be able to specify absolute refs to use for the repos
rather than a pull request number.
2022-04-21 09:51:43 +02:00
Markus Blatt
5dc5cd10b6
Cleanup, update and improve man pages for 2022.04
2022-04-20 22:09:17 +02:00
Markus Blatt
ecde5ebc8c
Merge pull request #2995 from blattms/use-dune-buildsystem-defaults
...
Use dune buildsystem defaults for MPI SuperLU, and Quadmath
2022-04-20 19:43:09 +02:00
Markus Blatt
85837a71a5
Require UMFPack
...
A direct coarse solver of AMG is needed for good convergence and umfpack
was tested to work better than SuperLU previously. Hence we now require it.
2022-04-20 17:31:24 +02:00
Markus Blatt
2f726690e7
Always build with MPI and search for SuperLU and Quadmath.
...
Concerning MPI, both DUNE and OPM must be compiled with the
same default. For DUNE that is to used MPI if it is found.
With the previous default Cmake in opm-grid would fail for
DUNE 2.8
Even if SuperLU is found umfpack will be used as the coarse
solver for AMG. But if dune-fem is used that will need SuperL
if it is on the system otherwise linking will fail for DUNE 2.8
Quadmath is used by dune-fem if it is found and linking of flow
will fail in this case for DUNE 2.8 if we did not search for it.
2022-04-20 17:31:23 +02:00
Ove Sævareid
fff89abd6b
Sample let-curves for table output to INIT file.
2022-04-20 17:07:13 +02:00
Ove Sævareid
740beea44a
Relocate kw defs.
2022-04-20 17:07:13 +02:00
Ove Sævareid
7496599d41
LET-based family-I saturation functions. New keywords SWOFLET and SGOFLET.
2022-04-20 17:07:13 +02:00
Bård Skaflestad
a5d19c4cf0
Merge pull request #2990 from totto82/rename_ext
...
rename extrapolate to explicit_lookup in vfpexp
2022-04-20 09:54:25 +02:00
Tor Harald Sandve
09f80a3da1
rename extrapolate to explicit_loopup in vfpexp
2022-04-12 09:03:29 +02:00
Markus Blatt
35835efbbe
Merge pull request #2987 from akva2/update_redhat_python_versioned_packages
...
update redhat packaging
2022-04-10 10:57:22 +02:00
Paul Egberts
7956c2d7da
added vaporized_water rate type
2022-04-08 21:07:45 +02:00
Bård Skaflestad
61090f078e
Merge pull request #2988 from totto82/wvfpexp
...
add support for wvfpexp in the input layer
2022-04-07 11:39:24 +02:00
Tor Harald Sandve
f91b9b7c31
add support for wvfpexp in the input layer
2022-04-07 09:38:03 +02:00
Markus Blatt
6111526c93
Merge pull request #2986 from bska/block-level-solvent-sat-smry
...
Support Block Level Solvent Saturation Summary Output
2022-04-06 12:12:09 +02:00
Bård Skaflestad
3e1031b1d5
Support Block Level Solvent Saturation Summary Output
...
This commit recognises the summary vector "BNSAT" as a supported
keyword. This, in turn, enables retrieving the simulator's solvent
saturation values at the block level as a time series.
2022-04-05 15:45:30 +02:00
Markus Blatt
9d5167ab4e
Merge pull request #2980 from blattms/binary-package-versio-no-build-time
...
Incude binary package version in project-version.h and skip timestamp
2022-04-05 14:54:36 +02:00
Arne Morten Kvarving
9c260d6c9a
update redhat packaging
...
- add parameter for which toolset to use
- build against openmpi3
- build with python support
- add boolean flags for the different mpi builds (mostly for testing)
- add parameter for appending extra token to package names.
this can be used for allowing multiple versions to be installed on the
same system.
2022-04-05 11:43:43 +02:00
Markus Blatt
ebca866e31
Merge pull request #2984 from akva2/fix_rst_deck_test
...
fixed: use PROJECT_BINARY_DIR, not CMAKE_BINARY_DIR
2022-04-01 16:40:16 +02:00
Arne Morten Kvarving
1f335a1d54
fixed: use PROJECT_BINARY_DIR, not CMAKE_BINARY_DIR
...
when using as super-build these differ
2022-04-01 11:58:13 +02:00
Markus Blatt
fce5764dd4
Merge pull request #2982 from akva2/remove_debian_package
...
remove in-tree debian (ubuntu) packaging
2022-03-31 19:50:09 +02:00
Arne Morten Kvarving
525875f16a
remove in-tree debian (ubuntu) packaging
...
ubuntu packages will be built using the debian packaging
in the future
2022-03-31 15:39:30 +02:00
Markus Blatt
99f2c4d6ab
Merge pull request #2974 from bska/disallow-wells-parented-to-field
...
Disallow Wells Parented Directly to FIELD
2022-03-30 13:09:30 +02:00
Bård Skaflestad
c82286f7d8
Disallow Wells Parented Directly to FIELD
...
The commercial simulator does not support parenting a well directly
to the FIELD group and Flow in multiple locations implicitly assumes
that no well is parented directly to FIELD either.
With this commit we detect this situation at the parser stage and
stop reading the input file. In this case, we issue a diagnostic
message of the form
Error: Problem with keyword WELSPECS
In SPE1CASE1.DATA line 384
Wells cannot be parented directly to 'FIELD'.
Wells entered with disallowed 'FIELD' parent group:
* PROD
* INJ
Error: Unrecoverable errors were encountered while loading input
2022-03-28 21:59:32 +02:00
Bård Skaflestad
74d7effe3f
Merge pull request #2975 from bska/restart-compat
...
Address Compatibility Issues in XWEL and ZUDL
2022-03-24 17:29:19 +01:00
Bård Skaflestad
920382179e
Always Output All Well Flow Rates to XWEL
...
Additionally, items 36..38 appear to be copies of items 1..3, so
preserve this behaviour for increased compatibility.
2022-03-24 16:10:21 +01:00
Bård Skaflestad
d08b7292bf
Use Uppercase Exponents in UDQDefine::input_string
...
Needed for compatibility reasons.
2022-03-24 16:10:21 +01:00
Bård Skaflestad
a0d9a04470
UDQ Tests: Make Utility Functions Private
...
Mostly to avoid diagnostics of the form "no previous declaration
for...". While here, also sort includes
2022-03-24 16:10:21 +01:00
Markus Blatt
a162915f77
Merge pull request #2979 from bska/detect-invalid-cpdata
...
Add Means of Detecting Valid Cell Geometries
2022-03-24 16:05:20 +01:00
Bård Skaflestad
6f29e74692
Add Means of Detecting Valid Cell Geometries
...
We define a valid cell geometry as one in which all components of
all eight corner vertices of a cell have finite coordinate values
(absolute value less than 1.0E+20) and at least one pair of pillar
vertices are separated by a positive distance.
2022-03-24 11:13:32 +01:00
Markus Blatt
0cdfeae0e5
Added CMake variable to prevent timestamps in flow binary packages.
...
One can now set the variable OPM_BINARY_PACKAGE_VERSION to a
meaningful version string (Debian 11.2: 2021.10-4). When building
outside of git it will be used as the project hash. If the variable is
non-empty there will also be no timestamp in project-timestamp.hh (as
this would break reproducible builds).
Note that if building from git or not setting the variable then everything
will be like before.
2022-03-23 22:53:43 +01:00
Markus Blatt
283d7b3dce
Do not try to get git hashes for version if built from tarballs.
2022-03-23 22:37:31 +01:00
Markus Blatt
dff978d0eb
Merge pull request #2978 from blattms/debian-use-dist-packages-only-for-usr-prefix
...
[python] Use dist-packages if it is used for Python's sitepackages
2022-03-22 16:42:17 +01:00
Markus Blatt
cd3a6b2ddf
Make determining whether to use site-packages more bullet-proof
...
Seems like sometimes getsitepackages might not even be implemented.
2022-03-22 12:00:55 +01:00
Markus Blatt
bcf1ba0ba9
[python] Use dist-packages if is used for Python's sitepackages
...
Instead of checking whether this is Debian system we query the
sitepackages path from Python. If it matches dist-packages then
we use dist-packages if we install below /usr, otherwise site-packages
is used.
2022-03-22 11:45:02 +01:00
Bård Skaflestad
06ff1db977
Merge pull request #2977 from blattms/fail-without-setuptools
...
[cmake] Send error for OPM_ENABLE_PYTHON=ON without setuptools
2022-03-15 13:29:12 +01:00
Markus Blatt
af052ef3ba
[cmake] Send error for OPM_ENABLE_PYTHON=ON without setuptools
...
Compiling will fail at a very late stage and might cause surprises
for novice users. It seems much better to issue an error in CMake with
a meaningful error message. Might prevent some support issues in the
future.
2022-03-15 13:00:24 +01:00
Bård Skaflestad
2da0f48da2
Merge pull request #2973 from GitPaean/no_aquifer_connection
...
throw when there is no connection for analytical aquifer
2022-03-11 10:18:55 +01:00
Bård Skaflestad
94635c03d3
Merge pull request #2968 from plgbrts/vapwat
...
Introducing water-gas ratio RVW keyword
2022-03-10 16:19:01 +01:00
Kai Bao
facb210275
throw when there is no connection for analytical aquifer
2022-03-10 15:08:40 +01:00
Joakim Hove
e2493d22fc
Merge pull request #2971 from joakim-hove/alq-undef
...
Convert default ALQ type to GRAT when gaslift optimization is active
2022-03-09 10:15:30 +01:00
Joakim Hove
660b878b8e
Convert default ALQ type to GRAT when gaslift optimization is active
2022-03-08 11:37:06 +01:00
Arne Morten Kvarving
e7599f6825
Merge pull request #2970 from akva2/pypi310
...
add python 3.10 to pypi builds
2022-03-07 14:01:11 +01:00
Arne Morten Kvarving
302e7e7d41
add python 3.10 to pypi builds
2022-03-07 13:58:12 +01:00
Paul Egberts
eb396ecc53
water-gas ratio keyword RVW
2022-03-01 15:41:53 +01:00
Paul Egberts
e4949820ab
water-gas ratio keyword RVW
2022-03-01 15:41:52 +01:00
Atgeirr Flø Rasmussen
617e34fbbb
Merge pull request #2967 from bska/smry-phase-press-smry
...
Recognize Block Level Water and Gas Pressure Summary Vectors
2022-03-01 09:42:39 +01:00
Bård Skaflestad
20de64e739
Recognize Block Level Water and Gas Pressure Summary Vectors
...
This commit adds support for the BWPR and BGPR summary vectors that
output block-level phase pressures for water (BWPR) and gas (BGPR)
to the summary file.
2022-02-28 23:03:26 +01:00
Markus Blatt
3e37b8abe8
Merge pull request #2965 from bska/dont-needlessly-capture-constant
...
Don't Needlessly Capture Constant Buffer Size
2022-02-24 12:35:39 +01:00
Bård Skaflestad
982ed7caf0
Don't Needlessly Capture Constant Buffer Size
...
A lambda expression can read the value of a variable without
capturing it if the variable
has const non-volatile integral or enumeration type and
has been initialized with a constant expression
Clang issues a diagnostic if such variables are captured so drop the
'sz' from the explicit list of captures.
2022-02-24 09:58:51 +01:00
Bård Skaflestad
a85ec1a7e6
Merge pull request #2964 from atgeirr/fix-missing-include
...
Add missing <string> include for std::to_string().
2022-02-24 09:51:28 +01:00
Atgeirr Flø Rasmussen
84644fe5cd
Add missing <string> include for std::to_string().
2022-02-24 09:32:17 +01:00
Markus Blatt
555eb4c8b0
Merge pull request #2963 from joakim-hove/get_str_allow_rawstring
...
Export RawString as std::string to Python
2022-02-23 13:47:28 +01:00
Markus Blatt
9ef9cb0245
Merge pull request #2958 from bska/create-iregflow-summary
...
Add Summary Evaluation Functions For Inter-Region Flows
2022-02-23 13:41:49 +01:00
Bård Skaflestad
369b6ee637
Add Summary Evaluation Functions For Inter-Region Flows
...
This commit adds the glue code necessary to extract the pertinent
flow rate values from an inter-region flow rate map and then
accumulating those into the SummaryState. We multiply with the
timestep size if we're computing a cumulative total volume.
Add basic unit test for this part of Summary::eval().
2022-02-23 11:57:34 +01:00
Joakim Hove
42e36100a8
Export RawString as std::string to Python
2022-02-23 11:01:00 +01:00
Markus Blatt
0475a46ab3
Merge pull request #2961 from bska/fix-welopen-status-event
...
Update Injected/Produced Flag When Processing WELOPEN
2022-02-22 12:37:01 +01:00
Bård Skaflestad
4150936e7c
Update Injected/Produced Flag When Processing WELOPEN
...
If a well is entered in WCON{INJE,PROD} as status 'SHUT' but later
activated in WELOPEN, we must take care to record this status change
in the well's internal "has_produced" or "has_injected" flags as
appropriate. Otherwise, the counts of "abandoned" wells will not be
correct.
2022-02-21 22:20:20 +01:00
Bård Skaflestad
0275a00b0f
Fix Misspelled Function Name
2022-02-21 22:20:20 +01:00
Bård Skaflestad
31cddd2d86
Merge pull request #2962 from goncalvesmachadoc/btemp
...
add BTCNFHEA
2022-02-21 22:18:11 +01:00
goncalvesmachadoc
187149dc1a
add BTCNFHEA
2022-02-21 17:35:04 +01:00
Markus Blatt
e44f3c6798
Merge pull request #2945 from bska/iregflow-protocol-objects
...
Add Protocol Objects for Linearising and Accumulating Inter-Region Flows
2022-02-17 09:36:34 +01:00
Bård Skaflestad
819571a8db
Make Summary Evaluation API Aware of Inter-Region Flows
...
This commit adds a new parameter, interreg_flows, to the eval()
member function of class Opm::Summary. This is in preparation of
adding summary file output of inter-region flow rates and
cumulatives-e.g., the ROFT summary vectors.
2022-02-16 23:28:46 +01:00
Bård Skaflestad
68975be966
Add Accumulating Mapping Structure for Inter-Region Flows
...
This commit introduces a new helper facility,
data::InterRegFlowMap
that knows how to interpret region IDs. It is a simple wrapper
around a common CSR representation of (source, destination) region
ID pairs with the additional feature that the element type of the
connection is a linear sequence values of arithmetic type. We've
initially elected to make this sequence out of 'float' in order to
conserve memory since we expect to do little arithmetic to the
sequence itself outside of compression and parallel communication.
Client code will be of two primary categories
1. Producing side which inserts flow rates from individual
connections, compresses the result when done, and communicates
the results to one or more parallel I/O ranks
2. Consuming side, typically on an I/O rank, which merges the
contributions from multiple source ranks and extracts values
pertaining inter-region flows for purpose of outputting time
series data to a summary file.
The first case will create and populate 'FlowRates' and add these
into the container using the 'addConnection' function and finally
call 'compress' when complete. Consumers will then use member
function 'getInterRegFlows' to extract a signed view of flow rate
values associated to a particular region ID pair (nullopt if no such
pair is registered).
2022-02-16 23:28:46 +01:00
Bård Skaflestad
7ef3d6c0b3
Add Protocol to Linearise Connection Flow Rates Into Subrange
...
This commit introduces a wrapper for a linear subrange of
consecutive elements of an arithmetic type that imposes an ordering
of the elements when treated as directional component surface flow
rates. The wrapper distinguishes negative from positive flow rate
contributions and tracks those separately. This is a building block
for accounting for the inter-region flows in a parallel context.
2022-02-16 23:28:46 +01:00
Bård Skaflestad
27da32d812
Re-Sort Main Source File Section for output/data
...
In preparation of adding more source files here.
2022-02-16 23:28:46 +01:00
Bård Skaflestad
e6bfc0624c
Merge pull request #2960 from tskille/emsry_rxft_fix
...
Split summary number for RXFT vectors in ESMRY file
2022-02-16 21:19:16 +01:00
Torbjørn Skille
48cab1f3bf
Split summary number for RXFT vectors in ESMRY file
2022-02-16 20:45:01 +01:00
Bård Skaflestad
f9ab536a66
Merge pull request #2959 from bska/improve-skiprest-diagnostic
...
Clarify Underlying Issue When Missing RESTART DATE in SKIPREST
2022-02-15 14:55:51 +01:00
Bård Skaflestad
ea5b2f072c
Clarify Underlying Issue When Missing RESTART DATE in SKIPREST
...
When a restarted model uses SKIPREST, there must be DATES or TSTEP
records/report times that correspond exactly to the restart time.
The current diagnostic message is a little too brief and developer
centric and does not offer sufficient hints to the user as to what
the underlying issue might be.
Try to expand the current message and provide more clues to the user
by mentioning both the SKIPREST and RESTART keywords in addition to
the expected and encountered time points.
Example original message:
Error: Problem with keyword DATES
In PRED_FLOW.DATA line 223
At date: 2019-04-18 - scanned past restart data: 2019-04-12
Example message in this commit:
Error: Problem with keyword DATES
In PRED_FLOW.DATA line 223
In a restarted simulation using SKIPREST, the DATES keyword must have
a record corresponding to the RESTART time 12-Apr-2019 00:00:00.
Reached time 18-Apr-2019 00:00:00 without an intervening record.
2022-02-15 14:08:26 +01:00
Joakim Hove
46c955956f
Merge pull request #2957 from tskille/deck_item_change
...
DeckItem - API change
2022-02-14 18:31:10 +01:00
Torbjørn Skille
5bf2087d0a
DeckItem - API change
2022-02-14 15:48:52 +01:00
Markus Blatt
ab697b69ea
Merge pull request #2916 from joakim-hove/udq-doc
...
Technical documentation for UDQ / ACTIONX and PYACTION
2022-02-14 15:17:20 +01:00
Joakim Hove
fb012786c3
Address final review comments in pyaction.tex and actionx.tex
2022-02-11 11:31:31 +01:00
Joakim Hove
a8656a9bbd
Address final review comments in udq.tex
2022-02-10 07:55:04 +01:00
Joakim Hove
8c95c64e9b
PYACTION polish II
2022-02-10 07:25:12 +01:00
Joakim Hove
b8cecd9ce4
Pyaction polish I
2022-02-10 07:25:12 +01:00
Joakim Hove
a62c3ae162
Actionx polish II
2022-02-10 07:25:12 +01:00
Joakim Hove
4e7bcd16b9
Actionx polish I
2022-02-10 07:25:12 +01:00
Joakim Hove
b20baa0c8e
UDQ polish II
2022-02-10 07:25:12 +01:00
Joakim Hove
d89f92d52f
Polish of UDQ chapter
2022-02-10 07:25:12 +01:00
Joakim Hove
148a54a7a6
Add section about problems with parallel and actionx
2022-02-10 07:25:12 +01:00
Joakim Hove
7d51e996d9
Update information about ACTIONX + WELPI
2022-02-10 07:25:12 +01:00
Joakim Hove
832b351bb3
Edit sentence about wrapping and embedding
2022-02-10 07:25:12 +01:00
Joakim Hove
de3e639196
More about PYACTION security
2022-02-10 07:25:12 +01:00
Joakim Hove
8370bf152a
Written more about the ACTIONX + PYACTION interaction
2022-02-10 07:25:12 +01:00
Joakim Hove
b6731ba8c7
Add two \label{..} expressions
2022-02-10 07:25:12 +01:00
Joakim Hove
411682c466
Slightly rewritten paragraph about ACTIONX <-> simulator interaction
2022-02-10 07:25:12 +01:00
Joakim Hove
f869df0255
PYACTION updates
2022-02-10 07:25:12 +01:00
Joakim Hove
8a2c30c7ba
More Python doc
2022-02-10 07:25:12 +01:00
Joakim Hove
53dd18a92c
Start adding documentation for the PYACTION keyword
2022-02-10 07:25:12 +01:00
Joakim Hove
f61e573a19
Minor formatting
2022-02-10 07:25:12 +01:00
Joakim Hove
fafebfdc5d
Fix will -> well
2022-02-10 07:25:12 +01:00
Joakim Hove
ff13b32da0
More about opm-common <-> opm-simulators interaction for Actionx
2022-02-10 07:25:12 +01:00
Joakim Hove
a403a31f16
Add ref to ref manual
2022-02-10 07:25:12 +01:00
Joakim Hove
627faea4e5
More ACTIONX doc work
2022-02-10 07:25:12 +01:00
Joakim Hove
7056c5f879
Changes to ACTIONX section
2022-02-10 07:25:12 +01:00
Joakim Hove
9e78155222
More on actionx execution model
2022-02-10 07:25:12 +01:00
Joakim Hove
b2e9790204
Actionx reformatting
2022-02-10 07:25:12 +01:00
Joakim Hove
8e94f2ec3b
More ACTIONX documentation
2022-02-10 07:25:12 +01:00
Joakim Hove
bbd58ab2a3
More actionx doc
2022-02-10 07:25:12 +01:00
Joakim Hove
b04ea92a32
More work ....
2022-02-10 07:25:12 +01:00
Joakim Hove
6741b34ab0
Actionx documentation updates
2022-02-10 07:25:12 +01:00
Joakim Hove
9693d8a2bd
Small updates in UDQ text
2022-02-10 07:25:12 +01:00
Joakim Hove
8a06db36c3
Add some details about forward referencing of wells (and groups)
2022-02-10 07:25:12 +01:00
Joakim Hove
8837e4cd38
Some more details about parallel
2022-02-10 07:25:12 +01:00
Joakim Hove
8d7d185976
Review comment
2022-02-10 07:25:12 +01:00
Joakim Hove
6d03ae8166
Started on section with parallel info for UDQ
2022-02-10 07:25:12 +01:00
Joakim Hove
3ca273c7d5
Rewrite section about forward referencing wells in actionx
2022-02-10 07:25:12 +01:00
Joakim Hove
82d748386c
Remove superfluos 'from'
2022-02-10 07:25:12 +01:00
Joakim Hove
3731230049
Add UDQ and ACTIONX documentation for technical manual
2022-02-10 07:25:12 +01:00
Markus Blatt
3bd13c9e85
Merge pull request #2955 from bska/general-reg-iregflow
...
Recognize Non-Default FIP Arrays for Inter-Region Flow Summary Keywords
2022-02-09 16:23:42 +01:00
Bård Skaflestad
55a7d0af19
Retrieve FIP Arrays of Inter-Region Flows
...
This commit adds a new query
SummaryConfig::fip_regions_interreg_flow
that retrieves the set of FIP array names (e.g., FIPNUM and FIPXYZ)
that are associated to any inter-region flow summary keywords. This
query method returns an empty set if there are no inter-region flow
summary keywords.
2022-02-04 20:38:10 +01:00
Bård Skaflestad
0d6c43f431
Recognize Non-Default FIP Array for Inter-Region Flows
...
This commit extends the 'SummaryConfig' support for inter-region
flows to be aware of user-provided FIP arrays. In other words, we
now recognize, e.g., that
ROFT_XYZ
is the cumulative inter-region oil flow volume corresponding to
regions defined by the 'FIPXYZ' region definition.
2022-02-04 20:38:10 +01:00
Markus Blatt
9b53068e8b
Merge pull request #2954 from blattms/python-use-correct-cxx-to-link
...
[python] Use correct C++ compiler for linking.
2022-02-04 15:59:21 +01:00
Markus Blatt
06618244e7
Use C++ everywhere and skip using a custom build_ext subclass.
...
Somehow using a custom build_ext subclass always triggered a failing
rebuild when testing:
/usr/lib/ccache/g++-10 -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-z,relro -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.9/cxx/builtin_pybind11.o build/temp.linux-x86_64-3.9/cxx/connection.o build/temp.linux-x86_64-3.9/cxx/converters.o build/temp.linux-x86_64-3.9/cxx/deck.o build/temp.linux-x86_64-3.9/cxx/deck_keyword.o build/temp.linux-x86_64-3.9/cxx/eclipse_config.o build/temp.linux-x86_64-3.9/cxx/eclipse_grid.o build/temp.linux-x86_64-3.9/cxx/eclipse_io.o build/temp.linux-x86_64-3.9/cxx/eclipse_state.o build/temp.linux-x86_64-3.9/cxx/emodel_util.o build/temp.linux-x86_64-3.9/cxx/export.o build/temp.linux-x86_64-3.9/cxx/field_props.o build/temp.linux-x86_64-3.9/cxx/group.o build/temp.linux-x86_64-3.9/cxx/log.o build/temp.linux-x86_64-3.9/cxx/parsecontext.o build/temp.linux-x86_64-3.9/cxx/parser.o build/temp.linux-x86_64-3.9/cxx/schedule.o build/temp.linux-x86_64-3.9/cxx/summary_state.o build/temp.linux-x86_64-3.9/cxx/table_manager.o build/temp.linux-x86_64-3.9/cxx/unit_system.o build/temp.linux-x86_64-3.9/cxx/well.o -lopmcommon -lboost_system -lstdc++fs -o build/lib.linux-x86_64-3.9/opm/libopmcommon_python.cpython-39-x86_64-linux-gnu.so -fopenmp /usr/lib/x86_64-linux-gnu/libfmt.so.7.1.3
error: can't copy 'build/lib.linux-x86_64-3.9/opm/libopmcommon_python.cpython-39-x86_64-linux-gnu.so': doesn't exist or not a regular file
Therefore we resort to only setting the CC and CXX variables to the
C++ compiler. Note that one cannot use "ccache c++" for CXX.
With the default build_ext the problem vanishes.
2022-02-04 10:07:05 +01:00
Bård Skaflestad
7b3e6ea534
Merge pull request #2953 from totto82/nlinears
...
Add NLINEARS
2022-02-03 17:09:20 +01:00
Markus Blatt
b67091183b
[python] Use correct C++ compiler for linking.
...
CC is the C compiler. CXX is the C++ compiler. Setuptools will
use the C++ compiler for C++ code. Hence it is vital to set that
correctly. If not set the default C++ compiler will be used.
Unfortunately it will use the first string as the CXX compiler and
hence we need to strip ccache. Fortunately it used CC for the
compilation and that works with gcc as well.
2022-02-03 17:02:09 +01:00
Tor Harald Sandve
646fa507f6
Add NLINEARS
2022-02-03 14:35:07 +01:00
Markus Blatt
94a095a2b6
Merge pull request #2931 from plgbrts/expli-salt
...
allow for explicit initial condition for SALT and SALTP
2022-02-03 11:19:02 +01:00
Markus Blatt
c5691477e5
Merge pull request #2948 from blattms/fix-setup.py-mult-lib
...
[bugfix] Make opm-common_PYTHON_LINKAGE a comma separated list.
2022-02-02 09:44:34 +01:00
Markus Blatt
64bd13231d
Merge pull request #2949 from blattms/fix-no-python-but-embedded
...
[cmake][bugfix] Test python/embedded python flags before source_hook.
2022-02-02 09:43:46 +01:00
Bård Skaflestad
7b9fa31894
Merge pull request #2951 from joakim-hove/empty-actionx
...
Empty actionx
2022-01-31 15:40:32 +01:00
Joakim Hove
d55f5fa5f5
Allow ACTIONX with empty condition
...
Allow ACTIONX keywords with empty conditions, these ACTIONX keywords will always
evaluate to false. Main motivation is to facilitate dummy keywords for PYACTION.
2022-01-31 15:10:40 +01:00
Joakim Hove
23f02023a3
Add method Action::ASTNode::empty()
2022-01-31 11:39:52 +01:00
Joakim Hove
0b27fd8e18
Remove unused function
2022-01-31 10:18:00 +01:00
Bård Skaflestad
4be0eea139
Merge pull request #2950 from joakim-hove/pyaction-handle-return
...
Pyaction handle return
2022-01-28 12:25:17 +01:00
Joakim Hove
343f14dacf
Record and act on return value from PYACTION
2022-01-28 12:05:17 +01:00
Joakim Hove
c37c2b2d49
Make SummaryState::set() available as __setitem__ in Python
2022-01-28 12:05:17 +01:00
Joakim Hove
c660b2e4b4
Make SummaryState public member in msim class
2022-01-28 12:05:17 +01:00
Joakim Hove
4928782cf4
Add Schedule member to the msim class
2022-01-28 12:05:17 +01:00
Markus Blatt
325e559229
[cmake][bugfix] Test python/embedded python flags before source_hook.
...
If cmake is run with `-DOPM_ENABLE_EMBEDDED_PYTHON=ON -DOPM_ENABLE_PYTHON=OFF`
a cmake error was produced because the library would depend on
python/cxx/builtin_pybind11.cpp which would not be generated.
We fix this by doing the Python sanity check (deactivate embedded
python if python is disabled) before running source_hook that adds the
dependency.
Closes #2940
2022-01-27 15:21:33 +01:00
Markus Blatt
ba2065853a
Merge pull request #2943 from joakim-hove/setup-linker
...
Make sure env variable CC is set also if no ccache
2022-01-27 11:37:59 +01:00
Markus Blatt
1daa7d1df4
[bugfix] Make library list used for setup.py a comma separated list.
...
It is used verbatim in setup.py in the list that specifies the linker
flage. Hence it needs to comma separted instead of using a semicolon
as separator.
We also rename it to SETUP_PY_LINKAGE to indicate where it is used.
Closes #2947
2022-01-27 11:26:56 +01:00
Bård Skaflestad
7471cef938
Merge pull request #2944 from bska/chase-api-update-for-non-python
...
Update Signature for PyAction::run When !EMBEDDED_PYTHON
2022-01-26 21:12:44 +01:00
Bård Skaflestad
15abd2bd49
Update Signature for PyAction::run When !EMBEDDED_PYTHON
...
Otherwise, we get build errors of the form "no declaration matches"
2022-01-26 20:57:03 +01:00
Joakim Hove
07500d5f09
Set the CC environment variable also for non ccache situation
2022-01-26 12:20:43 +01:00
Joakim Hove
c0be54af92
Merge pull request #2939 from joakim-hove/pyaction-use-actionx
...
Pyaction use actionx
2022-01-26 08:29:27 +01:00
Joakim Hove
46b663218a
Enable running normal ACTIONX keywords from PYACTION
...
The run() function invoked by PYACTION has got a new fifth argument which is a
callable the script should utilize to apply the keywords from an ACTIONX
keyword. The callable is implemented as C++ lambda which will run the
Schedule::iterateScheduleSection() method and make sure an updated
SimulatorUpdate variable can be passed back to the simulator.
2022-01-25 10:04:43 +01:00
Joakim Hove
4224e26321
Accept empty list of matching_wells when resolving '?'
2022-01-25 09:45:32 +01:00
Joakim Hove
45a6e4fb15
Add method Actions::has( action_name )
2022-01-25 09:45:32 +01:00
Markus Blatt
5e5dd48cee
Merge pull request #2942 from joakim-hove/use-cmake-cxx-compiler
...
Use C++ compiler from cmake in setup.py
2022-01-24 21:52:57 +01:00
Joakim Hove
c1905359d9
Merge pull request #2941 from bska/consistent-kw-repr
...
Fix Several Name Inconsistencies in JSON Keyword Representation
2022-01-24 16:58:35 +01:00
Bård Skaflestad
6bb8855afd
Fix RADFIN Keyword Representation
...
Previous version was a copy of RADFIN4 representation.
2022-01-24 16:42:53 +01:00
Joakim Hove
b3faf8abf2
Use C++ compiler from cmake in setup.py
2022-01-24 16:05:25 +01:00
Bård Skaflestad
1603100f0d
Remove Extraneous JSON Input Files
...
There are no such keywords as 'RSSSPEC' (three 'S'-es) or 'DFLOWR'.
2022-01-24 15:51:50 +01:00
Bård Skaflestad
6dcdcaf08c
Fix Keyword Names
...
Should match the name of the generator JSON input file.
2022-01-24 15:51:50 +01:00
Joakim Hove
8a0e1b21b9
Merge pull request #2932 from joakim-hove/pyaction-applyaction
...
Pyaction applyaction
2022-01-24 08:20:14 +01:00
Joakim Hove
9a80c00828
Merge pull request #2933 from blattms/rename-workarea.cpp-to-workarea.hpp
...
Renames header tests/WorkArea.cpp to tests/WorkArea.hpp
2022-01-23 10:54:07 +01:00
Bård Skaflestad
7d9c1b1aaf
Merge pull request #2938 from blattms/support-libfmt8
...
Cast enum classes to int when used in fmt::format.
2022-01-22 09:09:38 +01:00
Markus Blatt
034ea368b0
Cast enum classes to int when used in fmt::format.
...
This is needed for libfmt >= 8.1.0 as in that version the
cast to int was removed from inside the fmt::format call and an
assertion will fail:
```
In file included from /usr/include/fmt/format.h:48,
from /build/opm-common-2021.10/src/opm/parser/eclipse/EclipseState/Schedule/UDQ/UDQSet.cpp:22:
/usr/include/fmt/core.h: In instantiation of 'constexpr fmt::v8::detail::value<Context> fmt::v8::detail::make_arg(T&&) [with bool IS_PACKED = true; Context = fmt::v8::basic_format_context<fmt::v8::appender, char>; fmt::v8::detail::type <anonymous> = fmt::v8::detail::type::custom_type; T = Opm::UDQVarType&; typename std::enable_if<IS_PACKED, int>::type <anonymous> = 0]':
/usr/include/fmt/core.h:1855:77: required from 'constexpr fmt::v8::format_arg_store<Context, Args>::format_arg_store(T&& ...) [with T = {const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, long unsigned int&, Opm::UDQVarType&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, long unsigned int&, Opm::UDQVarType&}; Context = fmt::v8::basic_format_context<fmt::v8::appender, char>; Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long unsigned int, Opm::UDQVarType, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long unsigned int, Opm::UDQVarType}]'
/usr/include/fmt/core.h:1872:38: required from 'constexpr fmt::v8::format_arg_store<Context, typename std::remove_cv<typename std::remove_reference<Args>::type>::type ...> fmt::v8::make_format_args(Args&& ...) [with Context = fmt::v8::basic_format_context<fmt::v8::appender, char>; Args = {const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, long unsigned int&, Opm::UDQVarType&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, long unsigned int&, Opm::UDQVarType&}]'
/usr/include/fmt/core.h:3119:44: required from 'std::string fmt::v8::format(fmt::v8::format_string<T ...>, T&& ...) [with T = {const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, long unsigned int, Opm::UDQVarType, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, long unsigned int, Opm::UDQVarType}; std::string = std::__cxx11::basic_string<char>; fmt::v8::format_string<T ...> = fmt::v8::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, long unsigned int, Opm::UDQVarType, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, long unsigned int, Opm::UDQVarType>]'
/build/opm-common-2021.10/src/opm/parser/eclipse/EclipseState/Schedule/UDQ/UDQSet.cpp:523:27: required from here
/usr/include/fmt/core.h:1728:7: error: static assertion failed: Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt
1728 | formattable,
| ^~~~~~~~~~~
/usr/include/fmt/core.h:1728:7: note: 'formattable' evaluates to false
```
2022-01-21 22:13:54 +01:00
Joakim Hove
1c3aa651f1
Merge pull request #2937 from blattms/udqenum-fix-spelling
...
Fixes spelling error in UDQEnums.cpp
2022-01-21 21:00:33 +01:00
Markus Blatt
ad023b57c1
Fixes spelling error in UDQEnums.cpp
2022-01-21 18:33:13 +01:00
Markus Blatt
1b76df42cb
Merge pull request #2936 from bska/fix-keyword-name
...
Ensure That Keyword Name Matches Filename
2022-01-21 18:27:41 +01:00
Bård Skaflestad
36903d3e9d
Ensure That Keyword Name Matches Filename
...
Otherwise, we get "missing keyword" errors at the parsing stage.
2022-01-21 15:08:02 +01:00
Bård Skaflestad
10bdd92b94
Merge pull request #2934 from bska/fix-uninitialized-member
...
Ensure Proper Initialisation of All TableManager Member
2022-01-21 15:06:05 +01:00
Bård Skaflestad
6f79a86e66
Ensure Proper Initialisation of All TableManager Member
...
Otherwise, the equality operators for a default-constructed
TableManager object, mostly used in unit tests, will depend on
uninitialised values.
Thanks to [at]akva2 for the initial clue to the underlying cause.
2022-01-21 13:13:10 +01:00
Markus Blatt
274cee38c7
Renames header tests/WorkArea.cpp to tests/WorkArea.hpp
2022-01-21 10:18:56 +01:00
Joakim Hove
49c10378bb
Merge pull request #2929 from bska/internalise-interreg-smry-nodes
...
Make SummaryConfig Nodes for Inter-Region Flows
2022-01-20 17:17:20 +01:00
Bård Skaflestad
e1ec7fc828
Register Inter-Region Flow Cumulatives for SummaryState
...
Needed for correct accumulation in future work.
2022-01-20 09:57:15 +01:00
Bård Skaflestad
5a2876642e
Make SummaryConfig Nodes for Inter-Region Flows
...
This commit adds new nodes pertaining to the inter-region flows to
the summary configuration keyword list. We combine the pair of
region IDs into a single 'NUMS' value as part of creating the node.
We also split inter-region nodes into a "supported" and an
"unsupported" set, with the former containing the oil, gas, and
water keywords.
While here, also correct a misprint in a diagnostic message which I
noticed as part of developing the new feature.
2022-01-20 09:57:15 +01:00
Bård Skaflestad
4b2a37a39e
Split Combined Vector ID Calculation Out to Helpers
...
This commit introduces new helper functions
int EclIO::combineSummaryNumbers(int, int)
tuple<int, int> EclIO::splitSummaryNumber(int)
that know about the relation
combined = n1 + 32768*(n2 + 10)
This relation is typically used to combine one-based region IDs for
inter-region flows into a single 'NUMS' entry in the summary file.
2022-01-20 09:47:18 +01:00
Joakim Hove
34d71e0c2e
Add Schedule::runPyAction() to be called from the simulator
2022-01-20 09:28:12 +01:00
Joakim Hove
9ce5ca2b21
Pass matching wells to Schedule::applyAction()
2022-01-20 08:22:21 +01:00
Joakim Hove
b62b5be44f
Remove unused argument sim_time from Schedule::applyAction()
2022-01-20 08:12:10 +01:00
Joakim Hove
4a8f432b10
Merge pull request #2930 from goncalvesmachadoc/patch-5
...
Fix SALTVD unit
2022-01-20 08:01:20 +01:00
Paul Egberts
3ea67696e1
Changed unit string to Salinity
2022-01-18 11:29:16 +01:00
Paul Egberts
0e24dc78c4
allow for explicit initial condition for SALT and SALTP
2022-01-18 11:05:17 +01:00
Cintia Goncalves Machado
39fb33cd52
Fix SALTVD unit
...
According to eclipse/flow manuals, saltvd input should be lb/stb (Salinity in Units.hpp), not Density (lb/ft3).
2022-01-18 11:02:49 +01:00
Joakim Hove
c680443251
Merge pull request #2928 from bska/parse-interreg-sumkw
...
Recognize Additional Inter-Region Flow Summary Vector Keywords
2022-01-14 10:05:33 +01:00
Bård Skaflestad
2fe8b4c802
Recognize Additional Inter-Region Flow Summary Vector Keywords
...
This commit adds support for recognizing additional inter-region
flow rate/cumulatives at the parser level. In particular, we now
have input support for the E300-compatible keyword strings
R[OGW]F(R[-+]?|T[-+])
(e.g., ROFR, RGFT-, or RWFR+). This, in turn, ensures that the
parsing process does not abruptly terminate when encountering such
summary keywords. This is also a necessary step towards supporting
actually calculating those summary vectors, but we presently do not
support doing so.
Expand the minimum, input-reading only, corresponding unit test to
include the oil, gas, and water varieties of the new keyword strings.
While here, also properly classify the per-phase gas cumulatives
RGFTG, RGFTL
as inter-region summary vectors. These were inadvertently listed as
per-region vectors (i.e., in the REGION_PROBE instead of in the
REGION2REGION_PROBE).
2022-01-14 09:48:33 +01:00
Joakim Hove
1b96dd81d9
Merge pull request #2927 from OPMUSER/Fix-Duplicate-Keywords
...
Delete GRUPRIG from OPM Flow Keyword List
2022-01-12 19:00:48 +01:00
Bård Skaflestad
447db33942
Merge pull request #2924 from blattms/improve-readme
...
Slightly improve readme
2022-01-12 17:31:19 +01:00
Markus Blatt
14245c968a
Add posix as requirement
2022-01-12 15:14:36 +01:00
OPMUSER
14e047aa7e
Update keyword_list.cmake
...
Remove OPm Flow version of GRUPRIG from keyword_list.cmake
2022-01-12 18:32:12 +08:00
OPMUSER
0c3f2ac64d
Delete GRUPRIG from OPM Flow Keyword List
...
GRUPRIG was both in the E100 and the OPM Flow keyword definitions. So delete the OPM Flow version. Need to run Jenkins, just in case
2022-01-12 18:04:58 +08:00
Joakim Hove
089b6bff42
Merge pull request #2926 from joakim-hove/rm-fnmatch
...
Remove stale #include <fnamatch.h>
2022-01-12 08:26:43 +01:00
Joakim Hove
ea5c847c41
Remove stale #include <fnamatch.h>
2022-01-12 07:42:34 +01:00
Joakim Hove
24e58e36aa
Merge pull request #2925 from joakim-hove/fnmatch
...
Use std::regex to implement fnmatch()
2022-01-11 13:36:43 +01:00
Joakim Hove
c50eb01bb0
Implement fnmatch() in Opm::shmatch() with std::regex
2022-01-11 11:14:11 +01:00
Joakim Hove
e43d75aacc
Merge pull request #2871 from bska/continuous-solution-cumulatives-on-restart
...
Save and Reload Free/Solution Gas/Oil Cumulatives in Restart
2022-01-11 10:38:40 +01:00
Bård Skaflestad
8a72cfce36
Save and Reload Free/Solution Gas/Oil Cumulatives in Restart
...
This commit ensures that the field, group, and well level cumulative
production curves of solution/free oil and gas are continuous in a
restarted simulation run.
Thanks to Torbjørn Skille for identifying the appropriate locations
in XGRP/XWEL for outputting these items.
2022-01-10 20:57:59 +01:00
Markus Blatt
c28afa48ee
Merge pull request #2923 from blattms/fix-segfault-parallel-multflt
...
Fixes parallel segfault for MULTFLT
2022-01-10 20:49:53 +01:00
Markus Blatt
955906c411
Improve README
...
Make it clear what is in the repository. Might help people
finding it via search engines.
2022-01-10 16:08:49 +01:00
Markus Blatt
dd88fc45fd
Fixes parallel segfault happening when geology is modified for t>0.
...
This is a quick fix.
The problem that occurs is the following. After loadbalancing the
FieldPropsManager only has a non-nullptr to the FieldProperties on
the process with rank=0. Therefore most of the calls to it will
segfault. This has not been problem before changeset
2921838895 . We did not make any calls to e.g.
FieldProperties::apply_schedule_keywords during a simulation.
Now we do via [eclproblem.hh#L1021-L1022](/OPM/opm-simulators/blob/3e4e62bc4f6f6f8a02eb2d2e4976dc2e2d956313/ebos/eclproblem.hh#L1021-L1022))
2022-01-10 15:38:17 +01:00
Joakim Hove
f9ba16d72e
Merge pull request #2919 from totto82/fixMULTXYZ_aquifer
...
Add permeability multiplier for connection between reservoir and aquifer
2022-01-10 12:08:16 +01:00
Bård Skaflestad
20732329f4
Merge pull request #2920 from plgbrts/saltp
...
Corrected dimensions of SALTPVD
2022-01-07 14:37:21 +01:00
Tor Harald Sandve
dcf3c42a33
add perm multiplier aquifer
2022-01-07 10:58:48 +01:00
Markus Blatt
c37203d605
Merge pull request #2918 from bska/fix-solution-gas-summary-unit
...
Fix Unit of Measure for Dissolved Gas Flow Rates
2022-01-07 09:57:35 +01:00
Paul Egberts
0a000dae5a
corrected dimensions
2022-01-06 21:38:38 +01:00
Bård Skaflestad
21e067beaa
Fix Unit of Measure for Dissolved Gas Flow Rates
...
These quantities are reported in surface volume gas flow rate units.
2022-01-06 15:01:19 +01:00
Joakim Hove
f0b91be7c3
Merge pull request #2884 from bska/dont-access-empty-optional
...
Don't Access an Empty Optional Object
2022-01-06 14:49:03 +01:00
Bård Skaflestad
56539e0453
Don't Access an Empty Optional Object
...
The maximum supply of lift gas and/or the maximum total gas flow
rate of a group may be defaulted in the context of lift gas
optimisation. In that case, the std::optional<> objects will be
empty and we must not access the contained object through the
value() member function. We output the sentinel value "-10" in this
case.
2022-01-06 12:34:10 +01:00
Bård Skaflestad
07d69bc1f7
Merge pull request #2910 from bska/use-named-equil-items
...
Switch to Using Named Items For Extracting EQUIL Keyword Data
2022-01-06 12:33:21 +01:00
Bård Skaflestad
f1fd4726e3
Switch to Using Named Items For Extracting EQUIL Keyword Data
...
This is more self-documenting that numeric item indices. While
here, also switch to constructing the EQUIL record in place instead
of forming a temporary and moving it into the vector.
2022-01-03 14:58:09 +01:00
Joakim Hove
aa77a9c6e9
Merge pull request #2903 from joakim-hove/repo-reorg
...
Suggestion: repo reorg
2022-01-03 10:36:48 +01:00
Joakim Hove
0a59bd8f61
Filesystem rename EclipseState/Schedule/ Schedule/
2022-01-02 14:32:14 +01:00
Joakim Hove
aede532b9a
Filesystem rename parser/eclipse/ input/eclipse
2022-01-02 14:32:14 +01:00
Bård Skaflestad
722a375f1c
Merge pull request #2915 from tskille/esmry_fix
...
ESmry - Ignore empty keys
2021-12-29 00:54:54 +01:00
Torbjørn Skille
3e69167bf9
ignore empty keys
2021-12-28 20:39:45 +01:00
Bård Skaflestad
5cdb5c7a6e
Merge pull request #2912 from tskille/blacklisted
...
update list of blacklisted keywords
2021-12-22 00:53:40 +01:00
Atgeirr Flø Rasmussen
3682e4b67a
Merge pull request #2914 from atgeirr/fix-for-posix-getopt
...
Fix driver, as POSIX or BSD getopt() stops on first non-option argument.
2021-12-21 21:46:57 +01:00
Atgeirr Flø Rasmussen
a8665b77d9
Fix driver, as POSIX or BSD getopt() stops on first non-option argument.
2021-12-21 18:40:38 +01:00
Torbjørn Skille
9255a7831c
update list of blacklisted keywords
2021-12-21 10:47:12 +01:00
Markus Blatt
fae1278d82
Merge pull request #2911 from tskille/fix_x_option
...
fixing -x option for compareECL program
2021-12-21 10:22:02 +01:00
Torbjørn Skille
d94b809814
fixing -x option for compareECL program
2021-12-21 09:24:33 +01:00
Joakim Hove
435e7cf146
Merge pull request #2888 from joakim-hove/gconinje-rst
...
Gconinje rst
2021-12-20 10:11:28 +01:00
Jostein Alvestad
0478b91f24
Added correction to IGRP[nwgmax+5] for group control from FIELD level
2021-12-20 09:19:49 +01:00
Joakim Hove
9c54e324e9
Load injection guide rates from restart file
2021-12-20 09:19:49 +01:00
Joakim Hove
6d5ea77bf5
Rename rst::group.guide_rate_def
2021-12-20 09:19:49 +01:00
Joakim Hove
ad420a2b02
Save guiderate injection settings for group injection
2021-12-20 09:19:49 +01:00
Joakim Hove
a945a6fe9b
Merge pull request #2907 from joakim-hove/welsegs-delayed-name
...
Handle ACTIONX delayed WELSPECS for keywords WELSEGS and COMPSEGS
2021-12-19 13:52:19 +01:00
Joakim Hove
1121f03fe6
Merge pull request #2906 from OPMUSER/Actionx-WTMULT
...
Update ActionX.cpp with WTMULT
2021-12-19 13:51:23 +01:00
Joakim Hove
48fa6ecf3a
Merge pull request #2909 from bska/dont-emit-partial-rft-record
...
Don't Write RFT Records for Wells With No Connections
2021-12-19 12:13:44 +01:00
Joakim Hove
d867d63b78
Merge pull request #2908 from bska/dont-access-missing-refdepth
...
Don't Access Well BHP Reference Depth If Unavailable
2021-12-19 12:13:29 +01:00
Bård Skaflestad
17bcea4954
Don't Write RFT Records for Wells With No Connections
...
These render Flow's RFT files much more difficult to open in
post-processing software such as ResInsight.
2021-12-17 16:09:40 +01:00
Bård Skaflestad
cafa759b3d
Don't Access Well BHP Reference Depth If Unavailable
...
This commit ensures that we do not access the well's BHP reference
depth unless that value is well defined. If the input deck does not
define an explicit BHP reference depth (WELSPECS(5)), and if the
well does not have any active reservoir connections, then we are
supposed to output the usual sentinel value (-1.0E+20) as the datum
depth in 'SWEL'.
Account for this altered semantics in the restart reader too.
2021-12-17 15:20:40 +01:00
Bård Skaflestad
8306b7039f
Extract Existence Predicate for Well BHP Reference Depth
...
This commit adds a new member function,
bool Well::hasRefDepth() const
that allows the caller to query whether or not a particular well has
an active value for the well BHP reference depth. The most common
cause of this value being missing is that the depth item of WELSPECS
is defaulted while the well is not connected to any active cells.
This predicate allows client code, e.g., the restart output module,
to safely access reference depth values in the case of potentially
missing reference depths.
2021-12-17 12:45:55 +01:00
Joakim Hove
b5e3137949
Handle ACTIONX delayed WELSPECS for keywords WELSEGS and COMPSEGS
2021-12-17 11:10:12 +01:00
Bård Skaflestad
25ea975171
Adjust Whitespace in Well::operator==(const Well&)
...
In preparation of making the comparator aware that reference depths
might not always be awailable.
2021-12-17 10:41:27 +01:00
OPMUSER
231066ea22
Update ActionX.cpp
2021-12-17 10:50:38 +08:00
Joakim Hove
0abdac2db6
Merge pull request #2895 from joakim-hove/actionx-welspecs
...
Actionx welspecs
2021-12-16 10:29:38 +01:00
Joakim Hove
aeb4c2bd8a
Merge pull request #2905 from OPMUSER/Actionx-NEXT
...
Update ActionX.cpp with NEXT
2021-12-15 14:25:18 +01:00
OPMUSER
41e2703222
Update ActionX.cpp
2021-12-15 16:36:11 +08:00
Atgeirr Flø Rasmussen
48fdc4fafd
Merge pull request #2896 from atgeirr/add-missing-include-and-copyright
...
Add missing include, and copyright header.
2021-12-14 12:53:16 +01:00
Joakim Hove
9bb9a6e2c8
Merge pull request #2904 from OPMUSER/Actionx-Typo-Fix
...
Update ActionX.cpp for Typo
2021-12-14 12:28:09 +01:00
OPMUSER
5fa54a99c8
Update ActionX.cpp
2021-12-14 18:10:28 +08:00
Joakim Hove
a507a3d9c4
Merge pull request #2902 from joakim-hove/nextstep-alias
...
Handle NEXT as an alias for NEXTSTEP
2021-12-14 08:14:33 +01:00
Joakim Hove
f3578ae716
Update NEXTSTEP
2021-12-14 08:03:59 +01:00
Joakim Hove
43f9e6bcf1
Handle NEXT as an alias for NEXTSTEP
2021-12-14 07:46:37 +01:00
Joakim Hove
e4be1e83b0
Log well and group names encountered in ACTIONX
2021-12-13 18:33:14 +01:00
Joakim Hove
aabc3b999b
Utility class Action::WGNames to manage names introduced in ACTIONX
2021-12-13 18:33:14 +01:00
Joakim Hove
fb1e9d5d7a
Merge pull request #2900 from joakim-hove/handlercontext-refactor
...
Refactor Schedule handlerContext usage
2021-12-13 18:18:00 +01:00
Joakim Hove
e4a0eb7972
Refactor Schedule handlerContext usage
2021-12-13 13:50:33 +01:00
Joakim Hove
927f68bfc5
Merge pull request #2898 from joakim-hove/missing-actionx-cmp
...
Add missing ACTION comparison in ScheduleState
2021-12-13 13:50:11 +01:00
Joakim Hove
c7ffbf51a0
Merge pull request #2894 from joakim-hove/actionx-error-msg
...
Improve error message for unsupported ACTIONX keyword
2021-12-13 13:49:48 +01:00
Joakim Hove
73abb5ae58
Merge pull request #2901 from fgfuchs/missing_include_algorithm
...
added #include <algorithm>
2021-12-13 13:04:25 +01:00
Franz Fuchs
b509056474
added include algorithm, as it did not compile with GNU compiler versoin 11.1.
2021-12-13 12:08:13 +01:00
Joakim Hove
8345620813
Add missing ACTION comparison in ScheduleState
2021-12-13 10:47:32 +01:00
Atgeirr Flø Rasmussen
1a0c81fbd4
Add missing include, and copyright header.
2021-12-13 09:40:50 +01:00
Tor Harald Sandve
e2b0ad581c
Merge pull request #1956 from goncalvesmachadoc/watvap
...
Finalize VAPWAT keyword
2021-12-09 15:37:04 +01:00
Joakim Hove
221812d4d7
Merge pull request #2892 from OPMUSER/NEXTSTEP
...
Update ActionX.cpp with NEXTSTEP
2021-12-09 15:04:09 +01:00
Joakim Hove
30766c65dd
Improve error message for unsupported ACTIONX keyword
2021-12-09 11:23:16 +01:00
OPMUSER
f5e449d1e6
Add WELTARG
2021-12-09 18:17:25 +08:00
OPMUSER
8b46e3e711
Update ActionX.cpp with NEXTSTEP
2021-12-09 16:34:50 +08:00
Joakim Hove
91c6a3f20a
Merge pull request #2887 from joakim-hove/prefetch-compsegs
...
Prefetch compsegs
2021-12-09 07:21:51 +01:00
goncalvesmachadoc
805686dad2
clean test
2021-12-08 17:43:21 +01:00
Bård Skaflestad
84bf899380
Merge pull request #2593 from plgbrts/salt_prec
...
salt solubility table allowing specification of solubility per region
2021-12-08 15:52:18 +01:00
Joakim Hove
35ba2a330f
Merge pull request #2890 from bska/no-execute-perm
...
Remove 'Execute' Permission From Source Files
2021-12-08 15:33:44 +01:00
Bård Skaflestad
64e8ec3cfd
Remove 'Execute' Permission From Source Files
...
These files just need to have read/write permissions on Linux/Unix.
2021-12-08 15:09:23 +01:00
Joakim Hove
5cd2a2ddb0
Merge pull request #2885 from OPMUSER/WSEGVALV
...
Add COMPSEGS, WELSEGS and WSEGVALV to ACTIONX
2021-12-08 14:54:48 +01:00
Joakim Hove
8a74a00c5b
Merge pull request #2889 from joakim-hove/remove-test
...
Remove parse test - deck has been removed from opm-tests
2021-12-08 14:35:27 +01:00
Joakim Hove
2688aeb5c7
Remove parse test - deck has been removed from opm-tests
2021-12-08 14:03:59 +01:00
Joakim Hove
e7a91cbe32
Special case first record in COMPSEGS keyword
2021-12-08 12:41:47 +01:00
Joakim Hove
52e72a3022
Use keyword.is<> for COMPSEGS
2021-12-08 12:31:32 +01:00
OPMUSER
cc28d81886
Add COMPSEGS, WELSEGS and WSEGVALV to ACTIONX
2021-12-08 17:11:49 +08:00
Paul Egberts
48124f12f4
added test for solubility table for 2 regions
2021-12-06 21:43:42 +01:00
Bård Skaflestad
23de8a630b
Merge pull request #2883 from tskille/smry_updates
...
updates of ESmry and ExtESmry
2021-12-06 10:56:49 +01:00
Bård Skaflestad
6452e645dc
Merge pull request #2882 from tskille/array_list
...
add program arraylist
2021-12-06 10:54:47 +01:00
Torbjørn Skille
5306fb1db8
updates of ESmry and ExtESmry
...
* add function for returning root name
* add function for returning io (opening and loading)
* rename member function LoadData() to loadData()
2021-12-04 09:59:58 +01:00
Torbjørn Skille
ed6bb4161d
add program arraylist
2021-12-04 08:41:16 +01:00
Joakim Hove
2851c1d4e2
Merge pull request #2881 from joakim-hove/WELTARG-LIFT
...
Allow using mode LIFT in WELTARG
2021-12-03 15:45:56 +01:00
Joakim Hove
2a612b5c64
Allow using mode LIFT in WELTARG
2021-12-03 10:39:02 +01:00
Paul Egberts
10f11f9982
fix: number of tables should be based on NTPVT
2021-12-02 18:03:57 +01:00
Paul Egberts
3ead0f48d2
add test for salt solubility table
2021-12-02 16:43:54 +01:00
Paul Egberts
f053ba9a20
salt solubility table implementation using simpleTableContainer
2021-12-02 11:52:38 +01:00
Paul Egberts
4445092191
removed because changing to SimpleTableContainer implementation
2021-12-02 11:52:37 +01:00
Paul Egberts
12396498d7
some formatting
2021-12-02 11:52:37 +01:00
Paul Egberts
e40fdf75ba
salt solubility table allowing specification of solubility per region
2021-12-02 11:52:37 +01:00
Bård Skaflestad
6e6b438405
Merge pull request #2880 from goncalvesmachadoc/testFixReport
...
add Field vectors to required list
2021-11-30 17:50:52 +01:00
goncalvesmachadoc
b5285c7a99
add Field vectors to required list
2021-11-30 16:50:26 +01:00
Joakim Hove
0f48afd01d
Merge pull request #2879 from joakim-hove/rst-load-tracer-rate
...
Rst load tracer rate
2021-11-30 14:09:15 +01:00
Joakim Hove
b95019847c
Restore tracer cumulatives WTIT and WTPT
2021-11-30 11:23:13 +01:00
Joakim Hove
bdd933ff6f
Initialize tracer injection properties from restart file
2021-11-30 11:23:13 +01:00
Joakim Hove
04ef6fad1c
Load water tracer concentration from restart file
2021-11-30 11:23:13 +01:00
Joakim Hove
77053495b0
Add Runspec argument to Restart header constructor
2021-11-30 11:23:13 +01:00
Joakim Hove
76744d2178
Merge pull request #2878 from joakim-hove/tracer-xwel-sign
...
Sign change on tracer data
2021-11-30 09:57:54 +01:00
Joakim Hove
ba17da040a
Merge pull request #2875 from joakim-hove/tracer-name-fixup
...
Add tracer config function fname() == name + "F"
2021-11-30 09:57:41 +01:00
Joakim Hove
2c9af65747
Merge pull request #2876 from joakim-hove/rst-deck-rptrst-fix
...
Retain RPTRST keyword when updating SOLUTION section for restart
2021-11-30 09:42:01 +01:00
Joakim Hove
041a2a72a1
Sign change on tracer data
2021-11-29 08:05:23 +01:00
Joakim Hove
78377b705f
Retain RPTRST keyword when updating SOLUTION section for restart
2021-11-27 12:44:11 +01:00
Joakim Hove
ae8c7c5325
Add tracer config function fname() == name + "F"
2021-11-26 16:45:04 +01:00
Joakim Hove
4c05ba58d1
Merge pull request #2874 from joakim-hove/tracer-name-fixup
...
Tracer name fixup
2021-11-26 16:44:10 +01:00
Joakim Hove
ecdfa8413d
Allow to create TracerConfig (for restart) without any data
2021-11-26 14:55:53 +01:00
Joakim Hove
508e2dac3c
Make sure correct name is used in tracer configuration
2021-11-26 14:48:01 +01:00
Joakim Hove
4e4f7fc94c
Merge pull request #2872 from joakim-hove/schedule-deck-start
...
Schedule deck start
2021-11-26 12:15:01 +01:00
Joakim Hove
507d412355
DeckRecord writer accepts optional item offset
2021-11-26 09:11:53 +01:00
Joakim Hove
e011da6661
SchduleBlock: dump DATES / TSTEP from public method
2021-11-26 09:11:53 +01:00
Joakim Hove
c4bdff2b39
ScheduleDeck constructed with time_point argument
2021-11-26 09:11:53 +01:00
Joakim Hove
2d0e92750d
Merge pull request #2866 from joakim-hove/schedule-dump
...
Implement schedule dump to deck functionality
2021-11-25 11:10:11 +01:00
Bård Skaflestad
535f3401d6
Merge pull request #2825 from jalvestad/rst-ntw-imp
...
Corrections to output of network data to Eclipse compatible restart file
2021-11-25 00:30:28 +01:00
Jostein Alvestad
07f67b4df1
corrected share - NETBALAN to be consistent with master
2021-11-24 14:10:12 +01:00
Jostein Alvestad
4585f2499d
changes to correct test_AggregateNetwork
2021-11-24 13:27:21 +01:00
Jostein Alvestad
556c21a254
changes to correct output of restart data for networks
...
corrections to intehead for netbalan data plus improvements createdoubhead
simplification of code due to changes in master
correction to default value for NETBALAN PRESSURE_CONVERGENCE_LIMIT
2021-11-24 13:27:18 +01:00
Joakim Hove
e250f83c1d
Merge pull request #2870 from joakim-hove/default-units-bug
...
Make sure units are correct for default initialized NETBALAN
2021-11-24 11:11:10 +01:00
Joakim Hove
94cb4ba908
Make sure NETBALAN defaults have correct units
2021-11-24 10:41:18 +01:00
Joakim Hove
24a8c09956
Add UnitSystem::from_si() and to_si based on string
2021-11-24 09:42:51 +01:00
Joakim Hove
685c8b06f2
Merge pull request #2868 from joakim-hove/tracer-optional
...
Use std::optional<> for tracer details
2021-11-24 09:41:58 +01:00
Joakim Hove
75bf28c45b
Merge pull request #2869 from joakim-hove/tracer-rst-name
...
Look up tracer name without trailing 'F' in restart writer
2021-11-24 09:41:39 +01:00
Joakim Hove
4e5c7feb5f
Look up tracer name without trailing 'F' in restart writer
2021-11-23 15:01:50 +01:00
Joakim Hove
48854bfbeb
Use std::optional<> for tracer details
2021-11-23 15:01:11 +01:00
Joakim Hove
c081a764a7
Implement schedule dump to deck functionality
2021-11-23 15:00:33 +01:00
Joakim Hove
f3f3dde251
Merge pull request #2856 from joakim-hove/deck-refactor2
...
Deck refactor2
2021-11-23 14:58:01 +01:00
Joakim Hove
f572937529
Add template<> Deck::get<T>() to get keywords
2021-11-23 14:06:37 +01:00
Daniel
90ce7bc6cb
Replaced call to Deck::getKeyword(kw, index) with deck[kw][index]
2021-11-23 14:00:38 +01:00
Daniel
b0f757eb50
Replace Deck::getKeyword(std::string) with operator[std::string]
2021-11-23 14:00:38 +01:00
Bård Skaflestad
80bd7fd974
Merge pull request #2864 from joakim-hove/tracer-zero
...
Pad XCON, XGRP and RSEG vectors with tracer zero
2021-11-23 12:33:17 +01:00
Joakim Hove
5f6d43f7b8
Explicitly assign tracer data in RSEG variable
2021-11-23 11:28:04 +01:00
Joakim Hove
604321ebdb
Segment data aggregation refactor
...
- Pass segment string as argument to lambda get instead of binding at
declaration.
- Use SummaryState::get() overload with default
- Introduce scope to make special casing of first segment more distinct
2021-11-23 11:24:55 +01:00
Joakim Hove
f5cc0da3ee
Publish function numRSegElem
2021-11-23 07:53:14 +01:00
Joakim Hove
8ed6e3c204
Pad XCON vector with tracer values (currently just zero)
2021-11-23 07:52:55 +01:00
Joakim Hove
ad61859ddf
Fill XGRP vector with zero tracer values
2021-11-23 07:51:06 +01:00
Joakim Hove
e2172d12a0
Merge pull request #2861 from joakim-hove/tracer-well-rst
...
Add tracer data to SWEL and XWEL
2021-11-23 07:48:26 +01:00
Joakim Hove
1839dcdbd5
Assign tracer data to XWEL
2021-11-22 16:27:17 +01:00
Joakim Hove
b00707ff84
Assign tracer data to SWEL
2021-11-22 16:27:17 +01:00
Joakim Hove
414b7c1946
Add TracerConfig::operator[](std::size_t)
2021-11-22 15:52:36 +01:00
Joakim Hove
7e26d683dd
Merge pull request #2859 from joakim-hove/tracer-intehead
...
Update INTEHEAD vector to take tracer data into account
2021-11-22 15:51:09 +01:00
Joakim Hove
48c97f8f2e
Merge pull request #2867 from atgeirr/add-missing-include
...
Add missing include for unordered_map.
2021-11-22 10:28:57 +01:00
Joakim Hove
5c3c19474a
Merge pull request #2858 from joakim-hove/parser-item-init
...
Initialize values used for overloading in ParserItem
2021-11-22 09:50:33 +01:00
Joakim Hove
6d669c9b6c
Merge pull request #2853 from joakim-hove/wstats
...
WSTAT
2021-11-22 09:50:04 +01:00
Atgeirr Flø Rasmussen
cacdafcf51
Add missing include for unordered_map.
2021-11-22 09:48:32 +01:00
Joakim Hove
272a22a34c
Update INTEHEAD vector to take tracer data into account
2021-11-22 09:46:02 +01:00
Joakim Hove
27c690acf4
Add class Tracers with tracer dimensions
2021-11-22 09:46:02 +01:00
Joakim Hove
37d9893e9e
Merge pull request #2855 from joakim-hove/add-ztracer
...
Add ztracer keyword to restart file
2021-11-22 09:37:34 +01:00
Joakim Hove
2043a5f991
Merge pull request #2848 from joakim-hove/keyword-is
...
Suggestion: use keyword.is<T>() instead of checking name?
2021-11-19 16:09:03 +01:00
Joakim Hove
5df24a644a
Merge pull request #2857 from joakim-hove/netbalan-default
...
Netbalan default
2021-11-19 15:36:04 +01:00
Joakim Hove
45c726156c
Use keyword.is<ParserKeyword:XXXX> instead of checking name
2021-11-19 15:32:20 +01:00
Joakim Hove
d1f3d40e03
Add ZTRACER keyword before tracer solution data in restart file
2021-11-19 08:00:23 +01:00
Joakim Hove
137ef059e7
Add TracerConfig::operator[]
2021-11-19 07:53:21 +01:00
Joakim Hove
0998309138
Rename DeckKeyword::isKeyword -> DeckKeyword::is
2021-11-18 16:45:08 +01:00
Joakim Hove
78a90e1dec
Create Network::Balance constructor based on default values
2021-11-18 15:29:38 +01:00
Joakim Hove
ebc92f4250
Add bool active() method to NetworkDims
2021-11-18 15:29:38 +01:00
Joakim Hove
9f86549d30
Initialize values used for overloading in ParserItem
2021-11-18 11:28:30 +01:00
Joakim Hove
b1279876cd
Use std::optional<> for NETBALAN pressure values
2021-11-18 10:50:39 +01:00
Joakim Hove
9d1f512b44
Merge pull request #2854 from joakim-hove/add-type-tracer-solution
...
Add restart output type RESTART_TRACER_SOLUTION
2021-11-18 09:39:24 +01:00
Joakim Hove
5432636a82
Add restart output type RESTART_TRACER_SOLUTION
2021-11-17 14:26:37 +01:00
Joakim Hove
07a5fb22c3
Handle string output for WSTAT to RSM file
2021-11-17 12:16:42 +01:00
Joakim Hove
cb2e90bb71
Output WSTAT numerical value to summary file
2021-11-17 12:16:34 +01:00
Joakim Hove
2a50e28085
Test ensure that WSTAT is included in SummaryConfig
2021-11-17 12:10:48 +01:00
Joakim Hove
9732520e3f
Move special case handling of 'S' summary keywords to SummaryNode
2021-11-17 12:04:19 +01:00
Joakim Hove
f1b3c73c65
Merge pull request #2852 from joakim-hove/add-kw-compsegs
...
Add kw compsegs
2021-11-16 20:01:11 +01:00
Joakim Hove
b30e51ccf0
Merge pull request #2851 from joakim-hove/replace-std-size
...
Replace std size
2021-11-16 19:28:27 +01:00
Joakim Hove
f95b0ad19e
Rename inspect_actionx_keyword -> prefect_cell_properties
2021-11-16 19:25:45 +01:00
Joakim Hove
bef5f5b9f4
Small fixup in python wrapper
2021-11-16 18:37:59 +01:00
Daniel
fe24c0717c
Replace Deck::getKeyword(size_t) with operator[size_t]
2021-11-16 18:36:27 +01:00
Joakim Hove
b6ec75eeb6
Merge pull request #2841 from joakim-hove/register-tests-in-files
...
Register ecl io tests using the file list in CMakeLists_files.cmake
2021-11-16 13:47:15 +01:00
Daniel
7435073568
Add keyword COMPSEGS to inspect_actionx_keyword()
2021-11-16 10:20:22 +01:00
Joakim Hove
df99685a92
Merge pull request #2844 from hakonhagland/py_rpath
...
Add rpath to libopmcommon.so in the build directory.
2021-11-15 17:50:39 +01:00
Joakim Hove
a8edbddbcd
Merge pull request #2845 from blattms/spelling-fixes-2021.10
...
Fixes spelling errors pointed out by lintian
2021-11-15 16:44:11 +01:00
Markus Blatt
388bb09162
Fixes spelling errors pointed out by lintian
2021-11-15 16:05:20 +01:00
Joakim Hove
b3bbd567e8
Merge pull request #2832 from joakim-hove/action-multxyz
...
Action multxyz
2021-11-15 14:24:56 +01:00
Håkon Hægland
a4d703b433
Add rpath to libopmcommon.so in the build directory.
...
Currently, an rpath to the install directory of libopmcommon.so is
generated for libopmcommon_python.so, but a similar rpath is not added to
the libopmcommon.so in the build directory. It is useful to be able to
use the build directory libraries when not compiling with
-DOPM_INSTALL_PYTHON or when developing.
This PR fixes issue #2843 .
2021-11-15 13:50:06 +01:00
Markus Blatt
7554a16b4c
Merge pull request #2839 from joakim-hove/rm-sched-debug
...
Remove stale compile definition SCHEDULE_DEBUG
2021-11-15 12:16:55 +01:00
Joakim Hove
785188c45c
Merge pull request #2840 from joakim-hove/avoid-python-dep
...
Avoid python dep
2021-11-15 12:06:11 +01:00
Joakim Hove
0e5d7977c3
Merge pull request #2842 from blattms/pkgconfig-link-private
...
List link dependencies as private.
2021-11-15 12:05:16 +01:00
Markus Blatt
b21f5e248d
List link dependencies as private.
...
This hides them for shared libraries that do not need them.
Should fix the following lintian warnings:
W: libopm-common-dev: pkg-config-references-unknown-shared-library usr/lib/x86_64-linux-gnu/pkgconfig/opm-common.pc -lpython3.7m (line 12)
W: libopm-common-dev: pkg-config-references-unknown-shared-library usr/lib/x86_64-linux-gnu/pkgconfig/opm-common.pc -lstdc++fs (line 12)
W: libopm-common-dev: pkg-config-references-unknown-shared-library usr/lib/x86_64-linux-gnu/pkgconfig/opm-common.pc -lgomp (line 12)
W: libopm-common-dev: pkg-config-references-unknown-shared-library usr/lib/x86_64-linux-gnu/pkgconfig/opm-common.pc -lboost_system (line 12)
W: libopm-common-dev: pkg-config-references-unknown-shared-library usr/lib/x86_64-linux-gnu/pkgconfig/opm-common.pc -lcjson (line 12)
Gbp-Pq: Name 0002-List-link-dependencies-as-private.patch
2021-11-15 11:03:55 +01:00
Joakim Hove
a8d3997c72
Register ecl io tests using the file list in CMakeLists_files.cmake
2021-11-15 10:20:36 +01:00
Joakim Hove
efc2b7c834
Only include builtin_pybind11 when building with embedded python
2021-11-15 09:58:00 +01:00
Joakim Hove
40dd50871c
Remove unneeded include <pybind11/stl.h>
2021-11-15 09:48:08 +01:00
Joakim Hove
893363e225
Merge pull request #2833 from hakonhagland/py_sched2
...
Implement support for adding keywords to the schedule from Python.
2021-11-15 08:47:51 +01:00
Joakim Hove
1f8b79105a
Remove stale build symbol SCHEDULE_DEBUG
2021-11-15 08:29:03 +01:00
Håkon Hægland
07f11585aa
Fix rebase error.
2021-11-14 13:52:35 +01:00
Håkon Hægland
928a33d2ea
Add comment about insert_keywords()
...
Add comment explaining that one of the insert_keywords()
overloads does not work yet.
2021-11-14 13:18:26 +01:00
Håkon Hægland
372b7e86a4
Support for adding keywords to schedule from Python.
...
Adds support for adding keywords to the SCHEDULE section of the deck
after the deck has been read from file from Python.
2021-11-14 13:18:26 +01:00
Joakim Hove
84c551a6df
Record use of GEO keywords as ACTIONX keyword
2021-11-12 16:52:23 +01:00
Joakim Hove
5a653d7464
Use handleGEOKeyword also for MULTFLT
2021-11-12 16:51:29 +01:00
Joakim Hove
cf640a62ad
Fix Copyright comment
2021-11-12 16:51:29 +01:00
Joakim Hove
6056a4c7d0
Merge pull request #2828 from daniepin/activate-cells-during-actionx
...
Activate cells during ACTIONX sequence if specific keywords are encountered
2021-11-12 16:50:30 +01:00
Daniel
e4026b84e9
Made corrections to inspect_actionx_keyword() method
2021-11-12 15:59:44 +01:00
Daniel
ff638862d9
Inspect keywords during ACTIONX sequence and activate Cells.
2021-11-12 15:08:16 +01:00
Joakim Hove
1d6a930784
Add test for COMPDAT as ACTIONX keyword
2021-11-12 15:08:16 +01:00
Joakim Hove
10314ce169
Merge pull request #2826 from daniepin/applyAction-refactor
...
Combine ScheduleGrid and FieldPropsManager
2021-11-12 15:04:37 +01:00
Joakim Hove
e65639a2e6
Merge pull request #2836 from akva2/update_data_base
...
added: tell update_data where to start branch from
2021-11-12 14:10:44 +01:00
Joakim Hove
3a1679319f
Merge pull request #2809 from bska/ext-network-restart
...
Support Loading Extended Network Model From Restart
2021-11-12 14:04:46 +01:00
Daniel
6c1f2e4ded
Add serializeOp() and serializeObject() methods to Prop struct
2021-11-12 13:56:33 +01:00
Arne Morten Kvarving
f7375c2638
added: tell update_data where to start branch from
...
this to allow for update_data from opm-tests
2021-11-12 13:30:44 +01:00
Bård Skaflestad
459fd67203
Incorporate Extended Network Objects From Restart into Schedule
...
This commit hooks the new RstNetwork object into the restart feature
of the main Schedule object. We form ExtNetwork Schedule subobjects
if there are active branches and nodes in the restart file.
2021-11-12 13:06:31 +01:00
Bård Skaflestad
19ec3b34f9
Support Loading Extended Network Model From Restart
...
This commit adds a new helper class, RstNetwork, that loads the raw
data representing the extended network model from restart vectors
IBRAN, INODE, RNODE, and ZNODE. We support loading the information
that is currently output to those restart vectors, but those do not
include every option supported by the input keywords BRANPROP and
NODEPROP.
The RstNetwork type supports querying whether or not the extended
network model is active and, if so, to get iterable collections of
branches and nodes that are geared towards constructing ExtNetwork
objects.
2021-11-12 13:06:31 +01:00
Bård Skaflestad
c3b3ce4832
Sort Headers in Restart State Object Implementation
...
In preparation of adding restart support for the extended network
model.
2021-11-12 13:06:31 +01:00
Bård Skaflestad
def4dd2c68
Return Restart State Object by Move()
...
Useful since we don't get in-place construction when returning a
composite object. Also useful if we decide to make RstState a
move-only type.
2021-11-12 13:06:31 +01:00
Joakim Hove
d7c495e229
Merge pull request #2824 from joakim-hove/rst-deck-file-arg
...
rst_deck: interpret restart argument as proper filename
2021-11-12 13:03:08 +01:00
Joakim Hove
c6209872f6
Rename struct options -> struct Options in rst_deck
2021-11-12 12:22:15 +01:00
Joakim Hove
d950e3ceb1
rst_deck: optionally interpret restart argument as proper filename
2021-11-12 12:22:15 +01:00
Joakim Hove
01a7149b36
Merge pull request #2788 from joakim-hove/deck-view
...
Refactor Deck and DeckView class hierarchy
2021-11-12 10:14:09 +01:00
Joakim Hove
fe38dbb663
Merge pull request #2834 from joakim-hove/restart-throw-input-error
...
Use OpmInputError for restart input problems
2021-11-12 09:59:01 +01:00
Joakim Hove
c73e77b3de
Use OpmInputError for restart input problems
2021-11-12 09:19:08 +01:00
Joakim Hove
ee105b7bbf
Remove base class DeckViewInternal and create new class DeckView
2021-11-12 08:09:29 +01:00
Joakim Hove
fb1dcd0203
Merge pull request #2817 from joakim-hove/schedule-fp
...
Schedule fp
2021-11-12 07:52:58 +01:00
Joakim Hove
12dd45ca66
Merge pull request #2835 from joakim-hove/add-dimension-to-uda
...
Add dimension to uda in Python
2021-11-12 07:51:55 +01:00
Joakim Hove
08e29defd2
Remove python2 adaption
2021-11-11 15:53:21 +01:00
Joakim Hove
e017195478
Whitespace fixup
2021-11-11 15:53:21 +01:00
Joakim Hove
b77ed8cc7c
Add dimension to UDAValue when creating
2021-11-11 15:53:21 +01:00
Joakim Hove
0fc2448369
Expose UDAValue to Python
2021-11-11 15:53:21 +01:00
Joakim Hove
e9ec23b385
Spelling fix
2021-11-11 15:53:21 +01:00
Joakim Hove
77985eaa08
Export UnitSystem and Dimension from opm.io
2021-11-11 15:53:21 +01:00
Joakim Hove
64e10a9c77
Export UnitSystem to opm._common
2021-11-11 15:53:21 +01:00
Joakim Hove
55eeabba42
Use only python3 syntax for import from test directory
2021-11-11 15:53:21 +01:00
Joakim Hove
90e55025d6
Merge pull request #2831 from joakim-hove/action-sim-update
...
Add struct SimulatorUpdate to transport results back to simulator
2021-11-11 14:59:07 +01:00
Joakim Hove
2320c16508
Merge pull request #2829 from joakim-hove/use-optional-for-active-units
...
Use std::optional< > for Deck unitsystem
2021-11-11 14:58:09 +01:00
Joakim Hove
40df72bc95
Merge pull request #2821 from hakonhagland/py11_uda
...
Add support for UDA values in DeckKeyword constructor.
2021-11-10 16:58:26 +01:00
Joakim Hove
d61f2356db
Remove unused variables
2021-11-10 16:21:28 +01:00
Joakim Hove
f1e768e184
Add struct SimulatorUpdate to transport results back to simulator
2021-11-10 15:57:56 +01:00
Håkon Hægland
4e5f7ef48e
Add some more UDA value tests.
...
Adds some more tests for UDA value items when constructing DeckKeyword
from Python.
2021-11-10 15:56:36 +01:00
Joakim Hove
ba3bcdb21b
Refactor / simplify function
2021-11-10 15:05:36 +01:00
Joakim Hove
2921838895
Apply MULTXYZ multipliers from Schedule section
2021-11-10 15:05:36 +01:00
Joakim Hove
243beeb96a
Add functionality to update FieldProps with schedule multipliers
2021-11-10 15:05:36 +01:00
Joakim Hove
948504444d
Remove ParseContext::UNSUPPORTED_SCHEDULE_GEO_MODIFIERS
2021-11-10 15:05:36 +01:00
Joakim Hove
37fa5f034c
Rename EclipseState::initTransMult -> applyMULTXYZ
2021-11-10 14:52:12 +01:00
Joakim Hove
304f4179c5
Mark MULTXYZ as allowed in SCHEDULE section
2021-11-10 14:52:12 +01:00
Joakim Hove
4b89399640
Use std::optional< > for Deck unitsystem
2021-11-10 14:51:15 +01:00
Daniel
faefde1a4f
Modify ACTIONX tests
2021-11-09 13:01:36 +01:00
Joakim Hove
edf4a9bcf4
Add ACTIONX + COMPDAT integration test with msim
2021-11-09 12:33:34 +01:00
Joakim Hove
a51a220a24
Add test for ACTIONX with trailing COMPDAT
2021-11-09 12:33:22 +01:00
Daniel
c80bcfd0bb
Removed unused variable active_index
2021-11-09 12:26:52 +01:00
Daniel
243c46a9a6
Removed FieldPropsManager* parameter from applyAction()
2021-11-09 12:20:27 +01:00
Daniel
d8a2061a14
Modify loadCOMPDAT() to not take a FieldPropsManager* as an argument
2021-11-09 12:16:40 +01:00
Håkon Hægland
25ccb17917
Test UDA value DeckKeyword
...
Test that the DeckKeyword() Python constructor can handle UDA value
keywords.
2021-11-09 11:47:58 +01:00
Joakim Hove
381e54f4a9
Merge pull request #2822 from joakim-hove/mutable-transmult
...
Add mutable EclipseState::getTransMult()
2021-11-09 11:25:40 +01:00
Joakim Hove
acbcccda22
Merge pull request #2819 from joakim-hove/refactor-micpara-contructions
...
Refactor construction of Microbial growth constructor
2021-11-09 11:25:09 +01:00
Daniel
11ddf673f0
Add keyword NTG to Cell props struct
2021-11-09 10:16:09 +01:00
Daniel
c3a55cb03b
Add keywords SATNUM and PVTNUM to Cell props struct
2021-11-09 10:07:00 +01:00
Joakim Hove
2c1c298003
Add mutable EclipseState::getTransMult()
2021-11-08 11:59:32 +01:00
Joakim Hove
b1b7ed5ecb
Merge pull request #2818 from joakim-hove/rename-geo-modifiers
...
Rename EclipseState::apply_geo_keywords -> apply_schedule_keywords
2021-11-08 11:46:25 +01:00
Håkon Hægland
702c4d46af
Add support for UDA values in DeckKeyword constructor.
...
Add support for UDA values items when constructing DeckKeywords from
DeckValues. This is needed when constructing DeckKeywords
from Python. For example WCONPROD has UDA value argument for the oil
rate.
2021-11-08 09:58:22 +01:00
Joakim Hove
3a291283eb
Merge pull request #2820 from bska/support-fluid-api-gravity
...
Support GRAVITY As Fallback for DENSITY
2021-11-08 07:50:15 +01:00
Joakim Hove
1c8c2cb11f
Refactor construction of Microbial growth constructor
2021-11-07 20:24:17 +01:00
Bård Skaflestad
da9d550f05
Support GRAVITY As Fallback for DENSITY
...
This commit activates support for the 'GRAVITY' keyword. We treat
this as a fallback alternative to the 'DENSITY' keyword.
2021-11-07 20:20:56 +01:00
Joakim Hove
3d17cee393
Rename EclipseState::apply_geo_keywords -> apply_schedule_keywords
2021-11-07 19:55:09 +01:00
Joakim Hove
0595aa8fea
Merge pull request #2801 from joakim-hove/affected-wells
...
Register well as "touched" by WCONHIST and WCONINJE in ACTIONX block
2021-11-05 12:02:01 +01:00
Joakim Hove
70261592b3
Merge pull request #2814 from bska/restart-load-field-wide-constraints
...
Load Field-Wide Constraints From Restart File
2021-11-05 11:06:29 +01:00
Joakim Hove
bbfd433b8e
Merge pull request #2807 from joakim-hove/alq-sign
...
Change sign of gas lift rate calculated from IGLR and ALQ value
2021-11-05 11:05:52 +01:00
Bård Skaflestad
67df58e10d
Load Field-Wide Constraints From Restart File
...
If constraints are applied at the field level, e.g., through the
GCONINJE keyword, then we must incorporate those constraints into
FIELD when restarting a simulation run. This commit takes a step in
this direction by explicitly loading the *GRP array entries
pertaining to FIELD and special casing
Schedule::addGroup(RstGroup, time)
to look for "rst_group.name == FIELD". In that case, we update the
injection and production properties of the existing FIELD group as
needed.
2021-11-05 10:02:07 +01:00
Joakim Hove
f78a6a858a
Merge pull request #2806 from daniepin/completed-cells-fp
...
Add permability property to CompletedCells
2021-11-05 09:34:04 +01:00
Joakim Hove
6dca968e66
Merge pull request #2811 from joakim-hove/remove-unused-deck-function
...
Remove unused Deck::hasKeyword( const DeckKeyword& )
2021-11-04 17:11:51 +01:00
Joakim Hove
822df970dc
Merge pull request #2813 from joakim-hove/avoid-use-of-generated-header
...
Avoid use of generated header S.hpp in header file
2021-11-04 17:11:32 +01:00
Joakim Hove
3fcbac1e95
Move implementation to cpp file
2021-11-04 13:33:43 +01:00
Joakim Hove
f13cf8db11
Remove unused Deck::hasKeyword( const DeckKeyword& )
2021-11-04 12:41:12 +01:00
Daniel
0d8edeccfa
Remove active_index from serializer
2021-11-04 11:29:12 +01:00
Daniel
45dd77938b
Removed constructor from ScheduleGrid, added perm prop to tests
...
Changed (BASE_SIM.DATA, BASE_SIM_THPRES.DATA, RESTART_SIM.DATA), testblackoilstate3.DATA and testrft.DATA since they affect the tests in test_Restart.cpp, test_restartwellinfo.cpp and test_RFT.cpp respectively.
2021-11-04 11:29:12 +01:00
Daniel
931cebb12f
Add Props struct to CompletedCells::Cell
2021-11-04 11:29:12 +01:00
Daniel
39723102a9
Add permability property to CompletedCells
2021-11-04 11:29:12 +01:00
Joakim Hove
f2db4651d0
Register well as "touched" by WCONHIST and WCONINJE in ACTIONX block
2021-11-04 09:37:36 +01:00
Joakim Hove
5e2dc1e30c
Merge pull request #2808 from bska/identify-nodename-restart-item
...
Identify Extended Network Model Node Name Item in ZNODE
2021-11-03 16:44:47 +01:00
Bård Skaflestad
ab5cb1118d
Identify Extended Network Model Node Name Item in ZNODE
...
In preparation of adding initial support for restarting simulations
featuring the extended network model.
2021-11-03 13:17:49 +01:00
Joakim Hove
6e56d80529
Change sign of gas lift rate calculated from IGLR and ALQ value
2021-11-03 11:54:26 +01:00
Joakim Hove
dd54d2aad1
Merge pull request #2805 from bska/restart-continuous-xlpt
...
Ensure Continuous Cumulative Liquid Production On Restart
2021-11-03 08:40:50 +01:00
Bård Skaflestad
9ce58ec2ad
Ensure Continuous Cumulative Liquid Production On Restart
...
The xLPT curves should not start at zero in a restarted simulation
run. This commit initialises the cumulative liquid production
volume using the value
xOPT + xWPT
with the individual terms taken from XWEL or XGRP as appropriate.
2021-11-02 16:16:45 +01:00
Joakim Hove
cbfc727cd2
Merge pull request #2773 from bska/restart-gefac
...
Add Restart Support for Item 2 of GEFAC
2021-11-02 15:32:52 +01:00
Bård Skaflestad
c51724942b
Add Restart Support for Item 2 of GEFAC
...
That is, save and restore the group efficiency factor value to/from
the SGRP array in the restart file.
2021-11-02 12:41:19 +01:00
Bård Skaflestad
7aae45a67f
Adjust Whitespace
...
In preparation of adding restart support for Item 2 of GEFAC.
2021-11-02 12:41:19 +01:00
Joakim Hove
612706e02f
Merge pull request #2804 from jalvestad/rst_improv
...
Add item IGRP[NWGMAX + 39] to the Eclipse-compatible restart file
2021-11-02 11:57:32 +01:00
Joakim Hove
ea856e1484
Merge pull request #2791 from joakim-hove/alq-output
...
Use gas lift rate value for WALQ output when gas lift rate optimization is in action
2021-11-01 19:37:52 +01:00
Joakim Hove
1342b47f63
Calculate GLIR from liquid rates and fraction Gas / Liquid
2021-11-01 17:48:47 +01:00
Joakim Hove
5b2712490e
Change argument type in utility functions
2021-11-01 17:48:47 +01:00
Joakim Hove
8fb66ef908
Fetch ALQ value from simulator if WLIFTOPT is enabled for well
2021-11-01 17:48:47 +01:00
Joakim Hove
03f440d064
Use named symbol zero for increased readability
2021-11-01 17:48:47 +01:00
Joakim Hove
5e84c8d935
Add function GLiftOpt::num_wells()
2021-11-01 17:48:47 +01:00
Joakim Hove
4eddb181c6
Merge pull request #2803 from akva2/remove_ebos_flags
...
changed: remove extra flags for ebos
2021-11-01 17:39:24 +01:00
Atgeirr Flø Rasmussen
af8fc94188
Merge pull request #2802 from akva2/remove_gcc7_compat
...
changed: drop gcc7 compatibility
2021-11-01 15:29:52 +01:00
Jostein Alvestad
ffad873b0f
Added output of IGRP[NWGMAX + 39] - node sequence number for groups in external network
2021-11-01 15:04:02 +01:00
Arne Morten Kvarving
becfb799a5
changed: remove extra flags for ebos
...
ebos is no more
2021-11-01 13:52:05 +01:00
Arne Morten Kvarving
6465cfe1ea
changed: drop gcc7 compatibility
...
this means getting rid of the Opm::filesystem namespace
and directly using std::filesystem, as well as dropping
some of the compat code for the tr filesystem.
we still need the FileSystem.hpp/cpp files though as unique_path
is not part of std::filesystem.
2021-11-01 12:36:42 +01:00
Joakim Hove
f8d33def59
Merge pull request #2786 from daniepin/completed_cells-refactor
...
Refactored ScheduleGrid to use public struct cell
2021-10-30 17:10:32 +02:00
Joakim Hove
30f44eff1d
Merge pull request #2789 from joakim-hove/deck-view-rename
...
Rename DeckView -> DeckViewInternal
2021-10-30 15:56:30 +02:00
Joakim Hove
0d6acd82e0
Merge pull request #2790 from joakim-hove/gaslift-rst-fixup
...
Gaslift rst fixup
2021-10-30 15:55:37 +02:00
Joakim Hove
f60b5d1c8c
Merge pull request #2794 from joakim-hove/gliftopt
...
Gliftopt
2021-10-30 15:55:16 +02:00
Joakim Hove
1d19c67cea
Merge pull request #2800 from bska/provide-stable-actionx-well-order
...
Ensure Stable Sort Order for Well Names in ACTIONX Block
2021-10-29 19:42:02 +02:00
Joakim Hove
82a16bc1e9
Use std::map::insert_or_assign() to update maps
2021-10-29 17:05:29 +02:00
Bård Skaflestad
7452d398e5
Ensure Stable Sort Order for Well Names in ACTIONX Block
...
This means we don't process wells in an order that's dictated by
the implementation's choices for the element order in an
unordered_set<string>.
2021-10-29 16:48:22 +02:00
Bård Skaflestad
1f03a0e726
Provide External Access to Well-Order Sorting
...
This commit extracts the 'NameOrder' sorting operation to a new
public member function, WellMatcher::sort(vector<string>). The
immediate use-case for this function is to provide a stable sorting
order for wells that are matched in an ACTIONX block. Well IDs
often end up in various output arrays in the restart files--e.g., in
the IUAP array the matching wells are used in a WCON* keyword that
employs a user-defined argument as part of setting its targets or
limits--and we should strive to keep those arrays as deterministic
as possible.
2021-10-29 16:48:22 +02:00
Joakim Hove
9685946196
Merge pull request #2799 from akva2/fix_suitesparse_warning
...
changed: use STRING type
2021-10-29 16:39:51 +02:00
Joakim Hove
34c87b45fe
Merge pull request #2795 from bska/add-guiderate-haspotentials-predicate
...
Add Predicate for Potential Rates of W/G Name
2021-10-29 16:39:33 +02:00
Joakim Hove
cabeff1eee
Merge pull request #2797 from akva2/fix_cjson
...
Fix some cjson issues
2021-10-29 16:39:18 +02:00
Bård Skaflestad
93df70417a
Add Predicate for Potential Rates of W/G Name
...
This commit adds a new predicate, GuideRate::hasPotentials(), that
checks whether or not rates exist in the 'potentials' array for a
particular well or group name. If neither explicit guide rate
values nor potential rates exist for a particular "wgname", then it
is an error to call GuideRate::get() and that member function will
throw an exception. This new predicate provides a way of avoiding
that exception.
2021-10-29 15:03:49 +02:00
Arne Morten Kvarving
fecd879840
changed: use STRING type
...
there is no such thing as INT type in cmake
2021-10-29 14:25:41 +02:00
Arne Morten Kvarving
f12f77ba46
Merge pull request #2796 from akva2/fix_pybind11_dep_warning
...
fix deprecation warning with pybind11 >= 2.6
2021-10-29 13:57:57 +02:00
Arne Morten Kvarving
129bc72273
fix deprecation warning with pybind11 >= 2.6
2021-10-29 13:41:50 +02:00
Arne Morten Kvarving
21cdcecb81
fixed: append cjson libraries to python module build when using system cjson
2021-10-29 13:15:47 +02:00
Arne Morten Kvarving
c979f25d02
fix cjson find module
...
the param to find_package_handle_standard_args should match module name
2021-10-29 13:15:47 +02:00
Joakim Hove
1849e2230c
Load GLIFTOPT properties from restart file
2021-10-28 16:27:36 +02:00
Joakim Hove
589191f532
Write options for GLIFTOPT to restart file
2021-10-28 16:27:36 +02:00
Joakim Hove
927b6c2cbb
Fetch GLIFT rate change from correct restart item
2021-10-27 11:11:25 +02:00
Joakim Hove
0e4f16dddc
Use correct item for GLIFT weight factor when loading from restart
2021-10-27 11:11:25 +02:00
Joakim Hove
7f3be89d9c
Use named constant for GASLIFT option
2021-10-27 11:11:25 +02:00
Joakim Hove
9eaf6b2fdf
Rename item in LIFTOPT keyword
2021-10-27 11:11:25 +02:00
daniepin
3e612b8407
Delete .vscode directory
2021-10-27 09:55:10 +02:00
Joakim Hove
705c3ac8c6
Rename DeckView -> DeckViewInternal
2021-10-26 23:10:19 +02:00
Daniel Pinjusic
f8b8cad95a
Refactored ScheduleGrid to use public struct cell
2021-10-26 13:36:54 +02:00
Joakim Hove
d96e5308a1
Merge pull request #2784 from akva2/janitoring
...
remove unused variables
2021-10-26 12:29:15 +02:00
Arne Morten Kvarving
f079ca3443
remove unused variables
2021-10-26 08:47:22 +02:00
Joakim Hove
af11f82d4d
Merge pull request #2770 from joakim-hove/rst-gaslift
...
Rst gaslift
2021-10-26 07:22:01 +02:00
Bård Skaflestad
147ecdd9c6
Merge pull request #2783 from akva2/janitoring
...
avoid sign/unsigned comparison warning
2021-10-25 23:01:35 +02:00
Joakim Hove
2c0a1b4cb6
Merge pull request #2779 from jalvestad/rst-netbalan
...
Add items for the NETBALAN keyword to the Eclipse-compatible restart file
2021-10-25 22:46:20 +02:00
Arne Morten Kvarving
8454f82ba3
avoid sign/unsigned comparison warning
2021-10-25 21:55:02 +02:00
Joakim Hove
a17fe175d2
Merge pull request #2775 from joakim-hove/actionx-compdat-compsegs-fix
...
Actionx compdat compsegs fix
2021-10-25 17:38:20 +02:00
Joakim Hove
5dc451f159
Merge pull request #2780 from joakim-hove/rst_fixup2
...
Rst fixup2
2021-10-25 17:37:47 +02:00
Bård Skaflestad
ff969f0048
Merge pull request #2782 from alfbr/wellgraph
...
Add helpful output at runtime for wellgraph
2021-10-25 16:47:46 +02:00
Alf Birger Rustad
d5d88ae8b8
Add helpful output at runtime for wellgraph
2021-10-25 14:41:30 +02:00
Jostein Alvestad
85367ec6d7
corrections/improvements based on comments from reviewer
2021-10-25 14:27:28 +02:00
Jostein Alvestad
6830a8581e
added incorrectly deleted files
2021-10-25 14:27:26 +02:00
Jostein Alvestad
6b7875765d
added unit tests to InteHead and DoubHead for NETBALAN
2021-10-25 14:27:23 +02:00
Jostein Alvestad
60d57f06b7
added DOUBHEAD items for NETBALAN
2021-10-25 14:27:20 +02:00
Jostein Alvestad
d1a1050e67
small correction to code
2021-10-25 14:27:18 +02:00
Jostein Alvestad
2911e11033
added changes to write NETBALAN keyword data to InteHead
2021-10-25 14:27:16 +02:00
Joakim Hove
e323c4a88c
Make sure Schdule keyword is retained in FileDeck::skip
2021-10-24 10:08:46 +02:00
Joakim Hove
5f0bd0a5c7
Implement FileDeck::Index::operator+(std::size_t shift)
2021-10-24 10:01:48 +02:00
Joakim Hove
344dd516a0
Fix rst_deck for non skiprest
2021-10-23 17:49:22 +02:00
Joakim Hove
822a97c8d9
Load LIFTOP options from restart file
2021-10-22 15:53:03 +02:00
Joakim Hove
737a76918f
Load WLIFTOPT wells from restart file
2021-10-22 15:25:38 +02:00
Joakim Hove
58c0e7d868
Load GasLift settings from restart file
2021-10-22 15:25:38 +02:00
Joakim Hove
741bd5da95
Merge pull request #2777 from joakim-hove/wliftopt-update
...
Add two extra items for WLIFTOPT restart output
2021-10-22 15:24:42 +02:00
Joakim Hove
a2d217ad36
Add two extra items for WLIFTOPT restart output
2021-10-22 13:30:24 +02:00
Joakim Hove
a1942ccec7
Merge pull request #2778 from atgeirr/bump-version
...
Bump version.
2021-10-22 13:24:20 +02:00
Atgeirr Flø Rasmussen
bd9bc77129
Bump version.
2021-10-22 10:17:59 +02:00
Williham Williham Totland
4134b98701
Introduce class SchduleGrid to be used as grid by Schedule class
2021-10-22 08:35:17 +02:00
Joakim Hove
798e93e4a8
Merge pull request #2774 from blattms/dune-2.8-imported-targets
...
Define imported targets needed e.g. for dune-fem 2.8.0
2021-10-21 20:17:43 +02:00
Markus Blatt
c6e1730a0a
Search for GMP if dune-common is used.
...
We do suggest dune-fem for opm-models and that one links to it
if available.
2021-10-21 15:33:02 +02:00
Markus Blatt
e67a55bf86
dune-fem uses QuadMath if available, search for it.
...
One still has to set USE_QUADMATH to true otherwise no
search will happen.
2021-10-21 15:30:44 +02:00
Markus Blatt
d577b74106
Introduced DUNE-2.8 compatible imported targets where needed.
...
I.e. in the find_package files for PTScotch ParMETIS, Quadmath,
SuiteSparse, and SuperLU.
2021-10-21 15:29:12 +02:00
Markus Blatt
c713d540e6
Adds a rudimentary FindTBB.cmake to make DUNE 2.8 with TBB work
...
Fixes errors like
Target "test_communication_utils" links to target
"PkgConfig::PkgConfigTBB" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
2021-10-20 22:06:29 +02:00
Markus Blatt
22e9452de0
Search for TBB in Finddune-common.cmake
...
When configured with TBB dune-common-targets.cmake lists the
imported TBB::tbb or PkgConfig::PkgConfigTBB target
in INTERFACE_LINK_LIBRARIES. Hence we need to be able to resolve
this target in opm. We do this by searching for TBB id dune-common
is a prerequisite.
This commit fixes the problem only for newer versions of TBB shipping a
TBBConfig.cmake file.
The error fixed is along these lines:
Target "test_communication_utils" links to target "TBB::tbb" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
2021-10-20 22:06:29 +02:00
Bård Skaflestad
e7d528e1d2
Merge pull request #2427 from bska/connection-cumulatives-restart
...
Save/Restore Connection Level Cumulatives to/from Restart
2021-10-20 17:04:23 +02:00
Bård Skaflestad
65538e3ac9
Save/Restore Connection Level Cumulatives to/from Restart
...
This commit add support for saving connection-level cumulative
quantities (e.g., those denoted by summary vectors COPT or CVIT) to
the restart file (in the 'XCON' array) and to restore these values
back to the 'SummaryState' object upon simulation restart.
Thanks to Torbjørn Skille and Jostein Alvestad for invaluable
assistance in characterising these XCON items.
2021-10-20 15:47:12 +02:00
Bård Skaflestad
8d1e13fd0c
Configure Additional Summary Quantites for Restart
...
In particular, ensure that connection-level cumulatives are always
available in the SummaryState. Also generate the connection-level
flowing gas/oil ratio (CGOR) while here.
2021-10-20 15:47:12 +02:00
Bård Skaflestad
941df67e24
Identify More Connection Restart Items
...
In particular, add named items for cumulative production and
injection in the XCON array. These are needed in order to generate
continuous connection-level curves in restarted runs.
While here, also add a named item for the well-level cumulative oil
injection quantity.
2021-10-20 15:47:12 +02:00
Bård Skaflestad
9f0185018e
Merge pull request #2769 from joakim-hove/rst-deck-skip
...
Rst deck skip
2021-10-20 15:45:30 +02:00
Joakim Hove
ace87a357a
Handle skipping in SCHEDULE section
2021-10-20 14:02:13 +02:00
Bård Skaflestad
9c5df232ed
Merge pull request #2768 from joakim-hove/update-test-data
...
Update test data
2021-10-20 12:58:09 +02:00
Joakim Hove
1044be41a2
Replace DATES -> TSTEP for restart testing
2021-10-20 11:28:34 +02:00
Joakim Hove
f644bf1659
Insert comment with report step in DATES testdata
2021-10-20 09:35:39 +02:00
Joakim Hove
6ca08afb74
Merge pull request #2763 from joakim-hove/wtmult-simple
...
Basic support for WTMULT
2021-10-20 08:31:43 +02:00
Joakim Hove
24d1f58aca
Merge pull request #2767 from joakim-hove/rst-deck-output
...
Rst deck output
2021-10-20 08:01:21 +02:00
Bård Skaflestad
5e3ba88dde
Merge pull request #2759 from joakim-hove/restart-errors
...
Validate restart input in constructor
2021-10-19 21:52:54 +02:00
Joakim Hove
93de5d5f69
Use default aware function when building DeckKeyword
2021-10-19 19:13:15 +02:00
Joakim Hove
22edbe79ab
DeckKeyword - slash termination correctly initialized
2021-10-19 19:13:15 +02:00
Joakim Hove
a22458a592
Use {} for constructor call
2021-10-19 13:26:26 +02:00
Bård Skaflestad
8d16838e6f
Merge pull request #2766 from OPM/fix/missing-includes
...
fix missing includes
2021-10-19 13:20:19 +02:00
Bernd Flemisch
60477ac627
fix missing includes
2021-10-19 12:07:48 +02:00
Joakim Hove
5e3e20c552
Implement basic WTMULT behavior
2021-10-19 11:59:49 +02:00
Arne Morten Kvarving
648abeef1f
Merge pull request #2765 from akva2/janitoring
...
remove unused variables
2021-10-19 11:49:55 +02:00
Joakim Hove
a3d37aad1e
Remove comment about UDA in WTMULT
2021-10-19 11:12:32 +02:00
Joakim Hove
14453560da
Add UDAValue::operator*=
2021-10-19 11:12:06 +02:00
Arne Morten Kvarving
d65c232057
remove unused variables
2021-10-19 10:53:34 +02:00
Bård Skaflestad
726a0589ec
Merge pull request #2760 from joakim-hove/handle-nextstep
...
Internalize NEXTSTEP keyword and interact with TUNING.TSINIT
2021-10-18 18:34:14 +02:00
Bård Skaflestad
dc633cdee9
Merge pull request #2764 from akva2/janitoring
...
fixed: forward struct as struct
2021-10-18 17:33:29 +02:00
Arne Morten Kvarving
ff5c3b9574
fixed: forward struct as struct
2021-10-18 15:42:48 +02:00
Joakim Hove
5bd9906569
Merge pull request #2761 from bska/sumthin-rptonly-smry-sect
...
Initialize RPTONLY/SUMTHIN Settings From SUMMARY Section
2021-10-18 13:09:43 +02:00
Bård Skaflestad
70bb2afe93
Merge pull request #2762 from akva2/janitoring
...
avoid signed/unsigned comparison warnings
2021-10-18 13:04:34 +02:00
Arne Morten Kvarving
076f12cb34
avoid signed/unsigned comparison warnings
2021-10-18 11:50:47 +02:00
Bård Skaflestad
6ffe20ddc8
Initialize RPTONLY/SUMTHIN Settings From SUMMARY Section
2021-10-18 11:17:34 +02:00
Joakim Hove
1a1edf01b5
Internalize NEXTSTEP keyword and interact with TUNING.TSINIT
2021-10-18 10:11:21 +02:00
Bård Skaflestad
74fa193b82
Sort Includes in Schedule.hpp
2021-10-18 09:47:41 +02:00
Bård Skaflestad
6da7c3c88e
Merge pull request #2756 from joakim-hove/rst-wlist
...
Rst wlist
2021-10-18 09:46:12 +02:00
Joakim Hove
f892fbeb18
Merge pull request #2758 from joakim-hove/wtest-filter-wells
...
Filter out wells from WellTestState
2021-10-18 08:09:38 +02:00
Joakim Hove
a13376c2d1
Better error messages when the RESTART keyword is invalid
2021-10-17 19:59:29 +02:00
Joakim Hove
99ff9adca5
Filter out wells from WellTestState
2021-10-17 19:41:56 +02:00
Bård Skaflestad
9d0d13296d
Merge pull request #2752 from akva2/improve_test_drivers
...
use -e when passing exename to test drivers
2021-10-17 17:33:53 +02:00
Joakim Hove
091ec36c28
Load WLIST from restart file
2021-10-15 13:15:33 +02:00
Joakim Hove
0f0dcea773
Fix bug with group offset in UDQACtive
2021-10-15 13:13:01 +02:00
Atgeirr Flø Rasmussen
3b2d650f8d
Merge pull request #2757 from atgeirr/silence-struct-class-warning
...
Use struct consistently for Tuning.
2021-10-15 08:34:24 +02:00
Atgeirr Flø Rasmussen
8d123ea7ab
Use struct consistently for Tuning.
2021-10-15 07:19:09 +02:00
Tor Harald Sandve
0dff883914
Merge pull request #2743 from daavid00/micp-2021-10
...
micp
2021-10-14 22:27:43 +02:00
daavid00
a26b69e91e
Adding the SIScaling in MICPTests for correct parameetr conversion
2021-10-14 22:11:50 +02:00
daavid00
ae8baba566
Removing EQLDIMS word in MICPTests for jenkins building
2021-10-14 21:04:28 +02:00
daavid00
60d5cd2c70
Adding missing words to MICPTests for jenkins building
2021-10-14 20:41:22 +02:00
daavid00
ae5c09243a
adding one test for the MICP keywords
2021-10-14 19:31:07 +02:00
daavid00
60963e2310
first version of micp implementation in flow
2021-10-14 17:27:13 +02:00
Joakim Hove
35f35541ff
Add testdata for WLIST restart testing
2021-10-14 11:41:40 +02:00
Joakim Hove
7b23110ccc
Merge pull request #2753 from joakim-hove/wconprod-question-pattern
...
Ensure that matched wells are passed to WCONPROD and WCONINJE
2021-10-14 07:22:07 +02:00
Joakim Hove
aaed77da09
Merge pull request #2754 from joakim-hove/rst-deck-testing
...
Move some code from rst_deck application to FileDeck class
2021-10-14 07:21:53 +02:00
Joakim Hove
fa77a72e61
Merge pull request #2755 from bska/use-mutable-error-guard
...
Confer 'trim_wgname' Errors Back to Caller
2021-10-14 07:21:04 +02:00
Bård Skaflestad
64d0db7a26
Confer 'trim_wgname' Errors Back to Caller
...
Mutating a copy of the ErrorGuard object means we potentially lose
error conditions.
2021-10-13 22:37:10 +02:00
Joakim Hove
82b112305e
Move some code from rst_deck application to FileDeck class
2021-10-13 14:51:02 +02:00
Joakim Hove
e101020f33
Add FileDeck::Index::operator<
2021-10-13 14:37:25 +02:00
Bård Skaflestad
117c9179fa
Merge pull request #2739 from bska/restore-guiderate
...
Add Means of Initialising GR Values in SI Units
2021-10-13 14:01:25 +02:00
Joakim Hove
1e0c65163b
Ensure that matched wells are passed to WCONPROD and WCONINJE
2021-10-13 12:33:36 +02:00
Bård Skaflestad
05e449440a
Add Means of Initialising GR Values in SI Units
...
Intended use case is reading initial guide-rate values from the
restart file.
2021-10-13 11:41:23 +02:00
Bård Skaflestad
dcaf86e443
Hook Production Groups Into Guide Rate System at Restart
...
Otherwise, groups that have a non-trivial guide rate definition
won't be a part of group-level controls (GCONPROD) when continuing
the simulation run.
2021-10-13 11:41:23 +02:00
Bård Skaflestad
e451babec7
Restore Guiderate's Nominated Phase From Restart File
2021-10-13 11:41:23 +02:00
Bård Skaflestad
0c8f270723
Use min_element to Determine When GR Values Have Expired
...
This reduces the amount of mutable state being processed.
2021-10-13 11:41:23 +02:00
Bård Skaflestad
79a856ab20
Simplify Logic to Determine When to Reuse GR Values
...
Using map<>::find() means we also don't need to perform repeated
name-based lookups.
2021-10-13 11:41:23 +02:00
Bård Skaflestad
55ac8ff824
Make GuideRate Implementation Tidier
...
Mark parameters 'const' where possible, make value state private,
and wrap long lines.
2021-10-13 11:41:23 +02:00
Joakim Hove
0c2645154f
Merge pull request #2747 from joakim-hove/wtest-state-rst-load
...
Wtest state rst load
2021-10-13 11:27:50 +02:00
Arne Morten Kvarving
53cfb50d75
use -e when passing exename to test drivers
2021-10-13 11:27:47 +02:00
Bård Skaflestad
9a866a8a10
Merge pull request #2751 from bska/report-siunits-injgr-grouplevel
...
Add Guide Rate Value Accessor for SI Units
2021-10-13 10:56:57 +02:00
Bård Skaflestad
d3ccb820af
Add Guide Rate Value Accessor for SI Units
...
Needed to properly report group-level injection guide rates in the
summary file.
Forgotten in PR #2605 (commit 2a374fc53 ).
2021-10-13 09:53:39 +02:00
Joakim Hove
06fd01c6ba
Create WellTestState object from restart file
2021-10-13 08:46:11 +02:00
Joakim Hove
ee92f53b72
Merge pull request #2746 from joakim-hove/wtest-load-rst
...
Wtest load rst
2021-10-13 08:43:06 +02:00
Joakim Hove
7a1869fa60
Load WTEST configuration from restart file
2021-10-12 17:04:18 +02:00
Joakim Hove
af253dde47
Merge pull request #2748 from joakim-hove/wtest-serialize
...
Enable serialize support for WellTestState
2021-10-12 17:03:23 +02:00
Joakim Hove
4d72677b57
Merge pull request #2750 from joakim-hove/rst_deck_bugfix
...
Fix bug in SOLUTION section iteration in rst_deck
2021-10-12 13:05:47 +02:00
Joakim Hove
b440860478
Fix bug in SOLUTION section iteration in rst_deck
2021-10-12 12:06:46 +02:00
Joakim Hove
c5267ad7e6
Merge pull request #2745 from joakim-hove/wtest-state-is-open
...
Remove WellTestState::xxx_is_open() predicates
2021-10-12 09:17:35 +02:00
Joakim Hove
c56165b2d0
Enable serialize support for WellTestState
2021-10-12 07:57:41 +02:00
Joakim Hove
178fd6462c
Remove WellTestState::xxx_is_open() predicates
2021-10-11 17:26:51 +02:00
Joakim Hove
f1c51b549a
Merge pull request #2718 from joakim-hove/wtest-restart
...
Wtest restart
2021-10-11 17:25:56 +02:00
Joakim Hove
7f24433337
Write WTEST configuration and state to restart file
2021-10-10 13:06:28 +02:00
Joakim Hove
f7b09380d4
Add WellTestState argument to AggregateWellData functions
2021-10-10 12:11:29 +02:00
Joakim Hove
bc6e2b268a
Merge pull request #2737 from joakim-hove/wtest-state-refactor2
...
Wtest state refactor2
2021-10-10 09:54:08 +02:00
Joakim Hove
139e988598
Refactor WellStateTest to use map storage internally
2021-10-08 18:34:47 +02:00
Joakim Hove
5bd7b61075
Rename updateWells -> test_wells
2021-10-08 14:15:16 +02:00
Joakim Hove
e41a8dfbf1
Remove ecl wells from WellTestState::update call
2021-10-08 14:15:14 +02:00
Joakim Hove
69e0a49e55
Merge pull request #2742 from joakim-hove/welltest-state-rename
...
Welltest state rename
2021-10-08 14:06:52 +02:00
Joakim Hove
b317e1e8d8
WellTestState::dropCompletion -> WellTestState::open_completion
2021-10-08 12:56:48 +02:00
Joakim Hove
ac6a8f91d6
WellTestState::openWell -> WellTestState::open_well
2021-10-08 12:56:48 +02:00
Joakim Hove
a5ee46c195
WellTestState::hasWellClosed -> WellTestState::well_is_closed
2021-10-08 12:56:48 +02:00
Joakim Hove
60f0c3f260
WellTestState::closeWell -> WellTestState::close_well
2021-10-08 12:56:47 +02:00
Joakim Hove
c202ccfb46
WellTestState::hasCompletion -> WellTestState::completion_is_closed
2021-10-08 12:56:47 +02:00
Joakim Hove
d840b72ed5
WellTestState::addClosedCompletion - WellTestState::close_completion
2021-10-08 12:56:47 +02:00
Joakim Hove
52dde24faf
WellTestState::openAllCompletions -> WellTestState::open_completions
2021-10-08 12:56:47 +02:00
Joakim Hove
b39cf81142
Renome unused function WellTestState::updateCompletion()
2021-10-08 12:56:47 +02:00
Joakim Hove
04bbb164d9
Merge pull request #2741 from dafeda/find_boost
...
Use built in FindBoost
2021-10-08 10:46:58 +02:00
Bård Skaflestad
72e4f5f774
Merge pull request #2738 from bska/restore-group-control
...
Restore Group Level Controls if Limits Exist
2021-10-08 10:13:21 +02:00
Bård Skaflestad
3ac75ed2fc
Restore Group Level Controls if Limits Exist
...
A group may have limits but no active control at the time of restart.
2021-10-07 21:59:27 +02:00
Bård Skaflestad
687d98aeea
Restore Limited Version of Exceed Action From Restart File
...
Applies to group-level production controls.
2021-10-07 21:59:27 +02:00
Bård Skaflestad
de0d603215
Merge pull request #2735 from bska/restore-history-cmode
...
Restore Well Level History Control Mode From Restart File
2021-10-07 21:01:38 +02:00
Bård Skaflestad
f1cdcdb0e9
Restore History Control Mode From Restart File
...
In this case, we must also discard all other limits to ensure we
don't accidentally change control modes until explicitly reset with
a new WCONHIST or WCONINJH keyword.
2021-10-07 15:49:13 +02:00
Bård Skaflestad
f2a98d2a8b
Create Helper Functions to Determine Active Well Controls
...
While here, also check that history mode injectors use only RATE or
BHP controls.
2021-10-07 15:49:13 +02:00
Bård Skaflestad
0a266f460d
Add Means of Discarding All Well Level Injection Controls
...
Needed when restoring history mode injectors from restart files.
2021-10-07 15:49:13 +02:00
Bård Skaflestad
5f0177e275
Merge pull request #2734 from bska/reset-actnum-eclipsestate
...
Support Resetting ACTNUM At EclipseState Level
2021-10-07 15:45:16 +02:00
Bård Skaflestad
fe2a3f5203
Support Resetting ACTNUM At EclipseState Level
...
Mostly a convenience method that avoids resorting to ugly const_cast
expressions in client code.
2021-10-07 14:50:50 +02:00
Bård Skaflestad
b3befa57fe
Merge pull request #2730 from bska/prune-deactivated-anconn
...
Add Means of Pruning Deactivated Aquifer Connections
2021-10-07 14:49:35 +02:00
Bård Skaflestad
75ee817fed
Add Means of Pruning Deactivated Aquifer Connections
...
This commit adds operation pruneDeactivatedAquiferConnections at
the EclipseState and AquiferConfig levels. This is intended as a
stop-gap solution to a sequencing problem that arises from MINPV
processing. In general we must not form connections to analytic
aquifers until the set of active grid cells is fully established.
Pruning cells that become deactivated as part of MINPV handling
nevertheless covers the common case of connection boxes applying
only to the outer shell. Solving the problem in general will
however require delaying forming the analytic aquifer connections
until after the active cells are fully known.
2021-10-07 12:31:08 +02:00
Arne Morten Kvarving
0c7dc81814
Merge pull request #2740 from akva2/janitoring
...
anonymize parameter to quell compiler warning
2021-10-07 12:27:18 +02:00
Feda Curic
c2e8eabc2f
Use built in FindBoost
2021-10-07 12:11:54 +02:00
Arne Morten Kvarving
c240581785
anonymize parameter to quell compiler warning
2021-10-07 11:10:29 +02:00
Joakim Hove
d2b221da64
Merge pull request #2736 from joakim-hove/welltest-state-wells-size
...
WellTestState: will only count actually closed wells
2021-10-07 09:27:34 +02:00
Joakim Hove
d78cdfbe7f
WellTestState: will only count actually closed wells
2021-10-06 17:51:15 +02:00
Joakim Hove
d4baf44e1b
Merge pull request #2727 from joakim-hove/netbalan-units
...
Handle NETBALAN keyword in Schedule section
2021-10-06 08:00:38 +02:00
Joakim Hove
d05f152100
Merge pull request #2722 from joakim-hove/add-wtest-state-argument
...
2: Add WellTestState argument to IO routines
2021-10-05 07:31:31 +02:00
Joakim Hove
75d05312b7
Add WellTestState argument to IO routines
2021-10-04 20:42:39 +02:00
Joakim Hove
2e6daf088b
Merge pull request #2724 from joakim-hove/wtest-state-serialize
...
1: Wtest state serialize
2021-10-04 20:40:41 +02:00
Joakim Hove
e1b9602a25
Handle NETBALAN keyword in Schedule
2021-10-04 13:43:19 +02:00
Joakim Hove
0074364560
Merge pull request #2729 from joakim-hove/netbalan-commits
...
Netbalan commits
2021-10-04 13:42:58 +02:00
Joakim Hove
72ba5b8d36
Merge pull request #2728 from joakim-hove/cmp-network
...
Add network member to ScheduleState::operator==()
2021-10-04 13:11:24 +02:00
Joakim Hove
c6dc9277c5
Add units to JSON specification for NETBALAN keyword
2021-10-04 12:27:03 +02:00
Joakim Hove
a1f924baec
Fix typo in json file
2021-10-04 12:27:03 +02:00
Joakim Hove
0e0c72edd5
Remove stale comments
2021-10-04 12:27:03 +02:00
Joakim Hove
4aea8cd584
Add network member to ScheduleState::operator==()
2021-10-04 12:23:42 +02:00
Joakim Hove
3ca639e2dd
Add serialization support for WellTestState
2021-10-01 14:14:05 +02:00
Joakim Hove
bffa3a3768
Extracted buffer test class to separate compilation unit for reuse
2021-10-01 14:14:05 +02:00
Joakim Hove
cd1c40dbcb
Merge pull request #2726 from totto82/fixUnitWECON
...
fix unit item 5 and item 6 WECON
2021-10-01 14:08:50 +02:00
Tor Harald Sandve
fad9305cdc
fix unit item 5 and item 6 WECON
2021-10-01 12:55:43 +02:00
Joakim Hove
27ec5e0ea5
Merge pull request #2725 from joakim-hove/strip-actionx-cond-quotes
...
Strip the quotes when creating Actionx::Condition instance
2021-10-01 11:09:25 +02:00
Joakim Hove
21c53158ad
Strip the quotes when creating Actionx::Condition instance
2021-09-30 17:17:50 +02:00
Joakim Hove
bd4386c79b
Merge pull request #2723 from totto82/openComp
...
add method that open all completions
2021-09-30 16:43:29 +02:00
Tor Harald Sandve
cc24920ff9
add method that open all completions
2021-09-30 11:46:19 +02:00
Joakim Hove
9a2a4036de
Merge pull request #2720 from joakim-hove/wtest-overwrite
...
WTEST - consecutive keywords overwrite instead of updating
2021-09-30 10:31:23 +02:00
Bård Skaflestad
05bac5f59a
Merge pull request #2719 from OPMUSER/master
...
Add WTEST to Allowed ACTIONX Keywords
2021-09-29 18:41:28 +02:00
Bård Skaflestad
53dcb5c8a0
Merge pull request #2721 from blattms/fix-fs-proximare-gcc7
...
Fix compilation with g++-7 lacking fs::proximate
2021-09-29 18:40:00 +02:00
Bård Skaflestad
7ecbf4725a
Merge pull request #2714 from jalvestad/rstfieldctrl-r
...
Improve Eclipse-compatible restart file. Output correct Guiderate control and FIELD level control
2021-09-29 17:07:08 +02:00
Markus Blatt
49bfad1779
Fix compilation with g++-7 lacking fs::proximate
...
Use Opm::prximate instead of fs::proximate. Fixes
compilation issue like
```
opm-common/src/opm/parser/eclipse/Deck/FileDeck.cpp: In member function ‘void Opm::FileDeck::dump_shared(std::ostream&, const string&) const’:
opm-common/src/opm/parser/eclipse/Deck/FileDeck.cpp:331:44: error: ‘proximate’ is not a member of ‘fs’
std::string include_file = fs::proximate(block.fname, output_dir);
```
2021-09-29 16:36:03 +02:00
Joakim Hove
05c6fb3cbd
WTEST - consecutive keywords overwrite instead of updating
2021-09-29 14:00:04 +02:00
OPMUSER
491275cfc7
Update SummaryConfigTests.cpp
2021-09-29 19:57:24 +08:00
OPMUSER
7d0bf1adde
Remove FSIP from ALL keyword Vector List
...
FSIP (Field Salt In-Place) is not part of the SUMMARY ALL keyword vector list.
2021-09-29 19:08:06 +08:00
OPMUSER
97dd24c7ee
Add WTEST to Allowed ACTIONX Keywords
...
Add WTEST to allowed ACTIONX Keywords
2021-09-29 18:54:03 +08:00
Joakim Hove
3369785c7d
Merge pull request #2715 from bska/restore-bhp-hist-limit
...
Set Appropriate Restart BHP Limit for History Wells
2021-09-28 21:52:43 +02:00
Bård Skaflestad
b97819a121
Set Appropriate Restart BHP Limit for History Wells
...
Without this we would end up with very wrong BHP limits for this
case--e.g., upper BHP limit of 1 ATM for injectors--and this would
obviously mean that restarted runs do not converge.
2021-09-28 12:01:59 +02:00
Bård Skaflestad
88b6cebb19
Fix Spelling
2021-09-28 12:01:59 +02:00
Joakim Hove
1db095c69b
Merge pull request #2717 from OPMUSER/master
...
Add WECON to Allowed ACTIONX Keywords
2021-09-28 11:57:26 +02:00
Bård Skaflestad
3c23f90cfe
Merge pull request #2711 from totto82/wtest_ref
...
return unique vector of names and not a map with wells and reason
2021-09-28 11:30:36 +02:00
OPMUSER
a0b6e7533b
Add WECON to Allowed ACTIONX Keywords
2021-09-28 16:18:35 +08:00
Tor Harald Sandve
cb6db86afe
return unique vector of names and not a map with wells and reason
2021-09-28 10:07:45 +02:00
Joakim Hove
caacf4e047
Merge pull request #2716 from joakim-hove/fix-udqstate-serialize-object
...
Fix serializeObject in UDQState
2021-09-28 09:54:02 +02:00
Joakim Hove
2edfbc42e1
Fix serializeObject in UDQState
2021-09-28 09:01:06 +02:00
Joakim Hove
b39e32a221
Merge pull request #2712 from joakim-hove/serialize-action-state
...
Serialize Action::State
2021-09-27 13:47:22 +02:00
Jostein Alvestad
77b86dfd3b
final changes for corretions to IGRP[nwgmax+WInjActiveCMode] and IGRP[nwgmax+GConInjeWInjCMode] plus similar gas inj
2021-09-27 12:24:34 +02:00
Jostein Alvestad
b97931ddd5
first changes to improve guiderate output to restart file - enums mapping
2021-09-27 12:24:32 +02:00
Arne Morten Kvarving
94d15ca921
Merge pull request #2713 from akva2/fix_rh_rst_deck
...
fix redhat packaging
2021-09-27 08:14:54 +02:00
Arne Morten Kvarving
e8a8688a48
fix redhat packaging
...
due to new man page
2021-09-27 08:14:26 +02:00
Joakim Hove
f05fbe281a
Add serializer support for UDQState
2021-09-25 11:51:34 +02:00
Joakim Hove
cb5eef07a6
Serialize Action::State
2021-09-25 08:29:27 +02:00
Arne Morten Kvarving
beb78ca1f9
Merge pull request #2710 from akva2/fix_semicolon
...
fixed: sneaky ; was supposed to be :
2021-09-24 22:27:45 +02:00
Joakim Hove
5a3eca0fe5
Merge pull request #2684 from joakim-hove/file-deck
...
rst_deck: application to create a deck prepared for restart
2021-09-24 18:46:45 +02:00
Joakim Hove
04dd44488b
Merge pull request #2709 from joakim-hove/rst-update-tuning-bug
...
Fix out of bounds write
2021-09-24 18:45:42 +02:00
Joakim Hove
cc0b9add62
Add integration testing of rst_deck
2021-09-24 14:19:25 +02:00
Joakim Hove
24f31e6358
Add application rst_deck
2021-09-24 14:19:25 +02:00
Arne Morten Kvarving
ed445c9bb2
fixed: do not keep tacking on PYTHONPATH for each build configuration
2021-09-24 14:02:11 +02:00
Joakim Hove
d94db10da4
Fix out of bounds write
2021-09-24 08:34:24 +02:00
Joakim Hove
294d98b9bd
Add container FileDeck to represent a deck with file awareness
2021-09-23 21:46:10 +02:00
Joakim Hove
a172879395
Assemble DeckTree during parse process
2021-09-23 14:24:35 +02:00
Joakim Hove
6f94580ff1
Add class DeckTree to mange include file hierarchy
2021-09-23 14:24:35 +02:00
Joakim Hove
a39c707282
Merge pull request #2705 from joakim-hove/opmhash-multi
...
Add multi deck comparison to opmhash
2021-09-23 14:23:59 +02:00
Bård Skaflestad
b807f39357
Merge pull request #2706 from joakim-hove/use-strtod
...
Use strtod
2021-09-23 11:26:34 +02:00
Joakim Hove
4910e75d63
Avoid try catch when parsing floating point numbers in UDQ
2021-09-23 10:23:25 +02:00
Joakim Hove
97455adfa6
Add utility function to parse string -> double without exception
2021-09-23 10:23:25 +02:00
Bård Skaflestad
f21239c5a7
Merge pull request #2707 from akva2/set_python_path
...
set python path in jenkins build script
2021-09-23 10:01:13 +02:00
Arne Morten Kvarving
cc4cc85361
fixed: support cmake 3.13
...
the Python3 find module only sets Python3_VERSION_XXX,
not PYTHON_VERSION_XXX
2021-09-23 08:43:30 +02:00
Arne Morten Kvarving
7a65fe951e
set python path in jenkins build script
2021-09-23 08:29:38 +02:00
Bård Skaflestad
e0e26df2ae
Merge pull request #2701 from goncalvesmachadoc/fieldInPlace
...
add field volumes in place to summary
2021-09-22 21:53:58 +02:00
Joakim Hove
1a7e2edf52
Add multi deck comparison to opmhash
2021-09-22 18:23:35 +02:00
Joakim Hove
ceb03e889d
Merge pull request #2698 from joakim-hove/load-action-state
...
Load action state
2021-09-22 12:35:52 +02:00
Joakim Hove
a8afa7a50f
Load run_count and last runtime for actionx from restart file
2021-09-22 00:27:59 +02:00
Joakim Hove
d338325147
Merge pull request #2699 from joakim-hove/numerical-month
...
Round numerical month values to integer before comparison
2021-09-22 00:27:35 +02:00
Joakim Hove
33a791d499
Merge pull request #2696 from joakim-hove/actionx-strip-quotes
...
Remove quotes before creating ACTIONX AST
2021-09-22 00:27:16 +02:00
Joakim Hove
745fe11b87
Merge pull request #2704 from joakim-hove/use-proximate
...
Use fs:proximate() due to missing fs::relative()
2021-09-21 14:59:14 +02:00
Joakim Hove
0213cbad17
Merge pull request #2702 from joakim-hove/deck-tree-commitsII
...
Deck tree commits ii
2021-09-21 13:43:05 +02:00
Joakim Hove
7f9f20b84e
Merge pull request #2700 from hakonhagland/pybind_shared
...
Use std::shared_ptr as holder type for some Pybind11 classes
2021-09-21 13:33:42 +02:00
Joakim Hove
1f0c3133c6
Use Opm::proximate() due to missing fs::relative()
2021-09-21 13:20:15 +02:00
Joakim Hove
bb5ddb477e
Mark TSTEP as keyword which should be split on output
2021-09-21 10:36:20 +02:00
Joakim Hove
ca3eae90ff
Add Deck::operator[]()
2021-09-21 10:36:20 +02:00
Joakim Hove
8fffd10ec3
Add DeckKeyword::operator[]()
2021-09-21 10:36:20 +02:00
Joakim Hove
73a3e1d095
Add methods Deck::size() and Deck::empty()
2021-09-21 10:36:20 +02:00
Joakim Hove
daaee6d2a4
Accept numerical month values when outputting ACTIONX state for rst
2021-09-20 19:05:06 +02:00
Joakim Hove
fcad042bdd
Round numerical month values to integer before comparison
2021-09-20 19:04:34 +02:00
Joakim Hove
111d1f7ea7
Merge pull request #2697 from joakim-hove/runspec-sim-start
...
Runspec sim start
2021-09-20 19:03:17 +02:00
Joakim Hove
9a8fae2a88
Merge pull request #2695 from joakim-hove/max-action-conditions
...
Check number of conditions in ACTIONX with ACTDIMS
2021-09-20 19:02:50 +02:00
Joakim Hove
87f3d039f3
Merge pull request #2693 from joakim-hove/deck-tree-commits
...
Deck tree commits
2021-09-20 19:02:09 +02:00
goncalvesmachadoc
8698d20d0f
add volumes in place to summary
2021-09-20 17:55:08 +02:00
Bård Skaflestad
05e147105e
Merge pull request #2694 from totto82/aquct15
...
add item 13 in AQUCT
2021-09-20 12:18:44 +02:00
Håkon Hægland
29c4ffcdc9
Use std::shared_ptr as holder type.
...
Use std::shared_ptr as holder type for some Pybind11 classes such that
they can be shared with opm.simulators.
2021-09-20 11:43:50 +02:00
Tor Harald Sandve
c84d52d964
add item 13 in AQUCT
2021-09-20 10:05:13 +02:00
Joakim Hove
e9c9d9b5e3
Use Runspec start_time when assembling ScheduleDeck
2021-09-19 11:23:47 +02:00
Joakim Hove
b8c09945a3
Internalize start time in Runspec
2021-09-19 11:16:25 +02:00
Joakim Hove
8d63e4f20d
Moved time related functions from ScheduleDeck to TimeService
2021-09-19 11:06:52 +02:00
Joakim Hove
67b850d086
Remove quotes before creating ACTIONX AST
2021-09-18 20:48:40 +02:00
Joakim Hove
56f5ae6558
Check number of conditions in ACTIONX with ACTDIMS
2021-09-18 18:46:12 +02:00
Joakim Hove
1ef317a66b
Normalize include file paths
2021-09-17 14:40:59 +02:00
Joakim Hove
b936b3f7d4
Normalize argument path before internalizing
2021-09-17 14:10:50 +02:00
Joakim Hove
4920b0ea3a
Disallow multiple assignments to Deck::datafile
2021-09-17 12:05:51 +02:00
Joakim Hove
0355a71abd
Merge pull request #2690 from joakim-hove/readonly-testing
...
Readonly testing
2021-09-17 12:05:32 +02:00
Arne Morten Kvarving
7894aaf073
Merge pull request #2692 from akva2/janitoring
...
fixed: use curly-braces
2021-09-17 11:06:36 +02:00
Arne Morten Kvarving
6a69a985cd
fixed: use curly-braces
...
the parantheses confused the preprocessor
2021-09-17 10:49:52 +02:00
Joakim Hove
7562781a8b
Readonly summary testing
2021-09-17 10:01:17 +02:00
Joakim Hove
ca59665575
Run ERst tests in readonly tests/
2021-09-17 10:01:17 +02:00
Joakim Hove
9478bf0292
Run EclIO tests in readonly tests/
2021-09-17 10:01:17 +02:00
Joakim Hove
41c97ad6a2
Make sure regression test testing can go in readonly tests/
2021-09-17 10:01:17 +02:00
Joakim Hove
08f9140191
Summary testing with readonly tests/
2021-09-17 10:01:17 +02:00
Joakim Hove
5b3cd8b908
Ensure RFT testing can be done in readonly tests/
2021-09-17 10:01:17 +02:00
Joakim Hove
1f8e545ea1
Make sure summary testing can be done with readonly tests/
2021-09-17 10:01:17 +02:00
Joakim Hove
2d879941fe
Ensure UDQ tests can run in readonly tests/
2021-09-17 10:01:17 +02:00
Joakim Hove
5c0aec538b
Make sure test can run in readonly tests/
2021-09-17 10:01:17 +02:00
Joakim Hove
d3cd4c73ba
Make sure tests can be run with readonly tests/
2021-09-17 10:01:17 +02:00
Joakim Hove
d938b69143
WorkArea::org_path
2021-09-17 10:01:17 +02:00
Joakim Hove
c0d7ca8136
Merge pull request #2687 from joakim-hove/rsm-cmp-zero
...
Special case comparison with zero
2021-09-16 13:38:26 +02:00
Joakim Hove
60bdfb6a93
Special case comparison with zero
2021-09-16 12:56:08 +02:00
Joakim Hove
a775808972
Merge pull request #2685 from joakim-hove/rsm-summary-compare-fix
...
Compare with startdate and not first simulation date
2021-09-15 23:58:12 +02:00
Joakim Hove
8821b27556
Special case rsm <-> summary comparison for zero values
2021-09-15 20:44:39 +02:00
Joakim Hove
8f263e637b
Merge pull request #2664 from joakim-hove/rst-actionx-keywords
...
Rst actionx keywords
2021-09-15 16:03:09 +02:00
Joakim Hove
d53984c72d
Add trailing newline to error message
2021-09-15 14:38:27 +02:00
Joakim Hove
75add72412
Load action keywords from restart file
2021-09-15 14:29:28 +02:00
Joakim Hove
a9c987b70f
Some simplification in ZLACT book keeping
2021-09-15 14:29:28 +02:00
Joakim Hove
21d1b63164
Compare with startdate and not first simulation date
2021-09-15 14:04:53 +02:00
Joakim Hove
d64d138147
Merge pull request #2660 from joakim-hove/split-udq-eval
...
Split udq eval in eval_assign() and eval_define()
2021-09-14 20:06:14 +02:00
Joakim Hove
df8e14a8ac
Throw exception if unknown UDQ is used as UDA
2021-09-14 15:58:59 +02:00
Joakim Hove
d880637a65
Utility function UDQ::controlName(UDAControl) -> std::string
2021-09-14 15:58:59 +02:00
Joakim Hove
598afb9dc9
Split udq eval in eval_assign() and eval_define()
2021-09-14 15:58:59 +02:00
Joakim Hove
4b3231c9ef
Merge pull request #2647 from joakim-hove/rst-actionx
...
Rst actionx
2021-09-14 15:54:32 +02:00
Joakim Hove
b14790f990
Merge pull request #2675 from joakim-hove/no-actnum
...
Handle GDFILE with grid without actnum
2021-09-14 15:53:24 +02:00
Joakim Hove
b319647a09
Merge pull request #2682 from akva2/janitoring
...
fixed: add missing field initializers
2021-09-14 15:52:50 +02:00
Joakim Hove
fb6aeb240f
Merge pull request #2683 from blattms/spelling-fix
...
Fixed spelling of assignment,
2021-09-14 15:52:19 +02:00
Markus Blatt
9833afbc5f
Fixed spelling of assignment,
...
Detected by linitian run on Debian package for opm-upscaling.
2021-09-14 12:27:36 +02:00
Arne Morten Kvarving
a2bef15aa1
fixed: add missing field initializers
2021-09-14 11:11:37 +02:00
Joakim Hove
7ad1f360bd
Merge pull request #2680 from joakim-hove/output-width
...
Ensure that normal keywords are not split on output
2021-09-13 17:25:46 +02:00
Joakim Hove
b31c68e830
Ensure that normal keywords are not split on output
2021-09-13 16:50:07 +02:00
Joakim Hove
507f60ec25
Merge pull request #2681 from joakim-hove/testdata-include
...
Reorganize test deck to use INCLUDE
2021-09-13 16:46:32 +02:00
Joakim Hove
6cc0cba14c
Reorganize test deck to use INCLUDE
2021-09-13 16:26:20 +02:00
Joakim Hove
0da931a7e6
Merge pull request #2661 from joakim-hove/save-correct-report-step
...
Assign SAVE keyword to previous report step
2021-09-13 15:12:56 +02:00
Joakim Hove
6c9a756d9e
Merge pull request #2671 from tskille/esmry_lgr
...
Adding support for LGR related summary vectors
2021-09-13 14:06:21 +02:00
Joakim Hove
bf7d162ce4
Load actionx from restart file
2021-09-13 11:43:26 +02:00
Torbjørn Skille
ce052232f6
update SummaryNode with lgr info
2021-09-13 11:38:41 +02:00
Joakim Hove
e7aa8fda54
Merge pull request #2678 from joakim-hove/remove-parser-output
...
Remove debug output from parser keyword generation
2021-09-13 11:16:12 +02:00
Joakim Hove
8b5475b98b
Merge pull request #2677 from joakim-hove/actionx-enable-gconsump
...
Enable keywords as ACTIONX keywords
2021-09-13 11:03:42 +02:00
Joakim Hove
c61e3adb86
Remove debug output from parser keyword generation
2021-09-13 10:46:37 +02:00
Joakim Hove
aefb78e078
Enable keywords as ACTIONX keywords
2021-09-13 10:38:00 +02:00
Joakim Hove
efaa613368
Add testdata for restart load testing of ACTIONX
2021-09-13 10:33:32 +02:00
Joakim Hove
de942d91b6
Load ACTIONX conditions from restart file
2021-09-13 10:33:32 +02:00
Joakim Hove
974c53fcd1
Add comment about content of ACTIONX related INTEHEAD parameters
2021-09-13 10:18:35 +02:00
Joakim Hove
539c86c21c
Move action condition related enums to separate compilation unit
2021-09-13 10:18:35 +02:00
Joakim Hove
de00a53190
White space
2021-09-13 10:18:35 +02:00
Joakim Hove
3ffff5b65d
Merge pull request #2669 from jalvestad/rst_improvement
...
Add correct value for SACT[4] - equal to last time that the action was triggered
2021-09-13 09:52:41 +02:00
Joakim Hove
00bd0866f2
SAVE keyword should apply to previous timestep
2021-09-13 09:26:00 +02:00
Joakim Hove
1216b4f638
Remove restart schedule testing of possibly dubious quality
2021-09-13 09:10:53 +02:00
Joakim Hove
a1f8585395
Handle GDFILE with grid without actnum
2021-09-13 09:00:16 +02:00
Torbjørn Skille
e4c324dcef
Adding support for LGR related summary vectors
2021-09-13 08:37:35 +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
34ab3d8bd7
Merge pull request #2668 from joakim-hove/igph-rst-size
...
Unconditonally use number of groups for IGPH restart vector
2021-09-12 08:35:51 +02:00
Joakim Hove
fe22a67670
Merge pull request #2666 from joakim-hove/rst-nothing
...
Protect against unset optional when checking restart config
2021-09-12 08:35:33 +02:00
Joakim Hove
c7237dbc36
Merge pull request #2670 from joakim-hove/udq-trailing-comments
...
Special case treatment of trailing slash for UDQ keywords
2021-09-12 08:35:18 +02:00
Joakim Hove
9bad260538
Special case treatment of trailing slash for UDQ keywords
2021-09-11 08:29:42 +02:00
Joakim Hove
4dfe80b493
Merge pull request #2663 from joakim-hove/rst-add-parser-argument
...
Add Parser argument to restart loader
2021-09-10 16:27:42 +02:00
Joakim Hove
a289bc790e
Ensure that temporary igph vector is allocated with correct size
2021-09-10 16:16:33 +02:00
Joakim Hove
8790dc5524
Merge pull request #2665 from joakim-hove/has-gpmaint
...
Add small utility function to check for gpmaint across groups
2021-09-10 14:45:27 +02:00
Jostein Alvestad
59b1166682
Added correction to handle actions that has not been run, plus unit test for SACT[4]
2021-09-10 14:44:39 +02:00
Joakim Hove
5358aa5485
Protect against unset optional when checking restart config
2021-09-10 12:45:54 +02:00
Jostein Alvestad
d9f7c89ecb
added sAct[4] = last time that the action was triggered
2021-09-10 08:40:40 +02:00
Joakim Hove
8787078f4b
Add small utility function to check for gpmaint across groups
2021-09-09 16:31:13 +02:00
Joakim Hove
7e3d910823
Add begin() and end() const iterators for ScheduleState::map_member
2021-09-09 16:21:33 +02:00
Joakim Hove
54e1345d45
Add Parser argument to restart loader
2021-09-09 12:48:41 +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
6e13564832
Merge pull request #2658 from joakim-hove/time-point-utility
...
Utility function to create time_point from UTC timestamp
2021-09-08 14:00:55 +02:00
Joakim Hove
206fe1cf69
Utility function to create time_point from UTC timestamp
2021-09-08 13:58:45 +02:00
Joakim Hove
6a684235d2
Merge pull request #2656 from joakim-hove/action-rst-const
...
Action rst const
2021-09-08 08:36:13 +02:00
Bård Skaflestad
b101ea885a
Merge pull request #2657 from tskille/esmry_fix
...
fixing bug in Opm::EclIO::ESmry constructor
2021-09-07 23:58:34 +02:00
Torbjørn Skille
c900462edb
fixing bug in Opm::EclIO::ESmry constructor
...
- changed behaviour when opening summary file from restart run
- will now work with loadBaseRunData=false and original base run folder
not found.
2021-09-07 22:49:48 +02:00
Joakim Hove
d281881448
rst: use named constants for actionx condition information
2021-09-07 12:40:23 +02:00
Joakim Hove
9cff0dae26
Merge pull request #2655 from joakim-hove/rst-actionx-commits
...
Rst actionx commits
2021-09-07 08:44:46 +02:00
Joakim Hove
1eaa527725
Implement Actions::operator[]
2021-09-06 20:02:04 +02:00
Joakim Hove
7284c250b3
Make number of restart items for ACTIONX public
2021-09-06 20:02:04 +02:00
Joakim Hove
972136c98b
Add method sim_time() in rst::header
2021-09-06 20:02:04 +02:00
Joakim Hove
cc05d493c0
Add utility function to format double
2021-09-06 19:43:16 +02:00
Joakim Hove
02b7e9ae04
Add mapping int -> string for month names
2021-09-06 19:42:51 +02:00
Joakim Hove
6b26dea23a
Merge pull request #2652 from joakim-hove/rst-actionx-commits
...
Rst actionx commits
2021-09-06 16:40:26 +02:00
Joakim Hove
0b97a8bcae
Merge pull request #2651 from joakim-hove/add-runspec-arg
...
Add const Runspec& argument to restart loader
2021-09-06 16:40:11 +02:00
Bård Skaflestad
531090bdab
Merge pull request #2653 from akva2/janitoring
...
remove unused variable
2021-09-06 09:58:30 +02:00
Arne Morten Kvarving
b902867328
remove unused variable
2021-09-06 09:15:00 +02:00
Joakim Hove
f3fc5c7d76
Remove context aware rst testing from regression tester
2021-09-06 08:20:54 +02:00
Joakim Hove
e73b6a053e
Use month names from TimeService
2021-09-06 08:20:54 +02:00
Joakim Hove
5b89ba16fb
Add functions to convert Action::Condition::Comparator <-> int
2021-09-06 08:20:54 +02:00
Joakim Hove
b35e78df9f
Introduce convenience functions to convert int <-> Actionx OR/AND
2021-09-06 08:20:54 +02:00
Joakim Hove
e3685eeb34
Introduce predicated Condition::date() for Actionx output
2021-09-06 08:20:54 +02:00
Joakim Hove
a49758af62
Remove unused argument
2021-09-06 08:16:13 +02:00
Joakim Hove
fcca036af4
Remove context aware rst testing from regression tester
2021-09-04 19:51:10 +02:00
Joakim Hove
04a44657d6
Add const Runspec& argument to restart loader
2021-09-04 19:42:31 +02:00
Joakim Hove
d060d92268
Merge pull request #2649 from joakim-hove/actdims-rename
...
Rename actDims in AggregateActionxData
2021-09-04 19:10:47 +02:00
Joakim Hove
4b0df44879
Merge pull request #2650 from jalvestad/ighp-unit-test
...
Unit test for IGPH
2021-09-04 19:00:25 +02:00
Joakim Hove
d904ab6108
Rename actDims -> action_rst_dims + refactor Actionx restart
2021-09-04 18:13:11 +02:00
Joakim Hove
e75b6167ef
Split Actions::size() in py_size() and ecl_size()
2021-09-03 14:05:43 +02:00
Jostein Alvestad
1d3415d07a
added unit tests for IGPH
2021-09-03 13:29:18 +02:00
Tor Harald Sandve
08e22740d8
Merge pull request #2648 from joakim-hove/group-has-injection-control
...
Use Group class to query for controls
2021-09-03 07:32:28 +02:00
Joakim Hove
51213a30b5
Remove has_control() method from Injection and Production controls
2021-09-02 22:24:16 +02:00
Joakim Hove
09becfbb7f
Include target control in GPMaint when acessing group
2021-09-02 22:08:51 +02:00
Joakim Hove
038c1946c7
Use Group class to query for injection controls
2021-09-02 16:21:08 +02:00
Bård Skaflestad
a3ccf0118b
Merge pull request #2645 from akva2/fix_thread_stupid
...
fixed: do not assign value to nonexistent variable
2021-09-02 11:42:54 +02:00
Arne Morten Kvarving
a2d5b83dbc
fixed: do not assign value to nonexistent variable
2021-09-02 10:36:18 +02:00
Tor Harald Sandve
9af5108421
Merge pull request #2643 from joakim-hove/gpmaint-state
...
Gpmaint state
2021-09-02 08:02:25 +02:00
Joakim Hove
81f5ec72e9
Merge pull request #2642 from joakim-hove/schedule-rename-runtime
...
Schedule rename runtime
2021-09-02 07:16:13 +02:00
Joakim Hove
5d8053c134
Add inner class State to GPMaint and GPMaint::rate() method
2021-09-01 21:19:53 +02:00
Joakim Hove
46d92d4701
Add report step member to GPMaint class
2021-09-01 16:02:23 +02:00
Joakim Hove
39938be2c3
Rename HandlerContext::runtime
...
When replaying the Schedule keywords due to ACTIONX only the actual ACTIONX
keywords should be involved with the runtime flag set to true. The rest of the
deck should be evaluated in the normal way.
2021-09-01 15:44:25 +02:00
Joakim Hove
100f6e96d1
Add small function Schedule::end_report()
2021-09-01 15:43:52 +02:00
Bård Skaflestad
84c0f73a33
Merge pull request #2640 from goncalvesmachadoc/radial
...
fix bug radial
2021-09-01 09:37:36 +02:00
Cintia Goncalves Machado
08c4cebced
fix bug radial
2021-09-01 00:01:18 +02:00
Joakim Hove
60971f21e8
Merge pull request #2620 from joakim-hove/uda-rst
...
Uda rst
2021-08-31 16:48:03 +02:00
Markus Blatt
44c612ef7a
Merge pull request #2639 from bska/fix-signed-vs-unsigned
...
Fix "Signed vs. Unsigned" Comparison Warning
2021-08-31 14:32:16 +02:00
Bård Skaflestad
17e3c9ce63
Fix "Signed vs. Unsigned" Comparison Warning
...
Use range-for instead of a counted loop. While here, also mark a
few objects as 'const' to avoid inadvertent modifications.
2021-08-31 12:48:25 +02:00
Joakim Hove
5e2bff42cf
Update UDA properties from restart file
2021-08-31 12:48:01 +02:00
Joakim Hove
d8d6749337
Load active UDA's from restart file
2021-08-31 11:20:12 +02:00
Joakim Hove
fd010c1370
Add testdata for UDA restart testing
2021-08-31 11:20:12 +02:00
Joakim Hove
dca7775997
Merge pull request #2633 from joakim-hove/uda-ig-phase
...
Ensure that UDA is only active for one phase in restart file
2021-08-31 11:19:09 +02:00
Bård Skaflestad
7a2f2bd23a
Merge pull request #2635 from tskille/ecloutput_update
...
Update of class EclOutput
2021-08-31 10:03:58 +02:00
Joakim Hove
89d7507bfa
Merge pull request #2638 from joakim-hove/summary-action-keys-month-names
...
Intercept month keywords earlier in Summary creation
2021-08-30 19:43:15 +02:00
Joakim Hove
5b8d24bf2f
Intercept month keywords earlier in Summary creation
2021-08-30 17:32:41 +02:00
Markus Blatt
657f04cd28
Merge pull request #2631 from blattms/dune-2.8-metis
...
Fix FindMETIS for DUNE 2.8.
2021-08-30 16:23:55 +02:00
Torbjørn Skille
a9ba936f6a
update of class EclOutput
...
- significant improvements on performance
- writing blocks of data from disk, rather that one by one element
2021-08-30 15:57:53 +02:00
Joakim Hove
50cb0b5da2
Merge pull request #2636 from bska/segmet-wct
...
Support Segment-Level Water Cut Summary Vector
2021-08-30 09:53:07 +02:00
Bård Skaflestad
b251d5dfe6
Support Segment-Level Water Cut Summary Vector
2021-08-29 21:08:42 +02:00
Bård Skaflestad
1858362ce7
Merge pull request #2634 from tskille/eclfile_update
...
update of base class EclFile
2021-08-27 23:06:31 +02:00
Bård Skaflestad
2e1c65e515
Merge pull request #2565 from goncalvesmachadoc/fsip
...
add FSIP to summary
2021-08-27 22:43:52 +02:00
Torbjørn Skille
83b5c99135
update of base class EclFile
...
- significant improvements on performance
- reading blocks of data from disk, rather that one by one element
- using block sizes defined in Opm::EclIO::EclIOdata.hpp
updates of EGrid::get_zcorn_from_disk
- using same approach as for EclFile
- also minor change in EGrid api
2021-08-27 20:21:46 +02:00
Cintia Goncalves Machado
65017f3855
add FSIP to test
2021-08-27 13:13:48 +02:00
Joakim Hove
bbba7661a1
Ensure that UDA is only active for one phase in restart file
2021-08-27 11:58:09 +02:00
Joakim Hove
de6997847d
Add function to check if GroupInjectionProperties is UDA enabled
2021-08-27 11:55:24 +02:00
Joakim Hove
4604c2b0c8
Merge pull request #2632 from joakim-hove/uda-rst-commits
...
Uda rst commits
2021-08-27 11:36:42 +02:00
Cintia Goncalves Machado
7520e95276
outputFSIP
2021-08-26 18:31:56 +02:00
Joakim Hove
cb6e6164a3
Add operator== to Well::ProductionControls and init struct members
2021-08-26 18:30:29 +02:00
Joakim Hove
8dfa1cdd2b
Refactor test
2021-08-26 18:30:29 +02:00
Bård Skaflestad
06ad830769
Merge pull request #2629 from jalvestad/actionrst-improvement
...
Corrections to Actionx data IACT, SACT
2021-08-26 17:56:11 +02:00
Joakim Hove
bf5e63f8cf
Add Group::injectionProperties(Phase) accessor
2021-08-26 17:24:51 +02:00
Markus Blatt
0056e0a2a1
Fix FindMETIS for DUNE 2.8.
...
With version 2.8 DUNE will specify imported target METIS::METIS for
the linker and introduces a METIS_API_VERSION to distinguish different
versions. This patch introduces these to the find module used by OPM.
2021-08-26 15:08:27 +02:00
Jostein Alvestad
1715bfc4e4
removed comments from UDQ_ACTIONX_TEST1.DATA
2021-08-26 12:22:15 +02:00
Jostein Alvestad
86a85b5b24
added unit tests and modified input data accordingly
2021-08-26 12:17:40 +02:00
Jostein Alvestad
f3fbd44b4b
changes to allow for opm/units
2021-08-26 12:17:38 +02:00
Jostein Alvestad
30109c1722
correction of units for SACT[3]
2021-08-26 12:17:36 +02:00
Jostein Alvestad
4705cf7eb9
corrections to IACT[2], SACT[3]
2021-08-26 12:17:35 +02:00
Bård Skaflestad
961190c723
Merge pull request #2628 from goncalvesmachadoc/outputVolume
...
Add reservoir volumes to Inplace
2021-08-26 10:21:02 +02:00
Bård Skaflestad
87041776ce
Merge pull request #2626 from joakim-hove/normal-summmary-keys
...
Normal summmary keys
2021-08-25 22:16:17 +02:00
Bård Skaflestad
c2444681d7
Merge pull request #2627 from joakim-hove/udq-units
...
Make sure to assign UDQ units for udq loaded from restart file
2021-08-25 21:35:25 +02:00
Cintia Goncalves Machado
6e386d6245
add reservoir volumes to Inplace
2021-08-25 18:25:10 +02:00
Joakim Hove
9257610869
Make sure to assign UDQ units for udq loaded from restart file
2021-08-25 16:16:54 +02:00
Joakim Hove
3867cde543
Merge pull request #2616 from akva2/default_asserts
...
changed: default to asserts enabled in release mode
2021-08-25 09:42:10 +02:00
Joakim Hove
a07ab41a73
Refactor summary configuration of time vectors to reuse from ACTIONX
2021-08-25 07:29:30 +02:00
Joakim Hove
69e1101b35
Remove automatic DAY, YEAR and MONTH from SummaryState
2021-08-25 06:57:17 +02:00
Joakim Hove
cda7bd3740
Use normal summary keys for time related properties
2021-08-25 06:52:47 +02:00
Joakim Hove
31fa88b53e
Merge pull request #2621 from tskille/extesmry
...
Adding python bindings for class ExtESmry
2021-08-24 23:24:32 +02:00
Joakim Hove
797c1cbde8
Merge pull request #2624 from akva2/janitoring
...
Some janitoring
2021-08-24 11:02:42 +02:00
Arne Morten Kvarving
41867b55fe
reduce scope of variables
...
also use .empty() instead of comparing strings to ""
2021-08-24 09:33:22 +02:00
Arne Morten Kvarving
2d20087f17
only declare variable when required
2021-08-24 09:33:22 +02:00
Arne Morten Kvarving
add60560ee
pass by const reference
2021-08-24 09:33:22 +02:00
Joakim Hove
7b2b58caa8
Merge pull request #2623 from joakim-hove/actionx-pretty-print
...
Fix prefix with output from schedule parse in ACTIONX mode
2021-08-24 07:39:45 +02:00
Joakim Hove
f4eda06021
Fix prefix with output from schedule parse in ACTIONX mode
2021-08-23 23:01:08 +02:00
Torbjørn Skille
514e3a4a35
Adding python bindings for c++ class ExtESmry
...
- Used for loading data from summary file ESMRY
- python class ESmry supporting both SMSPEC/UNSMRY and ESMRY summary files.
2021-08-23 22:15:58 +02:00
Bård Skaflestad
981e977da4
Merge pull request #2495 from bska/walq
...
Implement WALQ Summary Vector
2021-08-20 21:41:31 +02:00
Bård Skaflestad
b638ba0f0e
Output WGLIR=0 Unless ALQ=GRAT
...
This reduces the risk of users misinterpreting the curves since the
unit of measure when plotting the vector will unconditionally be
surface volume rate for gas.
We will revisit this decision if we gain the ability to capture the
actual lift gas injection rate independent of ALQ type.
Suggested by: [at]tskille
2021-08-20 20:35:12 +02:00
Bård Skaflestad
2ad81c9364
Implement WALQ Summary Vector
2021-08-20 20:35:12 +02:00
Bård Skaflestad
0b5694c05b
Check ALQ Type When Accumulating Gas Lift Injection Rate
...
This commit adds a guard to the xGLIR accumulation procedure. In
particular, we do not accumulate anything unless the ALQ type is gas
rate. We do however output a well-level value if the ALQ type is
gas/liquid ratio. This guard requires passing the Schedule object
as part of the 'fn_args', so update the call sites accordingly.
2021-08-20 20:35:12 +02:00
Bård Skaflestad
fcac9edef6
Don't Copy VFP Table To Extract ALQ Type
...
We can just extract the ALQ type directly from a reference to a VFP
table instead.
2021-08-20 20:35:12 +02:00
Bård Skaflestad
6b9f0817a8
Prune Duplicate Summary Keyword
...
Keyword 'WGLIR' was already present earlier in the list.
2021-08-20 20:35:12 +02:00
Joakim Hove
c21bde269a
Merge pull request #2619 from joakim-hove/uda-rst-trivial
...
Uda rst trivial
2021-08-20 15:43:45 +02:00
Joakim Hove
815606651e
Slightly simplify logic test
2021-08-20 14:29:45 +02:00
Joakim Hove
aff9cb74d1
Add UDQConfig::operator[](std::size_t insert_index)
2021-08-20 14:29:45 +02:00
Joakim Hove
3ab7179305
Add UDQInput::operator==
2021-08-20 14:29:45 +02:00
Joakim Hove
d2b1c99663
Use std::variant instead of pointers
2021-08-20 14:29:45 +02:00
Joakim Hove
9a883f1907
Remove unused variable - check vector size directly
2021-08-20 14:29:44 +02:00
Joakim Hove
cdb92013dd
Add function to convert from integer code to UDAControl type
2021-08-20 14:29:16 +02:00
Joakim Hove
5e60927477
Rename uad -> uda
2021-08-20 14:29:16 +02:00
Joakim Hove
c087c725b6
Remove unused members wg_keys and udq_keys from UDQActive
2021-08-20 14:29:16 +02:00
Joakim Hove
c4896a0f49
Add missing this->
2021-08-20 14:29:16 +02:00
Joakim Hove
e1ff4b4682
Rename UDQActive::Record -> UDQActive::OutputRecord
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
f5f3957177
Merge pull request #2617 from tskille/egrid_mapaxes
...
Adding support for handling MAPAXES and MAPUNITS
2021-08-20 13:12:15 +02:00
Bård Skaflestad
fe27c58b0b
Merge pull request #2526 from bska/restart-load-analytic-aquifer
...
Load Analytic Aquifer Objects From Restart File
2021-08-19 22:29:36 +02:00
Bård Skaflestad
6db9e150e1
Merge pull request #2618 from joakim-hove/store-action-results
...
Store action results
2021-08-19 20:48:49 +02:00
Bård Skaflestad
0d35d64aea
Load Analytic Aquifer Objects from Restart File
...
This commit adds support for creating the analytic aquifer objects
Opm::AquiferCT
Opm::Aquifetp
Opm::Aquancon
Opm::AquiferConfig
from information stored in the restart vectors
{I,S,X}AAQ
{I,S}CAQ
We add a new helper class
Opm::RestartIO::RstAquifer
which contain the same data members as the '*_data' structures of
the analytic aquifer objects. Those analytic aquifer objects then
get friendship from the '*_data' structures in order to assign the
private members from the corresponding restart information. We
finally add a gateway to EclipseState that consumes an RstAquifer
instance and overwrites the internal AquiferConfig object when the
restarted run contains analytic aquifers.
Update RstState constructor API to meet requirements of RstAquifer,
notably by adding an EclipseGrid parameter. That in turn is needed
by the RstAquifer to translate connection (I,J,K) tuples to active
cell IDs.
Note that if an analytic aquifer does not have any connections then
this facility will not load said aquifer. That may be a problem
when plotting summary curves, but we will address the issue later if
it comes up.
2021-08-19 20:34:19 +02:00
Bård Skaflestad
d1b1cebdf5
Support Retrieving Non-Zero Restart Vector Occurrence
...
Needed to load connection information for analytic aquifers (xCAQ).
2021-08-19 20:34:19 +02:00
Bård Skaflestad
e4a485844f
Load Numeric Aquifer Data From Restart File
...
Needed to get continuous 'ANQT' curves in restarted runs.
2021-08-19 20:34:19 +02:00
Joakim Hove
9862d88b12
Remove unused UDQActive::operator[]
2021-08-19 17:01:31 +02:00
Joakim Hove
ec66eeee17
Remove trailing whitespace
2021-08-19 16:21:27 +02:00
Joakim Hove
3c434b2d49
Use const ref
2021-08-19 16:21:27 +02:00
Joakim Hove
41ea258752
Use fmt to create error messages
2021-08-19 16:21:27 +02:00
Joakim Hove
86311f3735
Use stored Action result when updating ZWEL
2021-08-19 15:53:31 +02:00
Torbjørn Skille
445a329785
adding support for handling MAPAXES and MAPUNITS
2021-08-19 15:35:26 +02:00
Joakim Hove
957f540d17
The Action::State will store the last Action::Result instance
2021-08-19 15:29:15 +02:00
Joakim Hove
c6540d6f5b
Add operator== to Action::Result
2021-08-19 15:28:47 +02:00
Joakim Hove
a63341db79
Implement optional semantics with std::optional
2021-08-19 14:28:17 +02:00
Joakim Hove
1940ab20a8
Add typedef for convenience
2021-08-19 14:15:14 +02:00
Arne Morten Kvarving
7f84696bc9
changed: default to asserts enabled in release mode
2021-08-19 13:03:25 +02:00
Arne Morten Kvarving
e291234e04
Merge pull request #2594 from akva2/fix_ndebug
...
fixed: make WITH_NDEBUG cmake option work again
2021-08-19 13:02:10 +02:00
Joakim Hove
ae8671455c
Merge pull request #2613 from akva2/refactor_test_update_params
...
changed: pass more information as parameters
2021-08-19 10:08:38 +02:00
Joakim Hove
66de0ed235
Merge pull request #2608 from joakim-hove/skiprest-nug
...
Skiprest bug
2021-08-18 18:26:37 +02:00
Bård Skaflestad
51ee6ffd16
Merge pull request #2611 from akva2/fix_proximate
...
fix build with gcc7
2021-08-18 17:53:20 +02:00
Joakim Hove
658e14667d
Merge pull request #2614 from joakim-hove/use-summary-get-well-var
...
Use SummaryState::get_well_var() with default
2021-08-18 17:08:52 +02:00
Joakim Hove
69c9faefcc
Use SummaryState::get_well_var() with default
2021-08-18 16:17:55 +02:00
Arne Morten Kvarving
2f3733b615
fix build with gcc7
...
the filesystem ts did not include proximate. implement
a poor man's version (copied from libstdc++, slightly modified)
and use this when necessary
2021-08-18 15:33:02 +02:00
Arne Morten Kvarving
91816c2b53
changed: pass more information as parameters
...
the use of environment variables makes it less flexible
2021-08-18 13:48:53 +02:00
Joakim Hove
d37389720f
Fix bug for time-stepping when loading restart deck
2021-08-18 13:40:21 +02:00
Joakim Hove
719b05e93b
Improve error message when scanning past restart date
2021-08-18 13:40:21 +02:00
Joakim Hove
34f9d88c32
Renamed test deck
2021-08-18 13:40:21 +02:00
Joakim Hove
a646794882
Merge pull request #2612 from bska/restore-group-quant
...
Load Active Constraints and Guide Rates at Group Level
2021-08-18 13:11:02 +02:00
Joakim Hove
a53a1d871e
Load Active Constraints and Guide Rates at Group Level
...
Needed to initialise restarted runs.
2021-08-18 09:37:42 +02:00
Bård Skaflestad
a1619543f3
Refactor Group Cumulative Loading
...
Reduces duplication.
2021-08-18 09:33:38 +02:00
Joakim Hove
8acda9b023
Merge pull request #2610 from joakim-hove/skiprest-bug-trivial
...
Skiprest bug trivial
2021-08-17 11:30:13 +02:00
Joakim Hove
8c43916751
Updates to Schedule logger utility class
2021-08-17 10:35:21 +02:00
Joakim Hove
b8565ee46c
Add info message when adding group and well from restart file
2021-08-17 09:22:36 +02:00
Joakim Hove
f25c71b8f3
Merge pull request #2597 from bska/rptonly
...
Add Support for RPTONLY and RPTONLYO
2021-08-17 09:21:02 +02:00
Bård Skaflestad
d216de77ea
Add Support for RPTONLY and RPTONLYO
...
This former restricts summary output events to coincide with the
report step while the latter (*O) turns off this restriction and
makes summary output for every timestep.
2021-08-16 20:50:08 +02:00
Bård Skaflestad
114eec30c5
Merge pull request #2609 from tskille/fix_ExtESmry
...
fixing bug in ExtESmry
2021-08-16 20:46:42 +02:00
Torbjørn Skille
3f1a89069d
fixing bug in ExtESmry
...
- segfault when loading more that one vector
- test ExtESmry updated, now failing without this fix
2021-08-16 19:47:59 +02:00
Joakim Hove
2cf17408e9
Merge pull request #2605 from bska/report-siunits-guiderates
...
Add Guiderate Value Accessor for SI Units
2021-08-16 16:51:30 +02:00
Bård Skaflestad
2a374fc53b
Add Guiderate Value Accessor for SI Units
...
This is mostly for reporting purposes if the calling code knows that
the values stored in the GuideRate container are in output units.
The output layer, and particularly the Summary facility, expects
that its input values are strictly SI.
2021-08-16 12:26:09 +02:00
Bård Skaflestad
612cbf749c
Merge pull request #2607 from akva2/janitoring
...
Some more SCA warning cleanup
2021-08-16 12:24:56 +02:00
Joakim Hove
52acaa3757
Merge pull request #2603 from bska/protect-import-container-from-multiple-inclusion
...
Add Include Guards to Protect From Multiple Inclusion
2021-08-16 11:34:27 +02:00
Arne Morten Kvarving
f7a143c604
pass by const ref
2021-08-16 11:06:00 +02:00
Bård Skaflestad
210e09f981
Add Include Guards to Protect From Multiple Inclusion
...
While here, also use a more efficient way of forming a
vector<double> from a vector<float> source.
2021-08-16 11:03:38 +02:00
Arne Morten Kvarving
e25667dc71
mark constructor explicit
2021-08-16 10:57:22 +02:00
Arne Morten Kvarving
7560d7fd7c
make EclipseState constructor explicit
...
and adjust test code
2021-08-16 10:57:22 +02:00
Arne Morten Kvarving
155c8fbcdb
make Aquifer constructors explicit
...
and adjust test code
2021-08-16 10:57:22 +02:00
Arne Morten Kvarving
1463266ba6
initialize member
2021-08-16 10:57:22 +02:00
Bård Skaflestad
92b1c6cb45
Merge pull request #2606 from tskille/cleanup_esmry
...
cleanup after renaming from LODSMRY -> ESMRY
2021-08-16 10:40:26 +02:00
Torbjørn Skille
c6ff9bba00
cleanup after renaming from LODSMRY -> ESMRY
2021-08-16 09:10:00 +02:00
Bård Skaflestad
f89d3fe75a
Merge pull request #2590 from tskille/write_lodsmry
...
Support for writing ESMRY file
2021-08-12 21:29:45 +02:00
Bård Skaflestad
6801ac1a3d
Merge pull request #2604 from akva2/janitoring
...
Quell some static analysis warnings
2021-08-12 20:36:21 +02:00
Torbjørn Skille
46693aec47
Adding support for writing esmry
...
- command line option --enable-esmry, default = false
- complete re-write of esmry file for every time step
Updating of class ESmry
- remove automatic loading from ESMRY
2021-08-12 19:17:07 +02:00
Arne Morten Kvarving
f44e56d101
use std::copy
2021-08-12 15:42:34 +02:00
Arne Morten Kvarving
ad9de78253
mark some constructors explicit
2021-08-12 15:36:25 +02:00
Arne Morten Kvarving
a3ca314832
use initializer list
2021-08-12 15:34:55 +02:00
Bård Skaflestad
d9dc2f3dd8
Merge pull request #2602 from tskille/egrid_update
...
Adding member function getXYZ_layer to EGrid
2021-08-12 12:19:02 +02:00
Torbjørn Skille
9a5937ae29
Adding member function getXYZ_layer to EGrid
...
- getting xyz values from EGrid file
- partially loading ZCORN array, loading only z-values associated with selected layer
- will be used by resinsight, user interface discussed with Ceetron
2021-08-12 08:47:31 +02:00
Bård Skaflestad
8bcd1b8f83
Merge pull request #2600 from asnyv/import_paths
...
Support PATHS in IMPORT keyword
2021-08-11 21:33:40 +02:00
Bård Skaflestad
4aafd43871
Merge pull request #2601 from akva2/janitoring
...
Some janitoring
2021-08-11 21:02:17 +02:00
Asgeir Nyvoll
1a2f6cae46
Support PATHS in IMPORT keyword
2021-08-11 15:02:32 +02:00
Arne Morten Kvarving
a76cf5cdb3
replace NULL with nullptr
2021-08-11 14:46:49 +02:00
Arne Morten Kvarving
8b539a46fc
trim some whitespace and fix a typo
2021-08-11 14:46:48 +02:00
Bård Skaflestad
f373afd526
Merge pull request #2596 from bska/refactor-sumthin
...
Refactor SUMTHIN Implementation
2021-08-09 18:18:10 +02:00
Bård Skaflestad
509878eb49
Refactor SUMTHIN Implementation
...
Report steps do not influence the SUMTHIN intervals and the special
value
SUMTHIN
0.0 /
turns off the "thinning" process. This refactoring introduces a new
helper variable, sumthin_active_, which caches whether SUMTHIN is
active (i.e., exists and has strictly positive value).
While here, also ensure that the ministep IDs have non-unit steps
when SUMTHIN ends up skipping an output event.
2021-08-09 17:59:13 +02:00
Joakim Hove
e6d7081950
Merge pull request #2582 from joakim-hove/igrp-simplification2
...
Igrp simplification2
2021-08-05 08:55:08 +02:00
Joakim Hove
edb4100457
Merge pull request #2580 from joakim-hove/zudl-roundtrip
...
Normalise input data in UDQ definitions
2021-08-05 08:54:39 +02:00
Joakim Hove
3502bbdc7f
Merge pull request #2595 from goncalvesmachadoc/enablePrecSalt
...
add enable PRECSALT
2021-08-05 00:15:56 +02:00
Cintia Goncalves Machado
c5a5bb2f1d
add enable PRECSALT
2021-08-04 16:24:58 +02:00
Bård Skaflestad
ee4987bf20
Merge pull request #2592 from akva2/janitoring
...
changed: use std::vector<char> instead of raw char arrays
2021-08-04 15:53:52 +02:00
Bård Skaflestad
fc378d510e
Merge pull request #2591 from goncalvesmachadoc/VAPWAT
...
Add enable WATVAP
2021-08-04 15:50:13 +02:00
Arne Morten Kvarving
1d4a3cc655
fixed: make WITH_NDEBUG cmake option work again
...
cmake now adds -DNDEBUG to default CXX flags
invert logic and use -UNDEBUG to remove instead
2021-08-04 15:21:37 +02:00
Cintia Goncalves Machado
0427f45163
fix;
2021-08-04 13:35:21 +02:00
Arne Morten Kvarving
328882e820
changed: use std::vector<char> instead of raw char arrays
...
also fixes a harmless error where delete was used instead of delete[]
2021-08-04 13:03:31 +02:00
Joakim Hove
cbe2ba52fc
Use common function injectionGroup for both gas and water
2021-08-04 12:24:02 +02:00
Cintia Goncalves Machado
830cb81620
addEnableWATVAP
2021-08-04 12:23:17 +02:00
Joakim Hove
af3679980d
More shuffling about
2021-08-04 12:05:56 +02:00
Joakim Hove
a6ba80068b
Split out if (cgroup) { ... }
2021-08-04 12:05:56 +02:00
Joakim Hove
579463c2a0
Introduce local bool variable
2021-08-04 12:05:56 +02:00
Joakim Hove
01b93b15ec
Remove extra assignment
2021-08-04 12:05:56 +02:00
Joakim Hove
5369e4021b
Minor white space shuffle about
2021-08-04 12:05:56 +02:00
Joakim Hove
2c6f37bd88
Merge pull request #2587 from joakim-hove/guiderat-delay-throw
...
Delay error condition to GuideRateModel::eval() time
2021-08-04 11:52:52 +02:00
Joakim Hove
89d41ec087
Merge pull request #2585 from joakim-hove/validate-compord
...
Support 'DEPTH' ordering in COMPORD
2021-08-04 11:52:32 +02:00
Joakim Hove
3db1cfd8e5
Merge pull request #2584 from joakim-hove/irrevers-thpres
...
Support EQLOPTS option IRREVER in THPRES keyword
2021-08-04 10:07:04 +02:00
Joakim Hove
2fa5c48679
Support EQLOPTS option IRREVER in THPRES keyword
2021-08-04 07:55:36 +02:00
Joakim Hove
4a415e7ebf
Support DEPTH ordering in COMPDAT
2021-08-04 07:54:54 +02:00
Joakim Hove
c0601e183b
Do not trap invalid COMPORD input
2021-08-04 07:54:54 +02:00
Joakim Hove
1726ad8090
Delay error condition to GuideRateModel::eval() time
2021-08-04 07:54:12 +02:00
Joakim Hove
d36e5a86a2
Merge pull request #2586 from joakim-hove/foam-validation
...
Enforce keyword requirement with "requires": []
2021-08-04 07:53:15 +02:00
Joakim Hove
e61f47600d
Merge pull request #2588 from joakim-hove/handle-gridunit
...
GRIDUNIT
2021-08-04 07:53:00 +02:00
Joakim Hove
324f55684b
Merge pull request #2581 from joakim-hove/rst-cumulatives
...
Unconditionally store both production and injection cumulatives
2021-08-03 21:49:32 +02:00
Joakim Hove
36fbd90151
Merge pull request #2576 from joakim-hove/multiple-welsegs
...
Multiple welsegs
2021-08-03 21:49:18 +02:00
Joakim Hove
729631cd2a
Merge pull request #2575 from joakim-hove/skiprest
...
Skiprest
2021-08-03 21:48:51 +02:00
Joakim Hove
af03d417bb
Unconditionally store both production and injection cumulatives
2021-08-03 18:29:34 +02:00
Joakim Hove
691936d0fc
Allow scanning past restart date if SKIPREST is active
2021-08-03 18:28:42 +02:00
Joakim Hove
a897cfaa14
Add small struct ScheduleRestartInfo
2021-08-03 18:28:42 +02:00
Joakim Hove
f9aa081235
Remove [[maybe unused]]
2021-08-03 18:28:42 +02:00
Joakim Hove
597c7017e1
Allow for multiple WELSEGS keywords for the same well
2021-08-03 18:26:07 +02:00
Joakim Hove
106cc727c8
Allow scanning past restart date if SKIPREST is active
2021-08-03 18:26:07 +02:00
Joakim Hove
56bb0cacf3
Add small struct ScheduleRestartInfo
2021-08-03 18:26:07 +02:00
Joakim Hove
7c62eade08
Remove [[maybe unused]]
2021-08-03 18:26:07 +02:00
Joakim Hove
e4f5898457
Merge pull request #2579 from joakim-hove/rock-size
...
Set keyword size of ROCK to UNKNOWN
2021-08-03 18:25:33 +02:00
Joakim Hove
acbabab232
Merge pull request #2578 from joakim-hove/vfpprod-lookup
...
Check that VFP table exists before deref ...
2021-08-03 18:25:19 +02:00
Joakim Hove
342b5dfb8d
Merge pull request #2589 from joakim-hove/sumthin
...
Sumthin
2021-08-03 18:24:23 +02:00
Joakim Hove
c13edd0826
Handle GRIDUNIT in deck input
2021-08-03 18:22:32 +02:00
Joakim Hove
e9ca60944d
Fix typo
2021-08-03 18:15:26 +02:00
Joakim Hove
7c986e6891
Simplify setting of FOAM options
2021-08-03 18:10:57 +02:00
Joakim Hove
04a4cf46d9
Enforce keyword requirement with "requires": []
2021-08-03 18:10:04 +02:00
Joakim Hove
7d1bb870aa
Check that SUMTHIN requirement is respected in summary writer
2021-08-03 14:04:18 +02:00
Joakim Hove
055efd00fc
Add SUMTHIN member to ScheduleState
2021-08-03 14:04:18 +02:00
Joakim Hove
f9c792fe35
Set keyword size of ROCK to UNKNOWN
2021-08-03 14:03:02 +02:00
Joakim Hove
cff145095f
Merge pull request #2573 from joakim-hove/refactor-keyword-size
...
Expand KeywordSize class
2021-08-03 14:02:18 +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
3853356b22
Check that VFP table exists before deref
2021-07-25 13:08:13 +02:00
Joakim Hove
2482251c3d
Specify min_size for SAVE keyword
2021-07-23 10:42:47 +02:00
Joakim Hove
946fcca4fd
Add min_size setting ParserKeywords
2021-07-23 10:42:47 +02:00
Joakim Hove
48a0d91e49
Extract all data related to keyword size in class KeywordSize
2021-07-23 10:42:47 +02:00
Joakim Hove
f17b75ab53
Merge pull request #2570 from bska/dont-manage-resources
...
Don't Manage Resources Manually
2021-07-23 10:42:20 +02:00
Joakim Hove
647cdf2190
Merge pull request #2577 from joakim-hove/keyword-size
...
Keyword size
2021-07-23 10:42:07 +02:00
Joakim Hove
bfc94a0bdb
Use keyword/item scheme with shift for TRACERKM keyword
2021-07-23 09:07:10 +02:00
Joakim Hove
f4c23b6b84
Use normal keyword/item syntax for size of ROCKPAMA keyword
2021-07-23 09:07:10 +02:00
Joakim Hove
763670635c
Use normal keyword/item scheme to specify size of ROCK
2021-07-23 09:07:10 +02:00
Joakim Hove
fb7f74f397
Merge pull request #2574 from joakim-hove/log-error
...
Log error messages from EclipseState and Schedule construction
2021-07-23 08:02:05 +02:00
Joakim Hove
d4b2902c6d
Log error messages from EclipseState and Schedule construction
2021-07-22 08:38:30 +02:00
Bård Skaflestad
80a88bea56
Use 'vector' in Place of Manual Memory Management
2021-07-20 12:25:39 +02:00
Bård Skaflestad
21fcfcc135
ESmry: Slight Refactoring
...
Mostly to reduce variable scope and make objects 'const'. While
here, also replace a number of 'std::to_string' calls with 'format'.
2021-07-20 12:25:39 +02:00
Markus Blatt
1561a8a82e
Merge pull request #2569 from bska/fix-tag-mismatch
...
Fix Mismatched Tags
2021-07-19 14:20:00 +02:00
Bård Skaflestad
d596fd5f64
Use Variable in Most Narrow Scope Only
...
This eliminiates a dead store.
2021-07-16 11:29:56 +02:00
Bård Skaflestad
5bebfed4cf
Fix Mismatched Tags
...
'RstState' is a 'struct' and should be forward declared as such.
While here, also fix a shadowing variable warning.
2021-07-16 11:29:56 +02:00
Bård Skaflestad
c72a90ef6e
Merge pull request #2572 from plgbrts/gaswater5
...
fix for two phase gas-water system
2021-07-15 11:55:31 +02:00
Paul Egberts
64051c254f
shorten threeP and twoP formulation
2021-07-14 14:10:13 +02:00
Paul Egberts
bddbc252db
allow for two phase gas-water system
2021-07-14 11:50:43 +02:00
Bård Skaflestad
dd2f215132
Merge pull request #2571 from OPM/esmry_ms
...
new member function in ESmry
2021-07-13 17:22:30 +02:00
Torbjørn Skille
7b89e9dbf8
new member function in ESmry
...
- checking if all timesteps are avaliable
- This will not be the case if RPTONLY has been used with eclipse
2021-07-13 16:14:21 +02:00
Joakim Hove
3d154ee668
Merge pull request #2568 from OPMUSER/Jason_Updates
...
Update TRACERS JSON
2021-07-10 10:50:08 +02:00
OPMUSER
a0050ed896
Update TRACERS JSON
...
Added item for checking, no other changes.
2021-07-10 09:11:47 +08:00
Joakim Hove
8b2b70bdf3
Merge pull request #2567 from OPMUSER/Jason_Updates
...
JSON Revised Definitions
2021-07-09 12:03:29 +02:00
OPMUSER
0e693e68e3
BOOST_AUTO_TEST_CASE( WCHONHIST )
...
Change number of entries from 11 to 12.
2021-07-09 16:00:54 +08:00
OPMUSER
147acc1445
JSON Revised Definitions
...
Mostly item and comments, except for:
NODEPROP
WCONHIST
2021-07-08 15:25:47 +08:00
Bård Skaflestad
0f2b338805
Merge pull request #2551 from bska/basic-5-freq-6
...
Use Previous Output Time to Decide Next Output Time
2021-07-07 22:08:35 +02:00
Bård Skaflestad
ed5a9db25b
Use Previous Output Time to Decide Next Output Time
...
This commit switches the criterion for BASIC=4 and BASIC=5 to using
the difference between the previous and the next output time instead
of "just" the next output time. The original criteria
year % freq == 0
month % freq == 0
don't do what we want. BASIC=4 and BASIC=5 should output every
'freq' year (=4) or 'freq' month (=5) of simulated time.
2021-07-07 15:06:10 +02:00
Bård Skaflestad
1c49dcc3db
Whitespace Adjustments
...
In preparation of fixing restart output times.
2021-07-07 14:37:21 +02:00
Bård Skaflestad
045d407aed
Merge pull request #2559 from bska/write-restart-file-events
...
Add Utility to Track Restart Output Events
2021-07-07 14:36:11 +02:00
Bård Skaflestad
e8c59932b3
Add Utility to Track Restart Output Events
...
This commit adds a new helper object
Opm::WriteRestartFileEvents
that identifies when a restart file output event occurs as well as
the most recent output event prior to a particular report step. We
implement this facility in terms of a dense bit vector that wastes
up to 63 bits of space. Most of the logic is devoted to finding the
most recent previous output event, of which the core routine is
counting the number of leading zero bits in a 64 bit value. We've
elected to implement this in a portable manner using binary search,
although most implementations provide efficient intrinsics for this
operation, e.g., GCC's __builtin_clzl. In C++20 we can use the new
function std::countl_zero() from <bit>.
2021-07-06 14:26:09 +02:00
Joakim Hove
833d036074
Merge pull request #2549 from OPMUSER/Jason_Updates
...
Update Various JSON Definitions
2021-07-05 22:54:31 +02:00
Joakim Hove
68d4f3d730
Merge pull request #2555 from goncalvesmachadoc/patch-3
...
Add BCAD
2021-07-05 19:51:09 +02:00
Joakim Hove
458b1d0396
Merge pull request #2558 from joakim-hove/remove-test
...
Remove test check for number of items in record
2021-07-05 19:50:21 +02:00
Joakim Hove
6ad1d4020c
Remove superfluos test
2021-07-05 16:01:31 +02:00
Joakim Hove
7946532f8c
Merge pull request #2557 from joakim-hove/udq-load-rst
...
Create UDQConfig object when loading from restart file
2021-07-03 23:26:48 +02:00
Joakim Hove
56facd6a49
Create UDQConfig object when loading from restart file
2021-07-03 10:29:36 +02:00
Bård Skaflestad
1e8356cc86
Merge pull request #2553 from osae/tracerUnits
...
Some support for non-default tracer amount units.
2021-07-02 12:14:00 +02:00
Bård Skaflestad
43829de62d
Merge pull request #2550 from bska/separate-boost-test-params
...
Separate Test Command Line Arguments from Runner Arguments
2021-07-01 22:57:59 +02:00
Bård Skaflestad
85f809c42b
Separate Test Command Line Arguments from Runner Arguments
...
When passing parameters to test runners based on Boost.Test we need
to distinguish the parameters that are intended for the test case
and those that are intended for the Boost.Test framework (e.g.,
"--run_test=").
2021-07-01 16:27:26 +02:00
Bård Skaflestad
f9f54d9cea
Merge pull request #2556 from bska/fix-udq-restart-indexing
...
Don't Use Common Start Offset for UDQ Restart Variables
2021-07-01 16:25:19 +02:00
Bård Skaflestad
cb862b5fa5
Don't Use Common Start Offset for UDQ Restart Variables
...
The arrays are sized according to the number of variables of each
category (well, group, field), not the number of UDQs.
2021-07-01 14:23:02 +02:00
Bård Skaflestad
b8e9f2d766
Split UDQ Definition Strings Out of Main Loop
...
Mainly for reduced mental load when reading the body.
2021-07-01 14:21:10 +02:00
Bård Skaflestad
3a2d37b92a
Merge pull request #2546 from joakim-hove/udq-rst
...
Udq rst
2021-07-01 14:19:35 +02:00
Cintia Goncalves Machado
29af0809b7
Add BCAD
...
BSIP was written twice.
2021-07-01 10:49:31 +02:00
Joakim Hove
6af909778c
Load UDQConfig and UDQState from restart data
2021-07-01 07:31:48 +02:00
Joakim Hove
f108463265
Split UDQ tokens also on ' '
2021-07-01 07:31:03 +02:00
Joakim Hove
1c478078b8
Implement rst udq with std::variant<> for DEFINE and ASSIGN
2021-07-01 07:30:21 +02:00
Joakim Hove
a045550121
Add std::initializer_list constructor for NameOrder
2021-07-01 07:25:54 +02:00
Joakim Hove
1e4a940e70
Add WellMatcher constructor which takes list of wells
2021-07-01 07:25:25 +02:00
Ove Sævareid
e9458705d0
Some formatting of unit names.
2021-06-30 19:04:16 +02:00
Arne Morten Kvarving
0f953dfef8
Merge pull request #2554 from akva2/rh_boost_doc
...
fix redhat packaging
2021-06-30 15:09:57 +02:00
Arne Morten Kvarving
155ab84649
fix redhat packaging
...
- use system level boost instead of boost 1.48 now that RHEL6 is dead
- take care of new doc installation
2021-06-30 15:01:09 +02:00
OPMUSER
189db2490a
Add NMESSAGE Summary keyword
...
Add NMESSAGE summary keyword and declarations in config file.
2021-06-30 18:38:13 +08:00
Bård Skaflestad
b39ab05f9f
Merge pull request #2537 from GitPaean/new_update_guide_rates_together
...
[new attempt] update the guide rates for all the wells at the same time.
2021-06-30 12:37:52 +02:00
OPMUSER
f1e7efeb39
JSON Keyword Updates
...
COMPDAT, GCONINJE and GCONPROD
2021-06-30 18:32:32 +08:00
Ove Sævareid
9013b7dca5
Some support for non-default tracer amount units.
2021-06-30 12:22:52 +02:00
Bård Skaflestad
c492cc5c0b
Merge pull request #2545 from joakim-hove/actionx-enable-complump-wpimult
...
Add COMPLUMP and WPIMULT as AXTIONX enabled keywords
2021-06-30 11:54:10 +02:00
OPMUSER
9133b6125d
Update Various JSON Definitions
...
AQUCON, AQUCT, AQUFETP, EQUIL, MESSAGES, PLYMAX, REGDIMS, and RESTART
2021-06-29 19:17:52 +08:00
Bård Skaflestad
b4eeca78fa
Merge pull request #2548 from jalvestad/rstcorr-test
...
Added test data for IGRP - availablility for higher order control
2021-06-29 09:14:33 +02:00
Kai Bao
23d0185acd
update the guide rates for all the wells at the same time.
2021-06-28 23:11:11 +02:00
Jostein Alvestad
98641b3e93
first version of extended IGRP tests
2021-06-28 13:32:50 +02:00
Jostein Alvestad
01b3c8ee64
initial changes to make extended unit tests for AggregateGroupData
2021-06-28 13:32:49 +02:00
Jostein Alvestad
b747a5edbb
corrections for errors occurred during rebase - move of code to UDQDims.cpp
2021-06-28 13:32:43 +02:00
Jostein Alvestad
84023e650f
correction to test for when to output IGPH
2021-06-28 13:29:42 +02:00
Bård Skaflestad
e7c223bc00
Merge pull request #2544 from OPMUSER/Jason_Updates
...
JSON updates
2021-06-27 17:06:09 +02:00
OPMUSER
82e0c608d2
FixJSON typos for EDITNNC, FOAMFSC, FOAMOPTS
...
Fix JSON typos for or EDITNNC, FOAMFSC, FOAMOPTS keywords
2021-06-26 16:16:03 +08:00
Joakim Hove
f7427c9ae8
Merge pull request #2539 from joakim-hove/udq-rst-selector
...
Alternative selector implementation for UDQAssign loaded from rst
2021-06-26 09:41:54 +02:00
Bård Skaflestad
24c04a0b0d
Merge pull request #2543 from joakim-hove/udq-state-refactor
...
Refactor UDQ state to use plain maps
2021-06-25 22:02:38 +02:00
Bård Skaflestad
f4d5a80fcc
Merge pull request #2468 from osae/tracerWell
...
Support for tracer summary curves, WT(I/P)(R/T/C).
2021-06-25 17:47:56 +02:00
Bård Skaflestad
fc98b2a2dc
Merge pull request #2518 from jalvestad/rstfile-corr
...
Corrections to eclipse-compatible restart file
2021-06-25 17:25:59 +02:00
Joakim Hove
3fa67b21b3
Alternative selector implementation for UDQAssign loaded from rst
2021-06-25 15:25:48 +02:00
Joakim Hove
44e056a84e
Merge pull request #2496 from bska/aqunum-initpress-array
...
Collect Type-Specific Aquifer Data in Single Structure
2021-06-25 15:23:48 +02:00
Joakim Hove
0f9c2c2cf3
Refactor UDQState to use plain maps internally
2021-06-25 15:09:42 +02:00
Joakim Hove
c5bed1a023
Add COMPLUMP and WPIMULT as AXTIONX enabled keywords
2021-06-25 14:33:34 +02:00
OPMUSER
8542fe4128
Fix VISREF Replace semicolon with comma
2021-06-25 18:12:17 +08:00
OPMUSER
5010ebb57e
EDITNNC, FOAMFSC, FOAMOPTS and VISCREF
...
Added item and comments. VISCREF was missing the oil API column.
2021-06-25 18:06:27 +08:00
Bård Skaflestad
4e14cb68e1
Collect Type-Specific Aquifer Data in Single Structure
...
This commit adds a new helper class,
Opm::data::TypeSpecificData
which holds type-specific sub-structures for Carter-Tracy,
Fetkovich, and Numerical aquifers. We implement this facility in
terms of a std::variant<> of simple structures. In turn, use the
type-specific data for numerical aquifers to fill in the initial
aquifer cell pressures where not available in the input data.
2021-06-25 11:55:56 +02:00
Joakim Hove
d875715cff
Merge pull request #2541 from OPMUSER/Jason_Updates
...
AQUCON, AQUCT, EHYSTR, NETWORK, NNC and UDQDIMS Changes
2021-06-25 11:45:18 +02:00
Joakim Hove
b5d2a224bf
Merge pull request #2542 from bska/use-restart-file-view
...
Reimplement RstState::load In Terms of RestartFileView
2021-06-25 09:54:29 +02:00
Bård Skaflestad
c32aa48b32
Reimplement RstState::load In Terms of RestartFileView
...
This is in preparation of unconditionally loading analytic aquifer
information from the restart file. Update callers to new API.
2021-06-25 09:20:55 +02:00
Bård Skaflestad
62893dfcdc
RestartFileView: Add Keyword Accessors for 'bool'
...
Needed to load logical vectors like 'LOGIHEAD'.
2021-06-25 09:14:44 +02:00
OPMUSER
68d3b4ce1f
AQUCON, AQUCT, EHYSTR, NETWORK, NNC and UDQDIMS Changes
...
Added item counter for checking and comment for E300 parameters.
2021-06-25 12:43:50 +08:00
Bård Skaflestad
1c2212487d
Merge pull request #2540 from bska/prune-close-brace-semicolon
...
Prune Needless Trailing ';' On Certain Close Braces
2021-06-25 00:59:36 +02:00
Bård Skaflestad
cbe149a783
Prune Needless Trailing ';' On Certain Close Braces
...
Removes warning "extra ';'" in GCC's "-Wpedantic" mode.
2021-06-24 23:58:27 +02:00
Jostein Alvestad
0452a0c867
corrections for errors occurred during rebase - move of code to UDQDims.cpp
2021-06-24 23:24:15 +02:00
Jostein Alvestad
72e4891ac5
Correction for inj_phase - index plus function name change
2021-06-24 23:21:39 +02:00
Jostein Alvestad
4633a4c498
correction to test for when to output IGPH
2021-06-24 23:21:19 +02:00
Joakim Hove
ed66a05c54
Merge pull request #2535 from joakim-hove/rstfile-corr-udq
...
UDQ output updates
2021-06-24 16:58:27 +02:00
Joakim Hove
0d170d7339
Merge pull request #2534 from joakim-hove/udq-rst-preparation
...
Update UDQ parsing - preparation for restart load
2021-06-24 15:42:54 +02:00
Joakim Hove
31731a3a2a
Merge pull request #2538 from akva2/print_opm_tests_rev
...
print revision of opm-tests
2021-06-24 15:25:09 +02:00
Arne Morten Kvarving
085ec57759
print revision of opm-tests
2021-06-24 14:40:01 +02:00
Joakim Hove
6041a16339
Merge pull request #2536 from OPMUSER/Jason_Updates
...
WELLDIMS Fix Up
2021-06-24 12:46:08 +02:00
OPMUSER
9c6d1e5395
WELLDIMS Fix Up
...
Fix missing entry and defaults to eliminate false warning messages.
2021-06-24 17:23:49 +08:00
Joakim Hove
81f6e7dcd7
Merge pull request #2530 from OPMUSER/Jason_Updates
...
Jason updates #2
2021-06-24 11:10:39 +02:00
OPMUSER
41b7d05285
Correct TABDIMS and ROCKCOMP
2021-06-24 15:51:52 +08:00
Joakim Hove
e73b613582
UDQ output updates
2021-06-24 09:18:34 +02:00
Joakim Hove
3f47cd536d
Improve UDQToken pretty output
2021-06-24 01:29:39 +02:00
Joakim Hove
e1c780ee62
Update UDQ parsing - preparation for restart load
2021-06-24 01:08:54 +02:00
Joakim Hove
3b41815974
Merge pull request #2533 from blattms/janitor
...
Remove warnings about unsigned-signed comparison and init order.
2021-06-23 16:30:37 +02:00
Markus Blatt
48d73bbc6e
Remove warnings about unsigned-signed comparison and init order.
2021-06-23 14:42:44 +02:00
Joakim Hove
0d060fad24
Merge pull request #2527 from tskille/parser
...
Functionality for parsing only selected sections of a data deck
2021-06-23 14:04:42 +02:00
Joakim Hove
3b7f43f7c4
Merge pull request #2529 from joakim-hove/nnc-json
...
Update JSON scheme for NNC
2021-06-23 13:38:54 +02:00
Bård Skaflestad
91a852dc53
Merge pull request #2519 from joakim-hove/udq-rst
...
Udq rst
2021-06-23 12:03:25 +02:00
Joakim Hove
ccf23ab301
Update JSON scheme for NNC
2021-06-23 11:53:28 +02:00
Joakim Hove
1e5a1311c4
Load UDQ data from restart files
2021-06-23 08:12:25 +02:00
Joakim Hove
ba21904558
Merge pull request #2524 from joakim-hove/jostein-commits
...
Jostein commits
2021-06-23 08:11:31 +02:00
Bård Skaflestad
cc55180797
Merge pull request #2525 from joakim-hove/keyword-sections
...
Keyword sections
2021-06-23 00:34:42 +02:00
Bård Skaflestad
f3de7bde0f
Merge pull request #2472 from bska/centralise-aquprop-calculations
...
Centralise Aquifer PVT Property Calculations and Use Simulator's Values for Restart Output
2021-06-22 20:38:07 +02:00
Ove Sævareid
e7104a4b16
Guard against undefined values.
2021-06-22 20:17:14 +02:00
Ove Sævareid
30d446d41b
Tests for tracer summary.
2021-06-22 20:17:14 +02:00
Ove Sævareid
5a22e9c782
Tracer read/write/get.
2021-06-22 20:17:14 +02:00
Ove Sævareid
7f062f213f
Comments and cleanup
2021-06-22 20:17:14 +02:00
Ove Sævareid
785d360fed
Untangling tracer summary.
2021-06-22 20:17:14 +02:00
Ove Sævareid
94c6c4942c
Support for tracer summary curves, WT(I/P)(R/T/C).
2021-06-22 20:17:14 +02:00
Torbjørn Skille
eded5fdb0c
add functionality to the parser for parsing selected sections of a data deck
...
- made available in python bindings
- added unit tests both for c++ and python
2021-06-22 18:45:24 +02:00
Joakim Hove
84e5307117
Return set of valid sections from ParserKeyword
2021-06-22 17:16:48 +02:00
Joakim Hove
050e82cebd
Return deck names from ParserKeyword as std::unordered_set
2021-06-22 17:16:00 +02:00
Joakim Hove
36c07ae545
Remove unused iterator for section names
2021-06-22 17:08:43 +02:00
Bård Skaflestad
b783a1de32
Use More Dynamic Aquifer Data From Simulator
...
This commit switches to using the simulator's notion of initial
aquifer pressure, aquifer mass density of water, aquifer water
viscosity, and aquifer time constants. These values will,
ultimately, come from the *_data structures for the analytic
aquifers but the simulator is the only system that is able to
compute equilibrated initial pressure values if that is defaulted in
the input.
2021-06-22 16:36:45 +02:00
Bård Skaflestad
4381eca9ac
Rename Analytic Aquifer Structure Data Members
...
This commit renames various data members of the *_data structures to
aid the reader who may not be intimately familiar with the details
of the analytic models. We switch the 'initial_pressure' into an
optional<double> instead of a pair<bool,double> with 'std::nullopt'
representing defaulted initial aquifer pressure values in the input
file.
We also add logic and private data members to compute/store aquifer
time constants, mass density of water, water viscosity and, in the
case of Carter-Tracy aquifers, also the influx constant 'beta'.
This centralises the requisite logic which reduces the risk of
subtle errors.
In the case of defaulted initial pressures, we support deferred
calculation of aquifer properties until the equilibrium pressure is
known. Users are then expected to assign a value to the initial
pressure members and call 'finishInitialisation()' to derive those
properties.
While here, also switch to using raw string literals instead of
concatenated and escaped literals for the embedded deck strings in
the ParserTests.
2021-06-22 16:36:45 +02:00
Joakim Hove
79da27ae91
Remove leading space from ActionX condition
2021-06-22 16:20:24 +02:00
Jostein Alvestad
a1a8d74738
Update IUQD[0] depending on status
2021-06-22 16:20:24 +02:00
Jostein Alvestad
c44dcb8257
changes to DeckOutput.hpp for opmpack
2021-06-22 16:20:24 +02:00
Joakim Hove
8b625b6590
Merge pull request #2523 from joakim-hove/gr-minor
...
GuideRate / restart - minor stuff
2021-06-22 16:19:59 +02:00
Joakim Hove
b240f15ff8
Move eclipseControlMode function as static method in Well class
2021-06-22 10:32:46 +02:00
Joakim Hove
d1a0b4ab34
Add method GuideRate::init_grvalue()
2021-06-22 10:32:46 +02:00
Joakim Hove
9e2c79517a
Remove method Schedule::guideRateConfig()
2021-06-22 10:32:46 +02:00
Bård Skaflestad
be0838981d
Merge pull request #2505 from joakim-hove/restore-guide-rates
...
Assign guide rate values to data::Wells when loading from restart
2021-06-22 09:16:37 +02:00
Joakim Hove
f7299aaea4
Recover guide rates from restart file
2021-06-22 07:24:00 +02:00
Joakim Hove
b0c134d385
Merge pull request #2522 from bska/report-dynpv
...
Add 'Inplace' Slot for Dynamic Pore Volume
2021-06-21 17:51:44 +02:00
Bård Skaflestad
695357e5f0
Add 'Inplace' Slot for Dynamic Pore Volume
...
The 'PoreVolume' value is supposed to be calculated at reference
conditions (i.e., no rock compressibility or temperature effects),
but being able to report the non-reference condition value is
beneficial. This commit adds a slot for accumulating that value per
FIP region and transporting the aggregated values to the PRT output
system.
2021-06-21 16:25:55 +02:00
Joakim Hove
5f4483769b
Merge pull request #2521 from joakim-hove/udq-rst-preparations
...
Udq rst preparations
2021-06-21 09:21:22 +02:00
Joakim Hove
fff4c58a9a
Create small class UDQDims with static methods to enable reuse
2021-06-21 08:15:07 +02:00
Joakim Hove
176669d625
RstState add groups and wells by calls from RstState::load()
2021-06-21 08:15:07 +02:00
Joakim Hove
1f9aaae0b8
Merge pull request #2520 from joakim-hove/opmpack-title-special
...
Make sure deck output of TITLE has trailing newline
2021-06-19 13:42:46 +02:00
Joakim Hove
df2fbd0ab3
Update AggregateUDQTest to output valid restart file
2021-06-19 13:38:41 +02:00
Joakim Hove
94bf2db8c7
Make sure deck output of TITLE has trailing newline
2021-06-19 11:39:25 +02:00
Joakim Hove
862dd4b180
Use unformatted IO in testcase
2021-06-18 15:02:02 +02:00
Joakim Hove
f45f787651
White space
2021-06-18 14:06:43 +02:00
Joakim Hove
92adc65bbe
Merge pull request #2517 from joakim-hove/load-rst-group
...
Add Schedule::addGroup( const RstGroup& ) overload
2021-06-17 21:22:43 +02:00
Joakim Hove
419bdf23c4
Add Schedule::addGroup( const RstGroup& ) overload
2021-06-17 13:19:20 +02:00
Joakim Hove
33f4ec04c2
Merge pull request #2516 from joakim-hove/update-rst-output
...
Update restart output from EclRegressionTest
2021-06-17 10:11:30 +02:00
Joakim Hove
e561e3fb43
Update restart output from EclRegressionTest
2021-06-17 08:46:51 +02:00
Joakim Hove
bd3724068c
Merge pull request #2512 from blattms/doxygen-no-timestamp
...
For discussion: Deactive timestamping in doxygen for reproducible builds.
2021-06-17 08:32:00 +02:00
Markus Blatt
d052e6e47d
Merge pull request #2510 from blattms/debian-patches-2
...
Further patches to the build system from Debian unstable packaging.
2021-06-16 12:34:04 +02:00
Joakim Hove
59115f818d
Merge pull request #2515 from joakim-hove/group-cmode
...
Group cmode
2021-06-16 12:24:51 +02:00
Markus Blatt
b1a0964cd1
Merge pull request #2511 from blattms/debian-spelling-and-encoding-fixes
...
Debian spelling and encoding fixes
2021-06-16 10:32:45 +02:00
Joakim Hove
d7eff6159f
Use function Group::InjectionCMode2Int() to convert cmode -> int
2021-06-16 08:50:51 +02:00
Joakim Hove
0ff19fa453
Use function Group::ProductionCMode2Int() for enum -> int mapping
2021-06-16 08:50:51 +02:00
Markus Blatt
c957f31d40
Doygen: remove wrong usage of \example directive.
...
For whatever reason it produced a file like
_2tmp_2reprotest_81JBnX9_2build-experiment-1_2build-experiment-1_2opm_2output_2OutputWriter_8hpp-example.html
with the full path in it.
BTW: correct usage is "\example <cpp-file>" where the cpp file
includes the example code.
2021-06-15 23:14:23 +02:00
Markus Blatt
f8840e7152
Deactive timestamping in doxygen for reproducible builds.
2021-06-15 21:17:03 +02:00
Markus Blatt
b83919d1f3
Changed encoding of all installed headers to UTF-8
...
On Debian support for national encodings is being phased out.
Fixes lintian warnings about national-encoding.
2021-06-15 21:11:45 +02:00
Markus Blatt
50ec3bca05
Spelling fixes pointed out by lintian.
2021-06-15 21:11:36 +02:00
Markus Blatt
13bf65a73b
Install build system documentation to doc and not next to CMake files.
2021-06-15 21:06:55 +02:00
Markus Blatt
ff9792e31c
Work around issues of Boost >=1.70.0 and CMake 3.18.4
...
With that combination the first search seems to happen in CONFIG mode
but subsequent searches will use MODULE mode. This will result in the
following warning:
CMake Warning at /usr/share/cmake-3.18/Modules/FindBoost.cmake:1187 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/share/cmake-3.18/Modules/FindBoost.cmake:1311 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.18/Modules/FindBoost.cmake:1919 (_Boost_MISSING_DEPENDENCIES)
cmake/Modules/OpmFind.cmake:135 (find_package)
cmake/Modules/OpmFind.cmake:230 (find_and_append_package_to)
cmake/Modules/OpmLibMain.cmake:83 (find_and_append_package_list_to)
CMakeLists.txt:222 (include)
Also the variable Boost_LIBRARIES will look quite messed up by
occurrences of optimized and debug:
Boost_LIBRARIES=optimized;/usr/lib/x86_64-linux-gnu/libboost_system.so.1.74.0;debug;/usr/lib/x86_64-linux-gnu/libboost_system.so;optimized;/usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.1.74.0;debug;/usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so
Which will make the modules unusable because of CMake errors during
linking:
CMake Error at /usr/share/dune/cmake/modules/DuneMacros.cmake:991 (target_link_libraries):
The "debug" argument must be followed by a library.
Call Stack (most recent call first):
src/CMakeLists.txt:2 (target_link_dune_default_libraries)
-- Configuring incomplete, errors occurred!
Note this fix is only needed for Boost versions 1.70 and higher.
Older versions do not provide cmake package configuration
files (BoostConfig.cmake) and hence there can be no mixup.
Note also that the alternative approach of setting
CMAKE_FIND_PACKAGE_PREFER_CONFIG does not work for OPM as with this
e.g. the Dune module versions would not be set correctly.
2021-06-15 21:04:41 +02:00
Markus Blatt
bf55667553
Allow installation of bash completion scripts to new location.
...
That location is /usr/share/bash-completion/completions and scripts
will be loaded on demand. Added option USE_BASH_COMPLETIONS_DIR (default OFF)
to request this. It is needed to prevent lintian warnings for Debian
packages.
2021-06-15 20:56:50 +02:00
Joakim Hove
428563e33a
Merge pull request #2503 from joakim-hove/wells-output-json
...
Wells output json
2021-06-15 10:14:51 +02:00
Joakim Hove
702de267bc
Add json output for data::Group
2021-06-15 07:38:41 +02:00
Joakim Hove
011845992f
Add Json output from output::Wells
2021-06-15 07:38:34 +02:00
Joakim Hove
73d2f7812e
Merge pull request #2504 from joakim-hove/rename-wellrates
...
Rename data::WellRates -> data::Wells
2021-06-14 18:21:33 +02:00
Joakim Hove
69dfff722b
Merge pull request #2506 from joakim-hove/guiderate-model-const
...
Make method GuideRateModel::updateLINCOM() const
2021-06-14 15:30:46 +02:00
Joakim Hove
71ccf698ab
Make method GuideRateModel::updateLINCOM() const
2021-06-14 12:52:28 +02:00
Joakim Hove
9fe4be5ebf
Rename data::WellRates -> data::Wells
2021-06-12 09:33:05 +02:00
Bård Skaflestad
5e1d923647
Merge pull request #2500 from joakim-hove/del-timemap
...
Remove stale class TimeMap
2021-06-10 20:30:08 +02:00
Joakim Hove
37f07a1b18
Remove stale class TimeMap
2021-06-10 14:12:12 +02:00
Bård Skaflestad
b7c79c2da7
Merge pull request #2485 from bska/track-gconinje-udqactive
...
Track UDA Active Status for Group Injection Controls
2021-06-10 12:33:14 +02:00
Arne Morten Kvarving
e88909995f
upadte-opm-tests: supply access token in header
2021-06-10 10:25:54 +02:00
Bård Skaflestad
5ab4bdc2db
Track UDA Active Status for Group Injection Controls
...
This commit adds a new member function, updateUDQActive, to the
group injection properties. This is inspired by the function of the
same name in the group production properties and fills the same
purpose. This, in turn, enables tracking whether a GCONINJE keyword
activates a user-defined argument. That status is in turn needed to
generate the 'IUAD' restart vector in the restart file in the face
of models for which the only UDA is in GCONINJE.
2021-06-09 20:41:03 +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
cefc083135
Associate Group Injection Properties to Named Group
...
This commit adds a new data member, group_name, to the injection
properties per group. This is in preparation of tracking the UDQ
active status for group injection controls (keyword GCONINJE).
Group production properties already have a similar data member for
the same purpose.
2021-06-09 20:41:03 +02:00
Bård Skaflestad
1f26249ce9
Merge pull request #2498 from bska/public-rst-file-view
...
Promote RestartFileView to Public Access
2021-06-09 20:38:44 +02:00
Bård Skaflestad
82ccd15580
Promote RestartFileView to Public Access
...
In preparation of loading analytic aquifers from the restart file.
2021-06-09 00:35:13 +02:00
Bård Skaflestad
423b4a39e6
Merge pull request #2497 from joakim-hove/connections-num-open
...
Add method ConnectionSet::num_open()
2021-06-08 17:59:46 +02:00
Joakim Hove
9dd4c43209
Add method ConnectionSet::num_open()
2021-06-08 14:41:52 +02:00
Joakim Hove
59efd8e98e
Merge pull request #2493 from akva2/add_missing_forward
...
add missing forward declaration
2021-06-05 22:56:07 +02:00
Joakim Hove
4127c45866
Merge pull request #2494 from blattms/prevent-further-reallocations
...
Prevent reallocations where possible when parsing items.
2021-06-04 18:25:18 +02:00
Markus Blatt
de37080dae
Prevent reallocations where possible when parsing items.
...
We either reserve or use std::vector::insert instead of just
blindly using push_back.
2021-06-04 16:21:05 +02:00
Arne Morten Kvarving
ebadbdc0ac
add missing forward declaration
2021-06-04 13:18:42 +02:00
Bård Skaflestad
4238209e8f
Merge pull request #2492 from atgeirr/silence-warnings
...
Silence warnings.
2021-06-03 17:09:55 +02:00
Atgeirr Flø Rasmussen
51701f230e
Silence warnings.
2021-06-03 12:22:45 +02:00
Joakim Hove
e01e8e9225
Merge pull request #2471 from bska/communicate-dynamic-aqudata
...
Communicate Dynamic Aquifer Data
2021-05-29 07:47:18 +02:00
Joakim Hove
542edd6fa9
Merge pull request #2487 from bska/nrsegz-actph
...
Account for RSEG Size Depending on Number of Active Phases
2021-05-29 07:45:57 +02:00
Bård Skaflestad
a1fd22d578
Make Aquifer Data a First Class RestartValue
...
This commit promotes the 'aquifer' data member of 'RestartValue' to
first class status. In particular, this means that users must
provide aquifer data, albeit possibly empty, when constructing the
RestartValue object for input or output.
This is in preparation of using more dynamic aquifer quantities from
the simulator layer as part of the restart I/O.
2021-05-28 17:41:29 +02:00
Bård Skaflestad
15150bee50
Add Communication Support for Dynamic Aquifer Data
...
This commit introduces 'MessageBuffer' read and write operations for
the CarterTracyData and FetkovichData structures in preparation of
communicating these substructures from parallel processes to the IO
rank. This is foundational work for retrieving more of the dynamic
quantities pertaining to aquifers from the simulation layer.
2021-05-28 17:41:29 +02:00
Bård Skaflestad
096ef91b73
Account for RSEG Size Depending on Number of Active Phases
...
The number of data items per well segment in the RSEG restart vector
turns out to depend on the number of active phases (Oil, Gas, Water)
in the simulation run. In particular, the following relations hold
* Single phase (Oil, Gas, or Water): NRSEGZ = 126
* Two phases (Oil/Gas, Oil/Water, Gas/Water): NRSEGZ = 134
* Three phases (Oil/Gas/Water): NRSEGZ = 146
This commit implements that variability.
The output layer does not currently use any items above index 110 so
this does not alter the contents of RSEG, only the size, for 1p or
2p simulation runs.
2021-05-28 17:41:20 +02:00
Bård Skaflestad
1b4c833c2f
Merge pull request #2491 from joakim-hove/remove-unused
...
Remove unused variables
2021-05-28 17:37:25 +02:00
Bård Skaflestad
46e336fbb4
Merge pull request #2490 from joakim-hove/expose-stdout
...
Expose function stdoutIsTerminal() as static member in OpmLog
2021-05-28 13:08:28 +02:00
Joakim Hove
c9325ccfcc
Remove unused variables
2021-05-28 12:02:14 +02:00
Joakim Hove
e57febca9a
Expose function stdoutIsTerminal() as static member in OpmLog
2021-05-28 10:12:30 +02:00
Joakim Hove
3c4935e10b
Merge pull request #2489 from joakim-hove/nupcol-update
...
Nupcol updates
2021-05-28 07:22:27 +02:00
Joakim Hove
0d565f9c10
Nupcol updates
2021-05-28 00:59:09 +02:00
Bård Skaflestad
6ea6891ccb
Merge pull request #2488 from joakim-hove/shrink-to-fit
...
Add shrink_to_fit() for underlying storage in DeckItem
2021-05-27 18:14:37 +02:00
Joakim Hove
503ad0b98c
Add shrink_to_fit() for underlying storage in DeckItem
2021-05-27 12:45:03 +02:00
Bård Skaflestad
dee11eae41
Merge pull request #2475 from jalvestad/rst-wlist
...
Output of restart tables for Well list information to the Eclipse compatible restart files
2021-05-27 10:29:44 +02:00
Jostein Alvestad
589c6014a4
changed WLIST unit test - made consistent with WListManager - newList
2021-05-26 15:25:58 +02:00
Jostein Alvestad
60148fda30
modification-correction of serialization of well_wlist_names
2021-05-26 14:27:51 +02:00
Jostein Alvestad
7974fd219a
modified code to handle new empty wlists and make action NEW more robust
2021-05-26 13:58:06 +02:00
Joakim Hove
bf6ca3ff58
Merge pull request #2481 from joakim-hove/min-nupcol
...
Min nupcol
2021-05-26 10:22:09 +02:00
Jostein Alvestad
d1eafd6919
removed comments and removed unnecessary include-headers
2021-05-26 09:02:46 +02:00
Joakim Hove
b3b73c6f02
Merge pull request #2484 from bska/fix-double-inc
...
Don't Increment Loop Counter Twice
2021-05-26 00:39:55 +02:00
Bård Skaflestad
32fa3df6b6
Don't Increment Loop Counter Twice
2021-05-25 17:31:44 +02:00
Jostein Alvestad
5907a7520a
first complete version that satisfies all unit tests
2021-05-25 10:37:45 +02:00
Jostein Alvestad
31c55af919
first running rewritten version - use WListManager only
2021-05-25 10:37:43 +02:00
Jostein Alvestad
4c9832aedc
minor change of variable name rptStep to simStep to be consistent
2021-05-25 10:37:42 +02:00
Jostein Alvestad
1ffbfded8e
cleaned up code - removed comments
2021-05-25 10:37:41 +02:00
Jostein Alvestad
c6a798cd2a
completed unit tests for WList-data
2021-05-25 10:37:40 +02:00
Jostein Alvestad
96f0c2fbdd
further changes unit tests
2021-05-25 10:37:39 +02:00
Jostein Alvestad
5dd815bcbe
partial completion of unit tests
2021-05-25 10:37:37 +02:00
Jostein Alvestad
50cb354e23
added unit tests incl. test dataset
2021-05-25 10:37:33 +02:00
Jostein Alvestad
1086c60825
first version of restart output for WLIST keyword, plus related parser code changes
2021-05-25 10:37:29 +02:00
Joakim Hove
76fdcc2985
Merge pull request #2482 from joakim-hove/actionx-well-event
...
Add new well event for wells which have been touched by ACTIONX
2021-05-22 11:16:46 +02:00
Joakim Hove
ff292908ff
Add new well event for wells which have been touched by ACTIONX
2021-05-21 15:55:39 +02:00
Joakim Hove
8dd9b47fd4
Use Nupcol class in Runspec & ScheduleState
2021-05-21 14:53:12 +02:00
Joakim Hove
2e52d46b68
Add class Nupcol
2021-05-21 14:40:36 +02:00
Bård Skaflestad
536265a8a3
Merge pull request #2480 from bska/write-aqunum-restart
...
Add Restart Output for Numeric Aquifers
2021-05-20 13:58:58 +02:00
Bård Skaflestad
6c1c753764
Add Numeric Aquifer Restart Output
...
This commit generates the IAQN and RAQN restart vectors pertaining
to numeric aquifers. The arrays are sized according to the number
of records in the input AQUNUM keyword. RAQN is a mix of static and
dynamic information, including the cumulative total inflow volume of
water from the aquifer into the model. IAQN is exclusively static
information.
We add new members to 'AggregateAquiferData' and ensure that the
numeric aquifer arrays remain empty when no numeric aquifers exist
in the model. Add unit tests for these new arrays and update
existing unit tests to account for new dimension items.
2021-05-19 23:07:05 +02:00
Bård Skaflestad
8c33979071
Ensure Existence of ANQx Summary Vectors
...
These are needed for restart purposes.
2021-05-19 23:03:45 +02:00
Bård Skaflestad
5a81df350c
Identify Numeric Aquifer Restart Array Items
...
In particular, identify most the items in the IAQN and RAQN arrays.
While here, also make INTEHEAD Items for numeric aquifers public.
2021-05-19 22:42:58 +02:00
Joakim Hove
cb5e4eff2b
Merge pull request #2479 from joakim-hove/actionx-output-sep
...
Actionx output sep
2021-05-19 16:51:29 +02:00
Joakim Hove
a99c27add1
Make sure ACTIONX restart output is formatted as opmpack
2021-05-19 13:02:31 +02:00
Joakim Hove
4b831e750a
Assemble output formatting in small struct
2021-05-19 13:02:10 +02:00
Joakim Hove
f259f78788
Merge pull request #2477 from bska/count-aqunum-records
...
Track AQUNUM Records for Restart Purposes
2021-05-19 07:42:13 +02:00
Bård Skaflestad
8eb9bee6ed
Track AQUNUM Records for Restart Purposes
...
When forming restart arrays for numerical aquifers (IAQN and RAQN)
we need to know the total number of records in the input AQUNUM
keyword as well as the record ID of each individual record. This
commit adds a tracking mechanism for this information.
While here, also add unit tests that verify that we've correctly
interpreted the AQUNUM records.
2021-05-18 21:17:33 +02:00
Joakim Hove
f58a314f6a
Merge pull request #2476 from totto82/guideRateTypeRES
...
Add support for guide rate type RES
2021-05-18 21:15:29 +02:00
Joakim Hove
bf064812d3
Merge pull request #2478 from berland/extend_options_items
...
Extend number of parameters to OPTIONS keyword.
2021-05-18 20:42:15 +02:00
Håvard Berland
fb2d5dc620
Extend number of parameters to OPTIONS keyword.
...
Eclipse 2019.1 reference manual goes to item number 319
2021-05-18 14:02:46 +02:00
Tor Harald Sandve
a18866b355
Add support for guide rate type RES
2021-05-18 11:20:57 +02:00
Joakim Hove
147359c564
Merge pull request #2473 from bska/fix-smry-anx-all
...
Output Summary for all Numeric Aquifers When ID Defaulted
2021-05-17 07:11:08 +02:00
Bård Skaflestad
51cf551eac
Output Summary for all Numeric Aquifers When ID Defaulted
...
This commit extends the 'SummaryConfig' aquifer processing to
recognize numeric aquifer keywords without an explicit list of
aquifer IDs, i.e., summary keywords of the form
ANQR
/
We use the new functions '{analytic,numeric}AquiferIDs()' to form
lists of pertinent IDs once and then ensure that we create nodes
only for proper subsets of these ID sets.
Add unit tests to both the analytic and numeric configurations to
ensure that we generate these output sets or input errors when the
input file refers to IDs of incorrect type or out of range.
2021-05-16 12:15:46 +02:00
Bård Skaflestad
79b1f97640
Provide Means of Linearising All Aquifer IDs in a Model
...
This commit adds two helper functions
std::vector<int> analyticAquiferIDs(const AquiferConfig&)
std::vector<int> numericAquiferIDs(const AquiferConfig&)
which return the numeric IDs of the model's analytic and numeric
aquifers respectively. These are useful for configuring aquifer
summary keywords of the form
AAQR
/
that do not list individual aquifer IDs and for identifying issues
in the input file when a summary keyword that does list its aquifer
IDs refers to an aquifer of incorrect category (e.g., ID of numeric
aquifer in an analytic aquifer summary keyword).
While here, also add more unit test coverage to the AquiferConfig
object. In particular, add a unit test that includes aquifers at
all.
2021-05-16 12:15:46 +02:00
Joakim Hove
f44b49338b
Merge pull request #2474 from bska/deckkeyword-empty
...
Add 'empty' Predicate to DeckKeyword Type
2021-05-16 07:30:24 +02:00
Bård Skaflestad
b216c63921
Add 'empty' Predicate to DeckKeyword Type
...
Makes logic statements more explicit and removes a number of
"signed vs. unsigned" comparison operations.
2021-05-16 00:07:10 +02:00
Joakim Hove
98b49964f5
Merge pull request #2470 from vkip/master
...
Adding support for DATES with time (HH:MM:SS.MICROSEC) in python/opm/utils/time_vector.py
2021-05-14 08:03:23 +02:00
Vegard Kippe
e5987985be
Removed pandas dep also from supporting files..
2021-05-13 10:53:03 +02:00
Vegard Kippe
8a69023089
Removed the pandas dependency
2021-05-13 10:47:27 +02:00
Vegard Kippe
988ff7521b
Add python3-pandas to debian/control
2021-05-12 14:49:28 +02:00
Vegard Kippe
62e78e0018
Adding pandas to requirements.txt
2021-05-12 12:36:42 +02:00
Vegard Kippe
fe5004685c
Adding support for time (HH:MM:SS.MICROSEC) in time_vector. Updating tests accordingly.
2021-05-12 12:16:34 +02:00
Joakim Hove
dc207ae8c5
Merge pull request #2469 from atgeirr/optimize-for-large-nnc-case
...
Optimize further for large NNC case
2021-05-11 20:46:35 +02:00
Atgeirr Flø Rasmussen
521cd5610f
Remove extra reserved item capacity in ParseRecord.
2021-05-11 15:56:54 +02:00
Atgeirr Flø Rasmussen
fef696d978
Make duplicate name of item check optional in DeckRecord constructor.
...
This is for catching programmer error mostly, so it has been disabled
in the call path used in OPM Flow.
2021-05-11 15:30:31 +02:00
Joakim Hove
12a41a7b1f
Merge pull request #2467 from atgeirr/add-deck-move-constructor
...
Add move constructor for Deck.
2021-05-11 11:00:41 +02:00
Atgeirr Flø Rasmussen
395bb1ca90
Add move constructor for Deck.
2021-05-11 08:10:18 +02:00
Bård Skaflestad
fea7bbce6d
Merge pull request #2466 from jalvestad/rst-file_corrections
...
Some corrections / improvements to the eclipse - compatible restart file
2021-05-10 22:00:03 +02:00
Jostein Alvestad
26cc7897c6
correction to SWEL for prediction mode wells
2021-05-10 09:54:25 +02:00
Jostein Alvestad
777de0673f
Added correction for IH[ROCKOPTS_TTYP]
2021-05-10 09:54:23 +02:00
Jostein Alvestad
68fbc5f51b
further changes/corrections
2021-05-10 09:54:20 +02:00
Jostein Alvestad
184bff2e6b
correction to ZACN - include Field props rhs.quantities [ind+1]
2021-05-10 09:54:18 +02:00
Jostein Alvestad
2e6fa4468b
Correction for change of dimension of INOBR array v. 2019
2021-05-10 09:54:16 +02:00
Joakim Hove
3a4a8c91c6
Merge pull request #2465 from joakim-hove/wg-events-has
...
Add method WellGroupEvents::has(wgname)
2021-05-10 08:47:06 +02:00
Joakim Hove
14885372d2
Add method WellGroupEvents::has(wgname)
2021-05-09 16:32:07 +02:00
Joakim Hove
c1442803bd
Merge pull request #2463 from joakim-hove/get_events
...
Add method WellGroupEvents.at() to get individual events
2021-05-09 13:52:22 +02:00
Joakim Hove
65edae0b2e
Add method WellGroupEvents.at() to get individual events
2021-05-09 11:44:11 +02:00
Joakim Hove
d50b5852e0
Merge pull request #2464 from akva2/no_more_python3.5
...
changed: python 3.5 is no longer support in pypi
2021-05-08 20:13:10 +02:00
Arne Morten Kvarving
04ae012638
changed: python 3.5 is no longer support in pypi
2021-05-08 19:25:06 +02:00
Bård Skaflestad
65dc2e0942
Merge pull request #2462 from joakim-hove/keyword-generator-default-precision
...
Make sure precision is retained in very small default values
Closes #2448
2021-05-07 12:45:16 +02:00
Joakim Hove
f1c3c66996
Merge pull request #2461 from atgeirr/add-missing-include
...
Add missing <sstream> include.
2021-05-06 15:45:24 +02:00
Joakim Hove
e2572ed89e
Merge pull request #2460 from joakim-hove/clear-events
...
Add clearEvent() method to consume events
2021-05-06 15:45:09 +02:00
Joakim Hove
b21fd3e3e8
Make sure precision is retained in very small default values
2021-05-06 15:33:21 +02:00
Atgeirr Flø Rasmussen
d3c32d1906
Add missing <sstream> include.
2021-05-06 11:34:47 +02:00
Bård Skaflestad
25db0ec1db
Merge pull request #2458 from joakim-hove/mapaxes
...
Mapaxes
2021-05-05 20:33:17 +02:00
Joakim Hove
05fee1fd12
Add small class to handle MAPAXES & MAPUNITS
2021-05-05 16:09:58 +02:00
Joakim Hove
4372354174
Merge pull request #2361 from bska/dont-copy-wells-for-smry-eval
...
Don't Copy Well Objects During Summary Vector Evaluation
2021-05-05 16:07:23 +02:00
Joakim Hove
881da80e96
Add clearEvent() method to consume events
2021-05-05 13:40:50 +02:00
Joakim Hove
6509da9b66
Merge pull request #2459 from akva2/no_opm_in_opm
...
fixed: do not use Opm:: prefix when inside namespace Opm
2021-05-05 13:10:49 +02:00
Arne Morten Kvarving
978150d78f
fixed: do not use Opm:: prefix when inside namespace Opm
...
this is at best bad practice and can lead to confusing
errors because compiler will interpret it as Opm:: if there
is no 'foo' symbol available in the Opm namespace and give
confusing 'no symbol Opm::Opm::foo' error messages.
2021-05-05 09:43:07 +02:00
Bård Skaflestad
3a5934a09e
Don't Copy Well Objects During Summary Vector Evaluation
...
This commit makes the 'find_wells()' helper function return a vector
of (const) Well pointers instead of fully fledged Well objects.
This, in turn, eliminates quite a bit of the overhead of evaluating
well-based summary vectors (i.e., well, group, field, and connection
level vectors).
2021-05-04 13:17:52 +02:00
Joakim Hove
6650369970
Fix dimension handling for MAPAXES / MAPUNITS
2021-05-04 13:15:40 +02:00
Joakim Hove
2ca78faf3c
Configure MAPAXES as DATA keyword to enable loading from IMPORT
2021-05-04 13:15:40 +02:00
Joakim Hove
2da2b28159
Merge pull request #2457 from joakim-hove/remove-get-mapaxes
...
Remove getMAPAXES from EclipseGrid public api
2021-05-04 13:14:54 +02:00
Joakim Hove
a093251235
Remove unused mapaxes argument in constructor / init
2021-05-04 10:39:48 +02:00
Joakim Hove
d3f2f593eb
Remove public method EclipseGrid::getMAPUNITS()
2021-05-04 07:48:23 +02:00
Joakim Hove
a6d574581d
Remove getMAPAXES from EclipseGrid public api
2021-05-03 15:19:47 +02:00
Joakim Hove
507242c9e7
Merge pull request #2452 from bska/fix-gaslift-restart
...
Don't Output Gas Lift Parameters Unless Active
2021-05-03 12:45:28 +02:00
Bård Skaflestad
c76f1364c2
Don't Output Gas Lift Parameters Unless Active
...
This commit checks that gas lift is active before outputting a
positive value in INTEHEAD[EACHNC]. Unless gas lift is activated
through keyword LIFTOPT, that item in INTEHEAD must be zero.
2021-05-02 00:17:05 +02:00
Arne Morten Kvarving
04622a13a5
Merge pull request #2456 from blattms/fix-cmake-package-config
...
Include OpmPackage in opm-project-config.cmake and force -std=c++17
2021-04-30 11:11:32 +02:00
Bård Skaflestad
efcb8d9c00
Merge pull request #2454 from akva2/fix_missing_include
...
fixed: include <stdexcept> in RFTConfig.cpp
2021-04-29 20:34:36 +02:00
Markus Blatt
ddfe309a88
Use current CMAKE_CXX_STANDARD in opm-project-prereq.cmake
2021-04-29 16:03:59 +02:00
Markus Blatt
7740e00883
Removed code for CMake < 3.10
2021-04-29 16:03:21 +02:00
Markus Blatt
f336cd1b74
Include OpmPackage in opm-project-config.cmake and force -std=c++17
...
OpmPackage is needed as it defines find_package_deps. The CXX standard
needs to be set as some cmake package config scripts will add
incompatible compile switches like -std=gnu++11 otherwise (I guess
because of import targets with INTERFACE_COMPILE_FEATURES), that will
break the build.
2021-04-29 14:07:59 +02:00
Arne Morten Kvarving
63f336c931
fixed: include <stdexcept> in connection.cpp
2021-04-29 13:24:37 +02:00
Arne Morten Kvarving
bb164e2dd0
fixed: include <stdexcept> in RFTConfig.cpp
2021-04-29 12:40:58 +02:00
Bård Skaflestad
98a2d1b8a3
Merge pull request #2449 from akva2/fix_missing_include
...
fixed: include <limits> in TranCalculator
2021-04-29 12:12:53 +02:00
Arne Morten Kvarving
8753bef383
fixed: include <limits> in TranCalculator
...
also forward struct as struct
2021-04-29 10:26:35 +02:00
Joakim Hove
c05ea0fe21
Merge pull request #2441 from akva2/use_forwarding
...
Use forwarding
2021-04-27 19:30:04 +02:00
Joakim Hove
da6df3cc87
Merge pull request #2444 from joakim-hove/actions-wait-time-equal
...
ActionX wait time compared with =>
2021-04-27 16:17:30 +02:00
Arne Morten Kvarving
b063fcd089
remove some unnecessary includes
...
from tests and a few schedule classes
2021-04-27 12:55:45 +02:00
Arne Morten Kvarving
bc3863912f
BoxTests: fix test suite name
2021-04-27 12:55:45 +02:00
Arne Morten Kvarving
b968cd7d95
SummaryState: move forwarding to fix doxy
2021-04-27 12:55:45 +02:00
Arne Morten Kvarving
058b41e7d7
RFTConfig: remove unnecessary include
2021-04-27 12:55:45 +02:00
Arne Morten Kvarving
43dfdd4d2d
UDQContext: forward types to avoid includes
2021-04-27 12:55:45 +02:00
Arne Morten Kvarving
4fe78a0424
LogUtil: forward types to avoid includes
2021-04-27 12:55:45 +02:00
Arne Morten Kvarving
b51779b6f8
UDQSet: forward types to avoid includes
2021-04-27 12:55:45 +02:00
Arne Morten Kvarving
1ff9cf93aa
Connection: forward types to avoid includes
2021-04-27 12:55:45 +02:00
Arne Morten Kvarving
bc633fb09a
UDQConfig: forward types to avoid includes
2021-04-27 12:55:45 +02:00
Arne Morten Kvarving
0dd63e4f84
SICD/AutoICD: forward types to avoid includes
...
move helper template to separate private header to avoid
use of symbols in header
2021-04-27 12:55:45 +02:00
Arne Morten Kvarving
9876a73a53
Well: forward types to avoid includes
2021-04-27 12:45:24 +02:00
Arne Morten Kvarving
cd7a12ce48
WellConnections: forward types to avoid includes
2021-04-27 12:45:24 +02:00
Arne Morten Kvarving
c407618375
Schedule: forward types to avoid includes
...
move constructor definition to compile unit
to avoid symbol usage in header
2021-04-27 12:45:24 +02:00
Arne Morten Kvarving
1ef8fd987b
JFunc: forward types to avoid includes
2021-04-27 12:45:24 +02:00
Arne Morten Kvarving
b835c33c1a
TableManager: forward types to avoid includes
...
move private template definitions to compile unit
to avoid using symbol definitions in header
2021-04-27 12:45:24 +02:00
Arne Morten Kvarving
2e5554598d
RSTConfig: forward types to avoid includes
2021-04-27 12:45:24 +02:00
Arne Morten Kvarving
35c20318f4
RPTConfig: forward types to avoid includes
2021-04-27 12:45:24 +02:00
Arne Morten Kvarving
b9e8f01862
GConSale: forward types to avoid includes
2021-04-27 12:45:24 +02:00
Arne Morten Kvarving
c43076f598
GConSump: forward types to avoid includes
2021-04-27 12:45:24 +02:00
Arne Morten Kvarving
97eaa972c2
EclipseState: forward types to avoid includes
...
also clean up some unnecessary forwards, old debugging code
2021-04-27 12:45:24 +02:00
Arne Morten Kvarving
1e232cf5c0
Actdims: forward types to avoid includes
2021-04-27 12:45:24 +02:00
Arne Morten Kvarving
85d56347ba
MULTREGTScanner: forward types to avoid includes
2021-04-27 12:45:24 +02:00
Arne Morten Kvarving
d96a246441
GridDims: forward types to avoid includes
2021-04-27 12:45:24 +02:00
Arne Morten Kvarving
7fd4d2bd9f
EInit: move template definition to cpp file
...
and use explicit template instantation to generate necessary symbols.
this allows not pulling in error macros in header
2021-04-27 12:45:24 +02:00
Arne Morten Kvarving
007fdc73aa
ERst: move template definition to cpp file
...
and use explicit template instantation to generate necessary symbols.
this allows not pulling in error macros in header
2021-04-27 12:45:24 +02:00
Arne Morten Kvarving
b9b71d7c1f
EclFile: move template definition to cpp file
...
only used internally. this allows not pulling in error macros in header
2021-04-27 12:45:24 +02:00
Arne Morten Kvarving
651fcc5dc0
EclipseGrid: forward types to avoid includes
2021-04-27 12:45:24 +02:00
Arne Morten Kvarving
079e51e8c0
DeckKeyword: forward types to avoid includes
2021-04-27 12:45:24 +02:00
Joakim Hove
0ef2bc1528
ActionX wait time compared with =>
2021-04-27 11:59:17 +02:00
Arne Morten Kvarving
b7fca24862
Merge pull request #2443 from totto82/bump_master
...
Bump version number
2021-04-27 10:13:28 +02:00
Tor Harald Sandve
6ad6283706
Bump version number
2021-04-27 09:59:50 +02:00
Joakim Hove
76286d9b97
Merge pull request #2426 from bska/support-voidage-smry
...
Summary: Support Voidage Vectors CV{I,P}{R,T}
2021-04-26 10:27:18 +02:00
Bård Skaflestad
7055a18a97
Summary: Support Voidage Vectors CV{I,P}{R,T}
...
This commit adds support for outputting the reservoir voidage volume
summary vectors CVPR (production rate), CVPT (cumulative production
total), CVIR (injection rate), and CVIT (cumulative injection total).
The simulator uses the 'data::Connection::reservoir_rate' member to
communicate these values, so add a special purpose evaluation
function to compute the requisite updates.
While here, also add 'CVPR' to the 'CONNECTION_PROBE'. This keyword
being missing looks to be an earlier oversight.
2021-04-24 20:27:17 +02:00
Bård Skaflestad
06d2520b07
Remove Executable Bit From Source Files
2021-04-24 20:27:17 +02:00
Joakim Hove
086b44c0fb
Merge pull request #2440 from akva2/fix_fallout_2438
...
Fix fallout from PR #2438
2021-04-24 08:27:12 +02:00
Arne Morten Kvarving
0fcbfac33d
fixed: missing member initialization
...
if deck has no rockcomp keyword, variable is not written
2021-04-23 22:18:52 +02:00
Arne Morten Kvarving
7a4e63c24b
Revert "Temp disable test"
...
This reverts commit aeb4ba3788 .
2021-04-23 22:09:35 +02:00
Bård Skaflestad
c62563a7e5
Merge pull request #2439 from joakim-hove/fix-rst
...
Inclide cstdlib to get EXIT_SUCCESS and EXIT_FAILURE
2021-04-23 20:31:47 +02:00
Joakim Hove
aeb4ba3788
Temp disable test
2021-04-23 19:12:33 +02:00
Joakim Hove
326b1638dc
Inclide cstdlib to get EXIT_SUCCESS and EXIT_FAILURE
2021-04-23 19:11:32 +02:00
Joakim Hove
2934a5ac1a
Merge pull request #2438 from akva2/avoid_gen_headers_in_headers
...
Avoid headers in headers
2021-04-23 17:30:59 +02:00
Bård Skaflestad
1bfc81c82f
Merge pull request #2437 from akva2/prune_boost_includes
...
changed: remove unnecessary boost includes
2021-04-23 16:09:57 +02:00
Arne Morten Kvarving
96da3d3c98
PlyshlogTable: remove unnecessary include
2021-04-23 13:05:08 +02:00
Arne Morten Kvarving
131a34f336
RockConfig: put some more code in cpp file
...
to avoid include files in header
2021-04-23 13:05:08 +02:00
Arne Morten Kvarving
c80da8bb6c
MessageLimits: put some more code in cpp file
...
to avoid include files in header
2021-04-23 13:05:08 +02:00
Arne Morten Kvarving
3307889464
Tabdims: put some code in separate compile unit
...
to avoid include files in header
2021-04-23 13:05:08 +02:00
Arne Morten Kvarving
6547376330
Regdims: put some code in separate compile unit
...
to avoid include files in header
2021-04-23 13:05:08 +02:00
Arne Morten Kvarving
625c33f18f
Eqldims: put some code in separate compile unit
...
to avoid include files in header
2021-04-23 13:05:08 +02:00
Arne Morten Kvarving
dcba5e2641
Aqudims: put some code in separate compile unit
...
to avoid include files in header
2021-04-23 13:05:05 +02:00
Arne Morten Kvarving
54979c1aed
Tuning: put some code in separate compile unit
...
to avoid include files in header
2021-04-23 13:05:01 +02:00
Arne Morten Kvarving
3a01bf6a51
TranCalculator: put some code in separate compile unit
...
to avoid include files in header
2021-04-23 13:04:53 +02:00
Arne Morten Kvarving
95925e8648
fix header guards
2021-04-23 13:04:53 +02:00
Arne Morten Kvarving
72ede7df50
changed: remove unnecessary boost includes
2021-04-23 11:27:38 +02:00
Joakim Hove
b1e76e0038
Merge pull request #2389 from GitPaean/using_pinched_grid_numerical_aquifer
...
Using pinched grid for numerical aquifer
2021-04-21 13:03:21 +02:00
Joakim Hove
9e3ad90b8a
Merge pull request #2434 from akva2/fix_serialize_valgrind
...
Fix some valgrind errors in test_ParallelRestart
2021-04-21 13:01:10 +02:00
Kai Bao
b3f53b2f04
renaming function names for numerical aquifers
...
following reviewing comment.
2021-04-21 09:35:54 +02:00
Arne Morten Kvarving
c7a7caff56
fixed: do no use [] to deref when checking for data
...
this causes default initialized objects if key is missing,
and these objects tend to have uninitialized members.
2021-04-21 09:33:24 +02:00
Arne Morten Kvarving
c817c4de33
fixed: missing data in serializeObjects
2021-04-21 09:33:24 +02:00
Arne Morten Kvarving
84c2d2239e
simplify
...
this is a vector of POD so we can use the primitive serializer directly
2021-04-21 09:33:24 +02:00
Arne Morten Kvarving
c99c8e1193
fixed: initialize data
...
can cause uninitialized data usage when default constructed
2021-04-21 09:33:24 +02:00
Joakim Hove
ca03815efe
Merge pull request #2433 from totto82/fldNO
...
let cmode FLD override yes/no in item8 in GCONPROD and GCONINJE
2021-04-21 08:44:28 +02:00
Tor Harald Sandve
49bac6f251
let cmode FLD override yes/no in item8 in GCONPROD and GCONINJE
2021-04-20 11:29:45 +02:00
Kai Bao
4e911f1c88
splitting generation of the numerical aquifer connections to two steps
...
generate all the connections specified in the deck records first, then
filter out the wrong ones using processed grid later. The refactoring is
to avoid using the Deck explicitly in opm-grid.
2021-04-20 00:35:17 +02:00
Bård Skaflestad
d7389f9b3c
Merge pull request #2431 from totto82/addSwitchEvent
...
add event for switching from injector to producer
2021-04-16 19:04:14 +02:00
Bård Skaflestad
1c915d5c9c
Merge pull request #2432 from goncalvesmachadoc/welltemp_output
...
Fix Well Temperature Output
2021-04-16 18:56:54 +02:00
Cintia Goncalves Machado
a9f3909f13
fixWellTempOutput
2021-04-16 16:50:12 +02:00
Tor Harald Sandve
7b8b83645b
add event for switching from injector to producer
2021-04-16 13:39:33 +02:00
Joakim Hove
a48c3829d7
Merge pull request #2429 from blattms/fix-compile-g++10.2
...
Include stdexcept header to fix compilation with g++-10
2021-04-15 14:36:29 +02:00
Markus Blatt
b240e66503
Include stdexcept header to fix compilation with g++-10
2021-04-15 11:51:57 +02:00
Joakim Hove
b7c4bde0e9
Merge pull request #2428 from joakim-hove/optional-guiderate-model
...
Use std::optional<> in GuideRateConfig
2021-04-15 08:15:42 +02:00
Kai Bao
ea293b8353
make sure NNC is from low to high for numerical aquifers.
2021-04-14 21:11:10 +02:00
Kai Bao
9517d9bdae
removing an unused function aquiferNNCs()
...
and using std::make_move_iterator following review comments.
2021-04-14 21:11:10 +02:00
Kai Bao
08539cdcd6
fixing AquiferTests
2021-04-14 21:11:10 +02:00
Kai Bao
67d56cd637
adding methond to set NNC for EclipseState
...
it needs to be updated after grid processing.
2021-04-14 21:11:10 +02:00
Kai Bao
36f714381d
using pinched grid for numerical aquifer
2021-04-14 21:11:10 +02:00
Kai Bao
276530fcde
neighborCellInsideReservoirAndActive function takes extra actnum
2021-04-14 21:11:10 +02:00
Joakim Hove
05366912fc
Merge pull request #2380 from bska/output-aquifer-to-restart
...
Add Restart Output Facility for Analytic Aquifer Data
2021-04-14 20:59:49 +02:00
Bård Skaflestad
ef5a74392e
Address Review Comments
...
Use SummaryState::get() with default, std::size instead of distance,
and a named constant for the aquifer model type.
2021-04-14 20:58:19 +02:00
Bård Skaflestad
d43e358d01
Activate Aquifer Restart Output
...
This commit hooks the aquifer restart output facility (output arrays
{I,S,X}AAQ and {I,S,A}CAQ) up to the general "RestartIO" module. If
a simulation run uses analytic aquifers we construct an aquifer
output object at simulation start and store this in an optional<> in
the internal implementation object. Otherwise the optional holds
nullopt. We expand RestartIO::save() to take such an optional by
reference and aggregate/output aquifer information, directly after
the well information, if the optional holds a value. Update callers
accordingly.
2021-04-14 20:58:19 +02:00
Bård Skaflestad
a36b8bd4bb
Centralise Aquifer Dimension Handling in INTEHEAD
...
This commit switches the INTEHEAD factory function to passing
dimensions related to aquifers by means of the 'AquiferDims'
structure. While here, also update description and names of a few
aquifer-related INTEHEAD items to reflect more recent understanding.
2021-04-14 20:58:19 +02:00
Bård Skaflestad
0edf6673ba
Add Restart Output Facility for Analytic Aquifer Data
...
We support both Fetkovich and Carter-Tracy aquifers. We presently
output trivial values only in the 'ACAQ' (per-connection, double
precision elements), but otherwise assemble reasonable values for
many items.
We leverage the fact that the aquifer connections do not change
throughout the simulation run. The "Aggregate" API is therefore
constructed in such a way that most of the expensive operations
(e.g., mapping active cell IDs to their columnar counterparts)
happens once (in the constructor) and the per-aquifer operations are
performed for each restart output step. We intend that one aquifer
output object be constructed at the start of the simulation run, if
needed, and that this object will live until simulation shutdown.
2021-04-14 20:58:19 +02:00
Bård Skaflestad
0aea5c1e20
Hook Aquifer Dimensions Up to 'Runspec' Constructor
...
Forgotten in 796318409 (PR #2338 ).
2021-04-14 20:58:19 +02:00
Bård Skaflestad
762e256d2b
Make "WindowedArray" a Movable Type
...
Needed to put such objects into standard containers.
2021-04-14 20:58:19 +02:00
Bård Skaflestad
0e5a7a335b
Order Aquifer Connections by Global Index
...
We need a stable connection order for restart purposes.
2021-04-14 20:58:19 +02:00
Bård Skaflestad
e477409373
Reduce Analytic Aquifer Compilation Overhead
...
In particular, switch to using forward declarations instead of
transitive includes in headers and especially of 'Deck'-related
headers.
2021-04-14 20:58:19 +02:00
Joakim Hove
39dab54321
Use std::optional<> in GuideRateConfig
2021-04-14 19:57:59 +02:00
Joakim Hove
a93c75ed2f
Merge pull request #2425 from joakim-hove/optional-topup-phase
...
Return std::optional<Phase> for Group::topup_phase()
2021-04-14 19:56:54 +02:00
Joakim Hove
4ab4f0407f
Return std::optional<Phase> for Group::topup_phase()
2021-04-14 11:28:36 +02:00
Joakim Hove
a6bdda7b27
Merge pull request #2420 from tskille/fix_erst
...
fixing bug for python bindings ERst
2021-04-14 10:05:59 +02:00
Bård Skaflestad
bdd0c9d351
Merge pull request #2424 from tskille/vfp_iglr
...
fixing ALQ Type IGLR
2021-04-13 21:01:29 +02:00
Bård Skaflestad
2afb2ddd1e
Merge pull request #2421 from tskille/latest_emodel
...
new python bindings class EModel
2021-04-13 18:13:12 +02:00
Torbjørn Skille
5b73f17652
fixing ALQ Type IGLR
2021-04-13 11:21:27 +02:00
Torbjørn Skille
94e541ad60
new python bindings class EModel
2021-04-13 10:42:43 +02:00
Torbjørn Skille
6003736221
fixing bug for python bindings ERst
...
> bug related to occurence parameter in function get_erst_vector(..)
> additional python unittest related to this function
2021-04-11 08:48:23 +02:00