Skip to content

Initial conditions for use with the Jacobian debugger #25394

Answered by lindsayad
Sina-av asked this question in Q&A Tools
Discussion options

You must be logged in to vote

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 the analyze_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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Sina-av
Comment options

Answer selected by Sina-av
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants