-
Notifications
You must be signed in to change notification settings - Fork 130
investigate potentially problematic updating of well status from action handler #6602
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
base: master
Are you sure you want to change the base?
investigate potentially problematic updating of well status from action handler #6602
Conversation
|
jenkins build this failure_report please |
|
The commented line seems to be needed currently for shut-instructions during actions to function properly |
|
What does the compareSeparateECLFiles do? The failures are not plotted. mpi.compareSeparateECLFiles_flow+actionx_wlist |
I haven't looked at these in detail, but appears they compare results from two decks that only differ in actionx/udq setup, but that should result in the same logic (but doesn't with this change). |
Thanks for the response. Maybe those should also be in the |
|
i guess we can but there is no ground truth so there is no telling what is good and bad data from the plots. |
yes, you are right. I think those tests want two runs generate the similar enough results. Plotting can show the difference more directly, especially the well behavoirs. |
|
yes i know that, but my point is you can't tell from the plots which of the simulation(s) was changed by your changes. the only thing we know is that they are supposed to be identical, and we already detect that they are not. i can add it, i just think its usefulness is limited. |
|
in fact, in this case it shows absolutely nothing. results are identical, timestepping differs, https://ci.opm-project.org/job/opm-simulators-PR-builder/9004/ |
from the curves, time stepping should also be the same? |
both curves have 21 time steps? I might see things wrong. |
|
no, time stepping is not the same. you can see it from the error output, one file uses 21 timesteps, one uses 17. |
yes, but the question is that no curves in the plotting use 17 time steps. both have more than 20 time steps. Excuse me if I read the plot wrong. |
|
correct you are, it did use the same results for both curves. should be ok now. |
|
more useful now i guess, https://ci.opm-project.org/job/opm-simulators-PR-builder/9008/ |
Yes. Actually showing well curves are identical/similar is also something helpful, because there is no obvious behavoir difference except rounding errors. |
|
jenkins build this opm-common=4832 failure_report please |
1 similar comment
|
jenkins build this opm-common=4832 failure_report please |
|
jenkins build this failure_report please |
|
I realized this is rather complicated. ws.updateStatus(well.getStatus());
ws.update_type_and_targets(well, st);through It only updates the well status and re-initialize a new well state. There might not be much value to copy from it in |
|
I think now the key issue is that with the following code, when called through Will try to come up with a suggestion. We might need to refactor the function |
As discussed in #6587, shut wells opened through actions will wrongly get a
prevStatestatus OPEN when entering the initialization phase in the next time-step. This leads to initialization problems (circumvented by #6587).Discussed with @bska whether it also could have other implications. Reason for the problem is the
ws.updateStatus()inBlackoilWellModelGeneric<>::updateEclWellsConstraints(). It's probably there for a reason, so just running through the tests to see if anything is triggered by commenting it out.