[petsc-users] Not displaying petsc options with -help

Barry Smith bsmith at petsc.dev
Mon Jan 11 19:13:19 CST 2021


   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 <petsc-users at mcs.anl.gov> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20210111/ebddd14c/attachment.html>


More information about the petsc-users mailing list