Does PETSc support the usual installation command sequence
configure; make; make install?
The installation web page does not mention "make install".
The Makefile generated by configure does contain a target "install".
However, "make install" does not work; it yields the error message
The current source archive petsc-3.7.5.tar.gz
comes with files
- configure for Autotools based installation
- CMakeLists.txt for CMake based installation
However, the installation web page
https://www.mcs.anl.gov/petsc/documentation/installation.html
only mentions "./configure".
So what is
you need to give me details on how you installed petsc. [say make.log]
tar zxvf petsc-3.7.5.tar.gz
cd petsc-3.7.5
./configure --with-shared-libraries PETSC_DIR=/usr/local/src/petsc-3.7.5
PETSC_ARCH=linux-amd64 --with-mpi-dir=/usr/lib/x86_64-linux-gnu/openmpi
make MAKE_NP=7
The PETSc FAQ recommends to use the FindPETSc.cmake module
from the repository https://github.com/jedbrown/cmake-modules.
This doesn't work for me. CMake fails with the following message:
CMake Error at cmake/modules/FindPETSc.cmake:125 (message):
The pair
Satish, thank you very much for your prompt answers.
Your last one, however, does not solve my problem.
PETSC_ARCH='' is not the solution.
Line 115 of FindPETSc.cmake,
if (EXISTS "${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/conf/petscvariables") # > 3.5
would then search for
'make test' was successful.
And indeed,
${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/conf/petscvariables
exists.
There was a mistake in my PETSC_DIR.
Now FindPETSc.cmake does find petscvariables ...
... and I am at the next error:
CMake Error at cmake/modules/FindPETSc.cmake:164 (include):
include
... and I am at the next error:
CMake Error at cmake/modules/FindPETSc.cmake:164 (include):
include could not find load file:
ResolveCompilerPaths
which is easily solved by copying that file from the external
repository https://github.com/jedbrown/cmake-modules/
smime.p7s
Description:
pp. 174, 183 in the current User Manual describe option -log_summary.
Running code with this option yields
WARNING: -log_summary is being deprecated; switch to -log_view
Btw either form of the option is missing in the Index.
smime.p7s
Description: S/MIME Cryptographic Signature
The PETSc User Manual [ANL-95/11 Rev 3.7 ] says on p. 44:
Example usage of VecSetValues() may be found in
${PETSC_DIR}/src/vec/vec/examples/tutorials/ex2.c
However, that example [pp. 32-35 in the User Manual]
does not contain "VecSetValues".
smime.p7s
Description: S/MIME Cryptographic