← Back to team overview

dolfin team mailing list archive

Re: Problems with PETSc after change to petsc.conf

 

On Mon, Oct 30, 2006 at 10:49:21AM +0100, Garth N. Wells wrote:
> 
> 
> Anders Logg wrote:
> > I can't compile against PETSc after the latest updates to petsc.conf
> > (see below). I have configured PETSc with --download-mpich=yes so the
> > extra flags are probably needed.
> >
> 
> Can you add just the MPI flags? I removed the extra include paths
> because they include a path for UMFPACK in the PETSc tree, which is in
> general a different version to the one installed under /usr/include (or
> another location) and against which DOLFIN is linked. This will lead to
> an error if there is a change in the UMFPACK interface.
> 
> Garth

I get two extra flags for PETSc when I compile with the old
petsc.conf:

  -I/usr/local/lib/petsc
  -I/usr/local/lib/petsc/externalpackages/mpich2-1.0.3/linux-gnu-cxx-real-debug/include

We can just ignore the first one which does not really do anything.

The second gives me exactly the path to the PETSc-configured MPI and
nothing more.

Do you get UMFPACK here? My guess is that you will only get UMFPACK
here if you have told PETSc to download UMFPACK for you.

/Anders


> 
> > Can we change back?
> > 
> > /Anders
> > 
> > 
> > In file included from ../../../src/kernel/la/dolfin/PETScManager.h:20,
> >                  from ../../../src/kernel/la/dolfin/PETScVector.h:18,
> >                  from ../../../src/kernel/la/dolfin/SparseVector.h:13,
> >                  from ../../../src/kernel/la/dolfin/Vector.h:12,
> >                  from
> >                  ../../../src/kernel/function/dolfin/Function.h:13,
> >                  from ../../../src/kernel/form/dolfin/Form.h:12,
> >                  from
> >                  ../../../src/kernel/form/dolfin/BilinearForm.h:10,
> >                  from FEM.cpp:10:
> > /usr/local/lib/petsc//include/petsc.h:95:17: error: mpi.h: No such
> > file or directory
> > /usr/local/lib/petsc//include/petscmath.h:16: error: 'MPI_Datatype'
> > does not name a type
> > /usr/local/lib/petsc//include/petscmath.h:17: error: 'MPI_Datatype'
> > does not name a type
> > /usr/local/lib/petsc//include/petscmath.h:274: error: 'MPI_Comm' has
> > not been declared
> > /usr/local/lib/petsc//include/petscmath.h:275: error: 'MPI_Comm' has
> > not been declared
> > /usr/local/lib/petsc//include/petscmath.h:276: error: 'MPI_Comm' has
> > not been declared
> > _______________________________________________
> > DOLFIN-dev mailing list
> > DOLFIN-dev@xxxxxxxxxx
> > http://www.fenics.org/mailman/listinfo/dolfin-dev
> > 
> 
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev


Follow ups

References