[petsc-users] Output newton step
Barry Smith
bsmith at mcs.anl.gov
Mon Nov 30 16:56:50 CST 2015
> On Nov 30, 2015, at 2:19 PM, Alex Lindsay <adlinds3 at ncsu.edu> wrote:
>
> Is there an option for outputting the Newton step after my linear solve?
>
> Alex
Do you want the solution of the linear system before the line search (line search may shrink the vector) use -ksp_view_solution or the actual update selected by Newton -snes_monitor_solution_update
If you use the master branch of PETSc then both of these flags take the option
[ascii or binary or draw][:filename][:viewer format]
allowing printing as ascii, binary or drawing the solution in a window (Drawing only works for DMDA 1d or 2d).
Barry
For the release version of PETSc it saves the vectors in a binary file called binaryoutput
More information about the petsc-users
mailing list