On 7/05/24 1:11 am, Barry Smith wrote:
Yes, just call PetscOptionsHasName() with -v and ignore the result.
Thanks Barry, that does the trick. Yes, I was using PETSc <3.19 before which is why it didn't show up until now.
- Adrian
On Mon, May 6, 2024 at 1:04 AM Adrian Croucher <[email protected]> wrote:hi, My code has some optional command line arguments -v and -h for output of version number and usage help. These are processed using Fortran's get_command_argument(). Since updating PETSc to version 3.21, I get some extra warnings after the output: acro018@EN438880:~$ waiwera -v 1.5.0b1 WARNING! There are options you set that were not used! WARNING! could be spelling mistake, etc! There is one unused database option. It is: Option left: name:-v (no value) source: command line That didn't used to happen. What should I do to make them go away? Regards, Adrian
-- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science Waipapa Taumata Rau / University of Auckland, New Zealand email:[email protected] tel: +64 (0)9 923 4611
