Skip to content

When are materials evaluated? #16710

Discussion options

You must be logged in to vote

Evaluations 2 and 3 (residual and jac) are indeed a (known) underoptimization in the framework with AD (automatic differentiation) at least. But it looks like you are using material objects that manually calculate a jacobian contribution along with every residual evaluation. In that case - the material object just needs to be smarter. Materials can ask the framework what operation (residual/jac) is triggering a given material evaluation - those materials could be updated to query that state and omit unnecessary calcs accordingly.

With respect to the redundant work when using AD - there are some subtleties about how the residual and jacobian calcs are integrated between MOOSE and PETSc tha…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lindsayad
Comment options

Answer selected by GiudGiud
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants