[petsc-users] can't find PETSc package

Jed Brown jed at jedbrown.org
Mon Dec 1 21:28:35 CST 2014


paul zhang <paulhuaizhang at gmail.com> writes:

> Like this? still in trouble though...
>
> CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
>
> set(PETSC_DIR /home/hzh225/LIB_CFD/nP/petsc-3.5.2)

If you're going to manually set local paths in your build files, then
CMake is definitely a waste of time.  These are normally environment
variables.

> set(PETSC_ARCH /home/hzh225/LIB_CFD/nP/petsc-3.5.2/linux-gnu-intel)

This is not how PETSC_ARCH works.  It should probably be
"linux-gnu-intel".  Please read what PETSc's build prints or read the
documentation.

  http://www.mcs.anl.gov/petsc/documentation/installation.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141201/622f499d/attachment.pgp>


More information about the petsc-users mailing list