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
MooseVariable needs to be cleaned up #9690
Comments
I can work on this if you all agree. |
A few comments before you start doing anything.
|
You did not read my post carefully. The method missing |
In #9690, you have an elemental object, i.e. case 2, but calling API for case 3. That's why your code fails. Use the right API and all will be fine. The reason why we do not need |
This issue is vague and I feel I am done on cleaning up. So closing. |
Description of the enhancement or error report
Few things I have noticed in the past:
_need_xxx
are not set correctly, such asnodalSln()
not setting_need_nodal_u
. This is a subtle bug;computeXXXValues
;computeXXXValues
into two parts: one is actuallycomputeNodalValues
, just copying the dofs out from the solution vectors, another is for evaluating quantities on quadrature points. In this way, early exit will be easily enabled;_need_xxx
, such asslnOld()
is dangerous and should be disabled. This can be done withmooseError
ormooseAssert
with the flag provided byFEProblem
in those calls;Rationale for the enhancement or information for reproducing the error
Although I really do not want to do this because
MooseVariable
is at the critical code path, it is time to fix these issues.Identified impact
(i.e. Internal object changes, limited interface changes, public API change, or a list of specific applications impacted)
Should be none. Fixing item 4 might require application patches.
The text was updated successfully, but these errors were encountered: