how to set options from a string (PetscOptionsInsertString)?

Issue #81 resolved
Robert Cimrman created an issue

Hi Lisandro,

is it possible to set PETSc options during runtime from a string that contains options separated by blanks just like on the command-line? There is [1], but I do not see it in the petsc4py Options interface. Is there a workaround? I could set the options one by one, but then I would need to parse the string, and the options with values make that non-trivial.

Thanks! r.

[1] http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscOptionsInsertString.html

Comments (3)

  1. Log in to comment