Skip to content

Jacobf/feature better petscinfo controls

Grant more fine grain control to PetscInfo a la OS Console logs by allowing arguments to -info to filter outputs by owning class. For example:

  • -info :dm: would only display PetscInfo outputs from functions in DM to STDOUT
  • -info :[mat,vec]: would only display PetscInfo outputs from functions in Mat and Vec to STDOUT
  • -info :snes:world would only display PetscInfo outputs from Snes, on PETSC_COMM_WORLD to STDOUT
  • -info info.txt::self would pipe all PetscInfo output on PETSC_COMM_SELF to info.txt

General format for new cli argument could be: -info [Filename]:[CSA of Classes]:[Communicator]

Important considerations:

  1. What should default communicator be? I.e. should -info A.K.A. -info ::: display from PETSC_COMM_SELF or PETSC_COMM_WORLD? [PETSC_COMM_WORLD]
  2. Is there (and should there be) a system in place to invert selection? I.e. should -info :~dm: display everything except DM functions? [Yes]
  3. What should the deprecation version be? Currently set to v3.13

(Fixes #420 (closed), cc @haplav @BarrySmith )

Edited by Jacob Faibussowitsch

Merge request reports