I'm solving a series of linear problems, two of which use PETScOptions
. Unfortunately, the PETScOptions
are global (yikes!), so to avoid interference between the solvers, I'll have to manually clear them.
There's clear()
, but it takes a string option, I suppose for the option I want cleared. However, I want to clear _all_ options.
If there's an alternative to PETScOptions
that's doesn't have a global state, that'd be great to hear about as well.
Any hints?