cmake-modules icon indicating copy to clipboard operation
cmake-modules copied to clipboard

Issue for FindPetsc.cmake on Ubuntu 16.04

Open arthurtalpaert opened this issue 9 years ago • 2 comments

Hello, FindPETSc.cmake does not work on Ubuntu 16.04. This is because the directory structure of /usr/lib/petscdir/3.6.2 does not correspond to a usual one (e.g. as on Ubuntu 14.04). The directory /usr/lib/petscdir/3.6.2 only contains a single directory, with the architecture as its name (e.g. linux-gnu-c-opt). It does not contain bin, conf, include, lib.

arthurtalpaert avatar Sep 28 '16 09:09 arthurtalpaert

It sounds like you need PETSC_DIR=/usr/lib/petscdir/3.6.2 PETSC_ARCH=linux-gnu-c-opt.

jedbrown avatar Sep 28 '16 12:09 jedbrown

Thank you for your answer! Unfortunately, it did not work and I got the following error: The pair PETSC_DIR=/usr/lib/petscdir/3.6.2 PETSC_ARCH=linux-gnu-c-opt do not specify a valid PETSc installation. I also tried PETSC_ARCH=i386-linux-gnu-real on my 32bit virtual machine and it failed too. I can do other tests if you want me to.

arthurtalpaert avatar Sep 30 '16 10:09 arthurtalpaert