Dear community,
I'd like to set petsc command line options for my PETScSNESSolver. However, the options are not passed to the solver. MWE:
args = """
--petsc.snes_monitor
--petsc.snes_atol 0.0
--petsc.snes_max_it 10""".split()
parameters.parse(args)
solver = PETScSNESSolver()
snes = solver.snes()
snes.setFromOptions()
snes.getTolerances()
gives the default settings
(1e-08, 1e-50, 1e-08, 50)
How does it work?
Thanks!
David
edit: Actually it seems to work. Though not very well with interactive IPython sessions; once set, the options cannot be changed. That was my mistake.