Skip to content

Conversation

@GitPaean
Copy link
Member

@GitPaean GitPaean commented Oct 7, 2025

using the development from OPM/opm-common#4673 .

@GitPaean GitPaean added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Oct 7, 2025
@GitPaean
Copy link
Member Author

GitPaean commented Oct 7, 2025

jenkins build this opm-common=4673 please

@GitPaean
Copy link
Member Author

GitPaean commented Oct 7, 2025

@GitPaean
Copy link
Member Author

GitPaean commented Oct 7, 2025

Accidentally found that case GASCONDENSATE_VAPWAT_PRECSALT.DATA can not be run by flow. Will raise an issue.

@GitPaean GitPaean force-pushed the using_scalar_dynamic_evaluation branch from 90261fc to b9ab0ab Compare October 8, 2025 12:45
@GitPaean GitPaean marked this pull request as ready for review October 8, 2025 13:46
@GitPaean GitPaean force-pushed the using_scalar_dynamic_evaluation branch 5 times, most recently from 9f53bbb to 35a651c Compare October 20, 2025 11:29
@GitPaean GitPaean force-pushed the using_scalar_dynamic_evaluation branch from 35a651c to b48f753 Compare October 27, 2025 22:28
@GitPaean
Copy link
Member Author

jenkins build this please

@GitPaean GitPaean requested review from atgeirr and bska October 28, 2025 14:59
@GitPaean GitPaean force-pushed the using_scalar_dynamic_evaluation branch from b48f753 to 90c98a9 Compare October 30, 2025 11:34
EvalWell out(in.value());
for(int eqIdx = 0; eqIdx < Indices::numEq;++eqIdx) {
out.setDerivative(eqIdx, in.derivative(eqIdx));
out.setDerivative(eqIdx, in.derivative(eqIdx), primary_variables_.numWellEq() + Indices::numEq);
Copy link
Member

Choose a reason for hiding this comment

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

I believe this change is correct, but the old code seems a little clearer to me here.

Copy link
Member Author

Choose a reason for hiding this comment

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

because the out is initialized with a scalar. It does not carry derivatives.

So when we setDerivative, we have to specify the number of the derivatives.

Copy link
Member

@atgeirr atgeirr left a comment

Choose a reason for hiding this comment

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

Looks good to me, only nitpick is the extendEval() issue commented on. If you prefer the new code there I do not insist on reverting it.

@atgeirr atgeirr changed the title using the converting from scalar to DyanmicEvaluation using the converting from scalar to DynamicEvaluation Nov 3, 2025
@GitPaean GitPaean force-pushed the using_scalar_dynamic_evaluation branch from 90c98a9 to 4e34efb Compare November 3, 2025 10:08
@GitPaean
Copy link
Member Author

GitPaean commented Nov 3, 2025

jenkins build this please

@GitPaean
Copy link
Member Author

GitPaean commented Nov 3, 2025

I could not reproduce the failure locally. Will ask jenkins again.

https://ci.opm-project.org/job/opm-simulators-PR-builder/8961/testReport/junit/(root)/mpi/co2injection_flash_ni_ecfv/

@GitPaean
Copy link
Member Author

GitPaean commented Nov 3, 2025

jenkins build this please

@GitPaean
Copy link
Member Author

GitPaean commented Nov 3, 2025

The jenkins is green now. It looks like that it was some hiccups. Since it is approved and I am getting the PR in now.

@GitPaean GitPaean merged commit 6602439 into OPM:master Nov 3, 2025
2 checks passed
@GitPaean GitPaean deleted the using_scalar_dynamic_evaluation branch November 3, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual:irrelevant This PR is a minor fix and should not appear in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants