[petsc-users] duplicate PETSC options

Matthew Knepley knepley at gmail.com
Mon Mar 30 11:15:50 CDT 2020


On Mon, Mar 30, 2020 at 11:46 AM Randall Mackie <rlmackie862 at gmail.com>
wrote:

> When PETSc reads in a list of options (like PetscOptionsGetReal, etc), we
> have noticed that if there are duplicate entries, that PETSc takes the last
> one entered as the option to use. This can happen if the user didn’t notice
> there were two lines with the same options name (but different values set).
>
> Is there someway to have PETSc check for duplicate entries so that we can
> stop program execution and warn the user?
>

We could add an option. We make heavy use of this behavior in order to
override options previously specified (which act as defaults).
Could you create an issue for it?

  Thanks,

     Matt


> Thanks,
>
> Randy M



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200330/065907c6/attachment-0001.html>


More information about the petsc-users mailing list