[petsc-users] duplicate PETSC options

Randall Mackie rlmackie862 at gmail.com
Mon Mar 30 10:45:40 CDT 2020


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?

Thanks, 

Randy M


More information about the petsc-users mailing list