Skip to content

Fix gw scaling#4911

Draft
totto82 wants to merge 3 commits intoOPM:masterfrom
totto82:fix_gw_scaling
Draft

Fix gw scaling#4911
totto82 wants to merge 3 commits intoOPM:masterfrom
totto82:fix_gw_scaling

Conversation

@totto82
Copy link
Copy Markdown
Member

@totto82 totto82 commented Jan 20, 2026

No description provided.

@totto82
Copy link
Copy Markdown
Member Author

totto82 commented Jan 20, 2026

jenkins build this failure_report please

Copy link
Copy Markdown
Member

@bska bska Jan 20, 2026

Choose a reason for hiding this comment

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

This looks a little unexpected to me. Are you sure that you want this change? Please note that enableSatScaling() is true if any kind of end-point scaling is active in the run–e.g., the ENDSCALE keyword is active or any of the horizontal scaling vectors like SWL, SGCR, or SGU are present.

On the other hand, enablePcScaling() and enableKrwScaling()/enableKrnScaling() return true only if the corresponding vertical scaling keywords–PCW/PCG, KRW/KRG, or KRGR/KRWR–are present in the run. That's a very different condition.

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.

No, this is not what I want. I have a case with Leverett Scaling that's causing me some trouble, and this PR is supposed to fix it. But I still have some work to make sure it doesn't mess up the other cases.

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.

I still have some work to make sure it doesn't mess up the other cases.

Right. But then please note that unless you intend to fully change the meaning of enablePcScaling() &c, you can't use that predicate family to determine whether or not horizontal (i.e., saturation) end-point scaling is active.

@totto82
Copy link
Copy Markdown
Member Author

totto82 commented Jan 21, 2026

jenkins build this failure_report please

1 similar comment
@totto82
Copy link
Copy Markdown
Member Author

totto82 commented Jan 21, 2026

jenkins build this failure_report please

@totto82
Copy link
Copy Markdown
Member Author

totto82 commented Jan 23, 2026

A proper fix has been made in #4923, but I'm keeping this open as it seems unnecessary to scale horizontally if only vertical scaling is needed. I will keep in in draft as some more work is needed in order to make sure horizontalscaling is activated for all input

@totto82
Copy link
Copy Markdown
Member Author

totto82 commented Feb 9, 2026

@bska What do you think? Could it be worthwhile to activate horizontal scaling only when necessary to gain some speedup? ENDSCALE + SWATINIG is a common setup that only requires vertical scaling. If we want to conditionally activate horizontal scaling, we need to check whether any horizontal scaling inputs are present.

@bska
Copy link
Copy Markdown
Member

bska commented Feb 9, 2026

Could it be worthwhile to activate horizontal scaling only when necessary to gain some speedup?

Maybe. We need to measure in order to assess the potential gains from that change.

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