Change the value of PetscHelpPrintf() to do nothing before PetscInitialize() 
and then change it PetscHelpPrintfDefault() just around your options.

   I have fixed up the manual page in 
https://gitlab.com/petsc/petsc/-/merge_requests/3553

    But are you sure you want to do this? Even -ksp_monitor etc will no longer 
produce help messages which users may want.

  Barry


> On Jan 11, 2021, at 4:52 PM, Abhyankar, Shrirang G via petsc-users 
> <[email protected]> wrote:
> 
> I have an application where I set a bunch of application-specific options in 
> PetscOptionsBegin/End and it uses the default PetscOptions database. When 
> running the application with “-help” option all the application and PETSc 
> options get displayed. Is there a way to suppress displaying PETSc options, 
> but only display the application options.
>  
> Thanks,
> Shri

Reply via email to