-
Notifications
You must be signed in to change notification settings - Fork 129
using the converting from scalar to DynamicEvaluation #6520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
jenkins build this opm-common=4673 please |
|
There is a failure, I am looking into this. |
|
Accidentally found that case GASCONDENSATE_VAPWAT_PRECSALT.DATA can not be run by flow. Will raise an issue. |
90261fc to
b9ab0ab
Compare
9f53bbb to
35a651c
Compare
35a651c to
b48f753
Compare
|
jenkins build this please |
b48f753 to
90c98a9
Compare
| 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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
atgeirr
left a comment
There was a problem hiding this 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.
90c98a9 to
4e34efb
Compare
|
jenkins build this please |
|
I could not reproduce the failure locally. Will ask jenkins again. |
|
jenkins build this please |
|
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. |
using the development from OPM/opm-common#4673 .