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?
Asked
Active
Viewed 305 times
7
Dan
- 3,355
- 3
- 21
- 47
-
Try looking inside the Makefile and files which it includes. – milancurcic Dec 16 '11 at 22:38
2 Answers
9
There are a few ways to do this:
Check
$PETSC_ARCH/conf/reconfigure-$PETSC_ARCH.py(where$PETSC_ARCHis expanded, i.e. for me that is 'arch-c')Depending on which information you want, you could use
make getlinklibsormake getincludedirsAlso, you could check
$PETSC_ARCH/include/petscconf.hfor all the standard#ifdef's that PETSc was configured with
Sean Farley
- 1,370
- 12
- 16
-
For lower level information, the file
$PETSC_ARCH/conf/petscvariableshas everything defined formake(there are some generated rules inpetscrules), but Sean is right that looking in the reconfigure script is best. – Matt Knepley Dec 18 '11 at 23:42
1
In the source directory, there is a log file to record every output of the screen including the commands has been input.
ztdep
- 186
- 6