[petsc-dev] -log_view not working when setting using PetscOptionsSetValue( )

Satish Balay balay.anl at fastmail.org
Wed Aug 21 13:32:00 CDT 2024


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 at 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


More information about the petsc-dev mailing list