New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save and Restore ICD Scaling Factor for SICDs Too #3978
Draft
bska
wants to merge
7
commits into
OPM:master
Choose a base branch
from
bska:load-icd-scaling-factor
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I am creating this PR in draft mode because we will need considerable testing before we enable this in the master branch. Furthermore, some of the unit tests fail on my local development machine so I need to analyse those failures before marking this as "ready for review". |
bska
changed the title
Save and Restart ICD Scaling Factor for SICDs Too
Save and Restore ICD Scaling Factor for SICDs Too
Mar 8, 2024
bska
force-pushed
the
load-icd-scaling-factor
branch
6 times, most recently
from
March 18, 2024 11:29
46e4ebe
to
724686d
Compare
bska
force-pushed
the
load-icd-scaling-factor
branch
8 times, most recently
from
March 22, 2024 14:48
3f6b392
to
9091496
Compare
bska
force-pushed
the
load-icd-scaling-factor
branch
14 times, most recently
from
April 8, 2024 13:53
ab2f5e2
to
0c352bc
Compare
bska
force-pushed
the
load-icd-scaling-factor
branch
9 times, most recently
from
April 18, 2024 09:19
4ab3cdb
to
65ad93e
Compare
bska
force-pushed
the
load-icd-scaling-factor
branch
3 times, most recently
from
April 25, 2024 12:23
95573b4
to
8965de6
Compare
bska
force-pushed
the
load-icd-scaling-factor
branch
7 times, most recently
from
May 3, 2024 16:14
166fda3
to
ac1b2a2
Compare
bska
force-pushed
the
load-icd-scaling-factor
branch
3 times, most recently
from
May 8, 2024 10:40
1f90c9c
to
75d0a4a
Compare
The ICD length must not be converted as if it is a volumetric rate.
Mostly by adjusting whitespace, and by switching to using compiled strings for item references. While here, switch to using defaulted default constructors where possible
In particular, add such constructors to the SICD, AutoICD, and Valve types. While here, switch to using the native 'int' value for the ICD status and move conversion to the individual .cpp files.
That way, we defer responsibility to the classes which know most about how to restore their internal state from restart information.
In particular, switch to using a native 'int' to represent the segment type, and defer inspecting the value until we get to the Segment::Segment(const RstSegment&) constructor. That way, the low-level restart information input routines do not depend on higher-level type information.
While here, extract common item handing for AICDs and SICDs out to a separate helper routine to avoid repeating the logic on the output side.
bska
force-pushed
the
load-icd-scaling-factor
branch
from
May 13, 2024 12:07
75d0a4a
to
097eb5b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously, we would save this information–but never restore it–only for autonomous ICDs ("AICD"). This PR expands our restart support for segment level "devices" (Spiral ICDs, Autonomous ICDs, Valves) to utilise more of the information that is available in the restart file. We introduce constructors for the device types from
RstSegment
and defer the reconstitution to those constructors.While working on this, I also noticed a problem in the current master sources. The
icd_length
is treated as if it represents a volumetric flow rate at reservoir conditions, but it must be treated as a length.