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?

  • $\begingroup$ Try looking inside the Makefile and files which it includes. $\endgroup$ – milancurcic Dec 16 '11 at 22:38

There are a few ways to do this:

  • 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

  • $\begingroup$ For lower level information, the file $PETSC_ARCH/conf/petscvariables has everything defined for make (there are some generated rules in petscrules), but Sean is right that looking in the reconfigure script is best. $\endgroup$ – Matt Knepley Dec 18 '11 at 23:42

In the source directory, there is a log file to record every output of the screen including the commands has been input.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.