linear backend command line options as a field in parameters
Would it be possible to add a field to a solver's set of parameters with command line options you would like to pass it?
I'm using PETSc as my backend and set some parameters globally (via PETScOptions) but when I have two solvers in the same script, I'd like to set parameters individually. The parameters structure has some fields, but I think it would be more efficient/effective to be able to pass a set of options like I would if I were running the solver from the command line.
Comments (9)
-
-
- changed milestone to 1.4
-
- changed milestone to 1.5
-
- changed milestone to 1.6
-
- changed milestone to 1.7
-
- changed milestone to 1.6
-
assigned issue to
-
This is partly fixed in b8a6b2f . A full fix requires a clean up if the logic in the PETSc wrappers, especially for PETScSNESSolver, which will come later.
-
- removed milestone
Removing milestone: 1.7 (automated comment)
-
- edited description
- changed status to resolved
It's possible now to use the PETSc options database without DOLFIN messing with it, and PETSc objects can have PETSc prefixes attached.
- Log in to comment
This should be easy - we just need to make it possible to set the PETSc parameter namespace for any PETSc object.