Skip to content

PETSc reports ApPredict command line arguments as "unused options" #41

Description

@RomanSyunyaev

When running ApPredict with arguments (e.g. --ic50-herg, --hill-na, --model etc) the following warnings are printed at the end of execution:

WARNING! There are options you set that were not used!
WARNING! could be spelling mistake, etc!
Option left: name:--ic50-herg value: 0.574 source: command line

The arguments are correctly read and applied, since the output confirms the expected IC50/Hill values and model are used. The warnings come from PETSc, which flags any command options it doesn't use in the arguments.

Proposed solutions

  1. Supress PETSc check by calling PetscCall(PetscOptionsSetValue(NULL, "-options_left", "no")); at startup.
  2. Route ApPredict arguments through inbuilt PETSc methods to read the command-line arguments. This would resolve Invalid args are quietly ignored #2 simultaneously.
  3. CallPetscOptionsClearValue(NULL, "-that_option")for each argument after Chaste's CommandLineArguments finished reading. Care is needed in this case since arguments can currently be readed more than once.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions