[petsc-users] FindPETSc.cmake expects petscvariables in wrong location

Satish Balay balay at mcs.anl.gov
Tue Apr 11 11:23:17 CDT 2017


On Tue, 11 Apr 2017, Joachim Wuttke wrote:

> > 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 PETSC_DIR=/usr/local/src/petsc-3.7.5 PETSC_ARCH=linux-amd64 all

So you are not using prefix install - so would require to use 'PETSC_DIR=/usr/local/src/petsc-3.7.5 PETSC_ARCH=linux-amd64' with FindPETSc.cmake

Wrt your previous note:

>>>
However, in the current source archive, it is located in
  ${PETSC_DIR}/lib/petsc/conf/petscvariables,
and the default install procedure does not copy it to ${PETSC_ARCH}.

<<<<

Thre is also be
${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/conf/petscvariables - that
FindPETSc.cmake should find

If it doesn't work - send the relavent cmake logs - and Jed might
provide better debug instructions.

Satish


More information about the petsc-users mailing list