[petsc-users] petsc4py: Passing command line switches
Florian Lindner
mailinglists at xgm.de
Wed Mar 25 10:13:59 CDT 2015
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.
Thanks,
Florian
More information about the petsc-users
mailing list