[petsc-users] petsc4py: Passing command line switches
Matthew Knepley
knepley at gmail.com
Wed Mar 25 10:17:45 CDT 2015
On Wed, Mar 25, 2015 at 10:13 AM, Florian Lindner <mailinglists at xgm.de>
wrote:
> Hello,
>
> I'm using the petsc4py. It works fine after some hurdling with missing
> documentation. (were not able to find API doc anywhere, I generated it
> myself now).
>
> I try to use the switches like -ksp_monitor like that:
>
> import petsc4py
> from petsc4py import PETSc
>
> petsc4py.init(sys.argv)
>
> but no reaction when calling my script like that:
>
> python prbf.py -ksp_monitor
>
> What am I doing wrong? I also tried calling init before importing PETSc
> but no changes.
>
Did you remember to call setFromOptions() on the KSP? We do not configure
anything from
the command line unless you tell us to. That way, people can do things
solely from the API
is they want.
How did you generate the documentation?
Thanks,
Matt
> Thanks,
> Florian
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150325/545f22dc/attachment.html>
More information about the petsc-users
mailing list