Skip to content

Erroneous unused options warning when using PETSc #3118

@mikekryjak

Description

@mikekryjak

When using PETSc, all of the command line arguments are passed to it indiscriminately.
This includes -d, which obviously does nothing inside PETSc and is therefore unused.
This triggers the unused variable warning when writing BOUT.settings:

Run finished at  : Mon Jun  9 15:41:11 2025
Run time : 5 s
Finalising PETSc
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:-d value: finish-selcoll/fscol1d-evpress_braginskii_afn source: command line
        Option datadir = finish-selcoll/fscol1d-evpress_braginskii_afn (Command line)
        Option settingsfile = BOUT.settings (default)
Writing options to file finish-selcoll/fscol1d-evpress_braginskii_afn/BOUT.settings
        Option time_report:show = 0 (default)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions