← Back to team overview

dolfin team mailing list archive

Re: PETSC_ARCH

 

On Tue, Aug 17, 2010 at 06:01:46PM +0100, Garth N. Wells wrote:
> On Tue, 2010-08-17 at 18:46 +0200, Anders Logg wrote:
> > Why do we need to set PETSC_ARCH? We didn't before. Is there a way to
> > figure it out?
> >
>
> In general, no. It's possible (and common) to have a debug and an
> optimised version installed side-by-side (there are more possibilities)
> than just optimised and debug). The libs go in
>
>   ${PETSC_DIR}/${PETSC_ARCH}/lib
>
> If you do a regular
>
>    ./configure --prefix=/foo/bar
>
> then I don't think that it's required since there will be not
> distinction between a debug and an optimised version.

There seems to be some code for searching for PETSC_ARCH in the
FindPETSc script:

set (_petsc_arches
    $ENV{PETSC_ARCH}                   # If set, use environment
    variable first
    ${DEBIAN_FLAVORS}  # Debian defaults
    x86_64-unknown-linux-gnu i386-unknown-linux-gnu)

But it doesn't include the following two options that we have in the
old Scons script:

elif os.path.exists(getPetscDir(sconsEnv=sconsEnv)+"/linux-gnu-c-opt"):
        return "linux-gnu-c-opt"
elif os.path.exists(getPetscDir(sconsEnv=sconsEnv)+"/lib/linux-gnu-c-opt"):
        return "linux-gnu-c-opt"

What makes me even more confused is that I don't have any of these
directories in the location where I have installed PETSc (using Dorsal).

--
Anders

Attachment: signature.asc
Description: Digital signature


Follow ups

References