You can: specify via env variable - before running the appliation:
export PETSC_OPTIONS="-info" mpiexec ./binary Or add options to ~/.petscrc file [one option per line] - and then run the code. Satish On Fri, 12 Jun 2020, Y. Shidi wrote: > Dear developers, > > I want to use "-info" to view the preallocation of the matrix. > I cannot add it directly when I run the code. > I have tried: > PetscOptionsInsertString(), PetscOptionsSetValue(). > Neither of them works. > So I am wondering if there is any other functions. > > Thank you for your time. > > Kind Regards, > Shidi >