Skip to content

MODULUS scaling bug - wrong index used in loop#13880

Merged
magnesj merged 2 commits intodevfrom
fix-modulus-calculation-geomech
Apr 16, 2026
Merged

MODULUS scaling bug - wrong index used in loop#13880
magnesj merged 2 commits intodevfrom
fix-modulus-calculation-geomech

Conversation

@magnesj
Copy link
Copy Markdown
Member

@magnesj magnesj commented Apr 15, 2026

Closes #13875

Comment thread ApplicationLibCode/FileInterface/RifElementPropertyReader.cpp Outdated
…icated code

The range-based loop used the outer column index 'i' as the element index, causing only one slot to be written while all others remained zero. Extracted scaleColumnIfModulus() helper to remove duplication between both branches.
@magnesj magnesj force-pushed the fix-modulus-calculation-geomech branch from 7b854e6 to 6596bbf Compare April 16, 2026 14:41
@magnesj magnesj merged commit 7d2d1b8 into dev Apr 16, 2026
18 checks passed
@magnesj magnesj deleted the fix-modulus-calculation-geomech branch April 16, 2026 15:10
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.

RifElementPropertyReader: MODULUS scaling bug - wrong index used in loop

2 participants