You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Supress PETSc check by calling PetscCall(PetscOptionsSetValue(NULL, "-options_left", "no")); at startup.
Route ApPredict arguments through inbuilt PETSc methods to read the command-line arguments. This would resolve Invalid args are quietly ignored #2 simultaneously.
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.
When running ApPredict with arguments (e.g.
--ic50-herg,--hill-na,--modeletc) the following warnings are printed at the end of execution: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
PetscCall(PetscOptionsSetValue(NULL, "-options_left", "no"));at startup.PetscOptionsClearValue(NULL, "-that_option")for each argument after Chaste'sCommandLineArgumentsfinished reading. Care is needed in this case since arguments can currently be readed more than once.