Skip to content

Does Options DTRT for flag options yet? #26

@JHopeCollins

Description

@JHopeCollins

What does this comment mean? Is it still true? If yes, should we open a PETSc issue? If not, can we get rid of this and use PETSc.Options(self.options_prefix) instead?

# Now update parameters from options, so that they're
# available to solver setup (for, e.g., matrix-free).
# Can't ask for the prefixed guy in the options object,
# since that does not DTRT for flag options.
for k, v in self.options_object.getAll().items():
if k.startswith(self.options_prefix):
self.parameters[k[len(self.options_prefix):]] = v

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions