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$– milancurcicDec 16, 2011 at 22:38
2 Answers
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
ormake 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 formake
(there are some generated rules inpetscrules
), but Sean is right that looking in the reconfigure script is best. $\endgroup$ Dec 18, 2011 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.