-
Hi all! I want to check the Jacobian of a Moose app that I am writing with the help of the Jacobian debugger file,
Where Based on the webpage for the Jacobian debugger, it is recommended to use random initial conditions (ICs) to ensure that the values and gradients of the variables are non-zero. In line with the use of ICs for the Jacobian debugger, I have some questions:
Thank you so much. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I myself do not use the I usually pair this with DOFMap output to help ascertain what variable's Jacobian entries are bad |
Beta Was this translation helpful? Give feedback.
I myself do not use the
analyze_jacobian.py
script. I typically reduce my mesh size to be quite small, and then I run my simulation as normal, but with the PETSc command line options-snes_test_jacobian -snes_test_jacobian_view
(these options are at the core of theanalyze_jacobian.py
script). With these options you can run your simulation for arbitrarily many time steps and so you will certainly test things like non-zero gradients.I usually pair this with DOFMap output to help ascertain what variable's Jacobian entries are bad