On Wed, 21 Aug 2024, Matthew Knepley wrote: > On Wed, Aug 21, 2024 at 1:15 PM Angus, Justin Ray via petsc-dev < > petsc-dev@mcs.anl.gov> wrote:
> > PetscInitialize(&a_argc,&a_argv,(char*)0,help); > > PetscOptionsSetValue( NULL, "-log_view" , NULL ); > > PetscFinalize(); > This is a limitation of PETSc. We want the log to be setup early so it is > processed inside PetscInitialize(). Here one can do: PetscOptionsSetValue( NULL, "-log_view" , NULL ); PetscInitialize(&a_argc,&a_argv,(char*)0,help); PetscFinalize(); https://urldefense.us/v3/__https://petsc.org/release/manualpages/Sys/PetscOptionsSetValue/__;!!G_uCfscf7eWS!fVu9p3n4lgrF8abs0xjLvoORUNJi7xsBUdnW9S3i92MCyFumE_Hyjq682xa7UOmgldzbtiS7YkSugL76tIABxRFZxg$ "This function can be called BEFORE PetscInitialize()" Satish