# How can I tell which options PETSc was compiled with?

I'm working on a machine with a version of PETSc compiled by someone else. Is there a straightforward way to find out which options were used at compile time from the installation itself? For example, is there a file that has all of the compile time options that is generated by make?

• Try looking inside the Makefile and files which it includes. Dec 16 '11 at 22:38

• Check $PETSC_ARCH/conf/reconfigure-$PETSC_ARCH.py (where $PETSC_ARCH is expanded, i.e. for me that is 'arch-c') • Depending on which information you want, you could use make getlinklibs or make getincludedirs • Also, you could check$PETSC_ARCH/include/petscconf.h for all the standard #ifdef's that PETSc was configured with