Skip to content

lgr: unrefined twin deck for a field-totals comparison - #1558

Merged
bska merged 2 commits into
OPM:masterfrom
hnil:pr/lgr-fip-invariance
Aug 14, 2026
Merged

lgr: unrefined twin deck for a field-totals comparison#1558
bska merged 2 commits into
OPM:masterfrom
hnil:pr/lgr-fip-invariance

Conversation

@hnil

@hnil hnil commented Aug 12, 2026

Copy link
Copy Markdown
Member

Adds lgr/SPE1CASE1_CARFIN1-3DCORNERPOINT_XYZ_NOLGR.DATA: the existing ..._XYZ deck with the CARFIN block removed and nothing else changed. Both decks gain FOIP/FGIP/FWIP/FRPV/FHPV (the refined one already asked for FPR).

Refining part of the grid must not change the field totals, so the pair can be compared against each other — no reference data, and nothing existing is perturbed (the ..._XYZ deck is not currently used by any test).

The companion test is OPM/opm-simulators#7315. Measured with both decks on the fixes in #7245 + #7244:

refined unrefined
FPR 4992.268066 4992.268066
FOIP 8.513534e+07 8.513534e+07
FGIP 1.081219e+08 1.081219e+08
FRPV 1.832981e+08 1.832981e+08
FHPV 1.429725e+08 1.429725e+08

On current master every one of these is 0 for the refined deck — all cell-based output is dropped when an LGR is present.

…efinement

Refining part of the grid must not change the field totals.  The new deck is
SPE1CASE1_CARFIN1-3DCORNERPOINT_XYZ with the CARFIN block removed and nothing
else changed; both gain the in-place summary vectors so the comparison has
something to check.

No reference data is involved: the two runs are compared against each other.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

@bska bska left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good. Please update the top-level description of the _NOLGR model to reflect the actual purpose of the simulation model.

Comment on lines +11 to +12
-- Test case for LGR grid, CARFIN and ENDFIN keyword are used.
--3D CORNER POINT CASE WITH NON-ACTIVE CELL, LGR on grids 6,6,1:3 and non-active cells are 6,5,1:3

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny nit: This description is not accurate since there are no local grids in this model. Please update the description to reflect what's actually included here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed - the header now says it is the unrefined reference for the CARFIN deck and why it exists, rather than the copied LGR text.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@bska

bska commented Aug 14, 2026

Copy link
Copy Markdown
Member

jenkins build this please

@bska bska left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed - the header now says it is the unrefined reference for the CARFIN deck and why it exists, rather than the copied LGR text.

Greatly appreciated–thanks a lot for the updates. I'll merge this into the master branch now.

@bska
bska merged commit f4406b6 into OPM:master Aug 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants