[petsc-users] SNESSetOptionsPrefix usage
Timothée Nicolas
timothee.nicolas at gmail.com
Wed Jan 15 04:03:40 CST 2020
Dear PETSc users,
I am confused by the usage of SNESSetOptionsPrefix. I understand this is
required if you have for example different SNES in your program and want to
set different options for them.
So for my second snes I wrote
call SNESCreate(MPI_COMM_SELF,snes,ierr)
call SNESSetOptionsPrefix(snes,'green_',ierr)
call SNESSetFromOptions(snes,ierr)
etc.
Then when launching the program I wanted to monitor that snes so I launched
it with the option -green_snes_monitor instead of -snes_monitor. But I keep
getting the message
WARNING! There are options you set that were not used!
WARNING! could be spelling mistake, etc!
Option left: name:-green_snes_monitor (no value)
What do I miss here?
Best regards
Timothée NICOLAS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200115/6c317a5c/attachment-0001.html>
More information about the petsc-users
mailing list