[petsc-dev] About -ksp_view

Ryan Yan vyan2000 at gmail.com
Sun May 8 10:17:17 CDT 2011


Dear Jed,
Great solution, and both ways worked!

Thanks a lot,
Yan

On Sun, May 8, 2011 at 11:12 AM, Jed Brown <jed at 59a2.org> wrote:

> 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/ef912b5c/attachment.html>


More information about the petsc-dev mailing list