Expose RMS seed value from RMS_SEED_USED file as a realization parameter - #14400
Open
magnesj wants to merge 2 commits into
Open
Expose RMS seed value from RMS_SEED_USED file as a realization parameter#14400magnesj wants to merge 2 commits into
magnesj wants to merge 2 commits into
Conversation
…duce file system access
This file contains hidden or 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
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.
Fixes #14391
Expose the RMS seed value from the
RMS_SEED_USEDfile as a realization parameter, making it available for filtering, grouping, coloring, histograms, and correlation plots like any other ensemble parameter.Changes
RifRmsSeedFileReaderwith a locator that searches forrms/model/RMS_SEED_USEDin the parent directories of the summary model path (same walk-up pattern as the parameters file locator, using cheap existence checks instead of directory enumeration), and a parser that reads the seed value from the last token of the last non-empty line, supporting content like25-07-2025 10:33:06 ... 81472369. Missing or malformed files are ignored silently.RMS_SEED_USEDinaddCaseRealizationParametersIfFound(), next to the existingRI:REALIZATION_NUMinjection, covering both the sequential and parallel ensemble import paths. The nameRMS_SEED_USEDis used instead ofRMS_SEEDto avoid colliding with theRMS_SEEDdesign parameter commonly present in FMUparameters.txtfiles.addCaseRealizationParametersIfFound()when a located parameters file did not produce a reader or parsing threw.realization-1/iter-0directory layout, multi-line files, and invalid content.RifEnsembleImportConfigwith an RMS seed file path pattern so large ensembles avoid per-realization file system searches: the file is located for the first two realizations only, and the path for all other realizations is derived by pattern substitution, matching the existing parameter file mechanism. When the first two realizations have no seed file, seed lookup is skipped entirely for the remaining realizations.Verified with the Drogon AHM ensemble, where
RMS_SEED_USEDshows up as an ensemble parameter with the expected per-realization seed values.