[petsc-users] can't find PETSc package

paul zhang paulhuaizhang at gmail.com
Mon Dec 1 21:41:16 CST 2014


Problem solved!
This is a baby step for me. I actually have a code project which works with
petsc-3.1-p8, and configured with Cmake. As I attempted to update PETSc, my
old configuration flag never works. I have to start it over.

Thanks a lot.
​Paul​



On Mon, Dec 1, 2014 at 10:28 PM, Jed Brown <jed at jedbrown.org> wrote:

> 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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141201/5c4d5351/attachment-0001.html>


More information about the petsc-users mailing list