[petsc-dev] About -ksp_view
Jed Brown
jed at 59A2.org
Sun May 8 10:12:50 CDT 2011
On Sun, May 8, 2011 at 17:09, Ryan Yan <vyan2000 at gmail.com> wrote:
> PetscOptionsSetValue("-ksp_view","1"); at very begin of the code, right
> after
> PetscInitialize.
>
> But it seems like only the command line option "-ksp_view " will bring me
> the information on ksp.
> The function call does not seem to response.
>
The -ksp_view output is going into a file named "1". I think
PetscOptionsSetValue("-ksp_view",""); will do what you want. Note that you
can just call KSPView(ksp,PETSC_VIEWER_STDOUT_WORLD); after the solve.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20110508/402422bd/attachment.html>
More information about the petsc-dev
mailing list