← Back to team overview

dolfin team mailing list archive

Re: PETSC_ARCH

 

On Tue, 2010-08-17 at 20:39 +0200, Anders Logg wrote:
> On Tue, Aug 17, 2010 at 10:53:05AM -0700, Johan Hake wrote:
> > On a related note:
> >
> > Is it possible to not print the PETSC_ARCH when it is empty.
> >
> >   message(STATUS "PETSC_ARCH=${PETSC_ARCH}")
> >
> > While it is informative, it is kind off anoying to get
> >
> >   PETSC_ARCH=
> >
> > when configuring PETSc.
> 
> Try again now.
> 
> Does the PETSc test work for you?
> 

Now it's broken.

Garth

> --
> Anders
> 
> 
> > Johan
> >
> > On Tuesday August 17 2010 10:17:29 Anders Logg wrote:
> > > On Tue, Aug 17, 2010 at 07:06:43PM +0200, Anders Logg wrote:
> > > > 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"
> > >
> > > I see now these two are included in debian_arches.
> > >





Follow ups

References