:orphan: # PetscGetPetscDir Gets the directory PETSc is installed in ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscGetPetscDir(const char *dir[]) ``` Not Collective; No Fortran Support ## Output Parameter - ***dir -*** the directory ## Level developer ## Location src/sys/utils/str.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/utils/str.c) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)