opm-common icon indicating copy to clipboard operation
opm-common copied to clipboard

Defer Triggering WELSPECS Report to Simulator Side

Open bska opened this issue 9 months ago • 2 comments

This achieves two goals

  1. It ensures proper sequencing with respect to other PRT file reports.
  2. It simplifies generating WELSPECS reports in restarted simulation runs.

To this end, amend Schedule::changed_wells() to accept an "initial step" parameter, default value zero, which can be used to control whether to list all wells as "changed" at the first step of a restarted run. Furthermore, don't emit a WELSPECS header from the PrtFile::Reports::wellSpecification() function. We defer this responsibility to the simulator side.

Finally, fix a small mistake that would always visualise the group hierarchy at the beginning of the simulation run instead of at the current report step.

bska avatar Mar 25 '25 16:03 bska

I'm creating this PR in draft mode for two reasons:

  1. It depends on, and contains, the earlier PR #4534.
  2. It should be reviewed and merged together with the downstream PR OPM/opm-simulators#6107 to avoid losing the WELSPECS report, even briefly.

I will keep the PR in a draft state until such time as it is ready for review and merging.

bska avatar Mar 25 '25 16:03 bska

jenkins build this opm-simulators=6107 please

bska avatar Mar 25 '25 16:03 bska

Tested in Equinor. Results are good and looking forward to seeing this go into master.

tskille avatar Apr 01 '25 07:04 tskille

Tested in Equinor. Results are good and looking forward to seeing this go into master.

Thank you for testing. This is greatly appreciated!

bska avatar Apr 01 '25 07:04 bska

The earlier PRs have all been merged into the master branch so I'm marking this and its downstream companion PR OPM/opm-simulators#6107 as "ready for review". As noted before, the two PRs should be reviewed/merged in concert although this PR technically does not require the downstream PR to work.

bska avatar Apr 03 '25 11:04 bska

jenkins build this opm-simulators=6107 please

bska avatar Apr 03 '25 11:04 bska

jenkins build this opm-simulators=6107 please

bska avatar Apr 03 '25 14:04 bska

PR approved and build check is green. I'll merge into master.

bska avatar Apr 03 '25 14:04 bska