The residual matrix and the output of the Jacobian matrix #31876
-
Check these boxes if you have followed the posting rules.
QuestionDear moose team, i have used the AD class,and i want to see the Residual Matrix and Jacobian Matrix as the title , Is there any setting that can directly output these in one step? thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Hello Which solve method (execution solve_type) are you using? The residual vector can be output using the residual aux for each equation The Jacobian matrix can be output using petsc command line arguments such as -ksp_view_pmat if the Jacobian is used for preconditioning |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.

if you use
then
-ksp_view_pmaton the command line will show the jacobianon the petsc manual for sure
https://petsc.org/release/manual/other/#sec-options