[petsc-users] About the "PetscOptionsSetValue" usage
Jed Brown
jed at 59A2.org
Fri Dec 10 13:09:33 CST 2010
On Fri, Dec 10, 2010 at 19:54, Filippo Spiga
<filippo.spiga at disco.unimib.it>wrote:
> I know that it is possible to use API to set parameters (KSPSetType,
> SNESSetType). But a lot of options of HYPRE or SUPERLU for example have no
> API. Instead of mix option from command-line and API I would like to put
> everything in a config file
You might be interested in the -options_file command line option and
PetscOptionsInsertFile. Also, any options present in
~/.petscrc
.petscrc (in current directory)
petscrc (in current directory)
get slurped in automatically, as well as the string in the PETSC_OPTIONS
environment variable.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20101210/0346b6ee/attachment.htm>
More information about the petsc-users
mailing list