[petsc-users] Petsc options

Satish Balay balay at mcs.anl.gov
Fri Jun 12 17:52:43 CDT 2020


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
> 



More information about the petsc-users mailing list