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 displayPetscInfo
outputs from functions inDM
toSTDOUT
-
-info :[mat,vec]:
would only displayPetscInfo
outputs from functions inMat
andVec
toSTDOUT
-
-info :snes:world
would only displayPetscInfo
outputs fromSnes
, onPETSC_COMM_WORLD
toSTDOUT
-
-info info.txt::self
would pipe allPetscInfo
output onPETSC_COMM_SELF
to info.txt
General format for new cli argument could be: -info [Filename]:[CSA of Classes]:[Communicator]
Important considerations:
-
What should default communicator be? I.e. should[-info
A.K.A.-info :::
display fromPETSC_COMM_SELF
orPETSC_COMM_WORLD
?PETSC_COMM_WORLD
] -
Is there (and should there be) a system in place to invert selection? I.e. should[Yes]-info :~dm:
display everything exceptDM
functions? - What should the deprecation version be? Currently set to v3.13
(Fixes #420 (closed), cc @haplav @BarrySmith )
Edited by Jacob Faibussowitsch