Please add support for PETSc 3.1

Bug #587826 reported by Johannes Ring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DOLFIN
Fix Released
High
Unassigned

Bug Description

Hi,

PETSc 3.1 was released earlier this year (end of March) but it does not yet work with DOLFIN. It would be nice to add support for this version of PETSc. Here is the error message on the buildbot (linux64-exp):

mpic++ -o dolfin/la/PETScLUSolver.os -c -Wall -pipe -ansi -BOOST_UBLAS_NDEBUG -DDEBUG -g -O2 -Werror -DHAS_MPI=1 -DMPICH_IGNORE_CXX_SEEK -DPACKAGE_VERSION=\"0.9.7\" -DHAS_LAPACK=1 -DHAS_TRILINOS=1 -DHAS_ZLIB=1 -DHAS_UMFPACK=1 -DHAS_PETSC=1 -DHAS_CHOLMOD=1 -DHAS_CGAL=1 -DHAS_SCOTCH=1 -DHAS_PARMETIS=1 -fno-strict-aliasing -frounding-math -fPIC -I. -I/work/jhbuildbot/fenics/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include/libxml2 -I/work/jhbuildbot/local/include -I/usr/include -I/work/jhbuildbot/local/include/trilinos -I/usr/include -I/usr/include/suitesparse -I/work/jhbuildbot/src/petsc-3.1-p2/local/linux-gnu-cxx-debug/include -I/work/jhbuildbot/src/petsc-3.1-p2/local/include -I/work/jhbuildbot/local/include -I/work/jhbuildbot/local/lib -I/usr/include/suitesparse -I/work/jhbuildbot/src/CGAL-3.5.1/Build/local/include -I/work/jhbuildbot/src/scotch_5.1/local/include -I/usr/include dolfin/la/PETScLUSolver.cpp
dolfin/la/PETScLUSolver.cpp: In member function ‘void dolfin::PETScLUSolver::init()’:
dolfin/la/PETScLUSolver.cpp:176: error: ‘PCFactorSetShiftNonzero’ was not declared in this scope

PETSc 3.1 was also recently introduced in Debian replacing the PETSc 3.0 packages. DOLFIN in Debian is therefore currently broken: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=583419

Revision history for this message
Garth Wells (garth-wells) wrote : Re: [Bug 587826] [NEW] Please add support for PETSc 3.1

On 31/05/10 10:46, Johannes Ring wrote:
> Public bug reported:
>
> Hi,
>
> PETSc 3.1 was released earlier this year (end of March) but it does not
> yet work with DOLFIN. It would be nice to add support for this version
> of PETSc. Here is the error message on the buildbot (linux64-exp):
>
> mpic++ -o dolfin/la/PETScLUSolver.os -c -Wall -pipe -ansi -BOOST_UBLAS_NDEBUG -DDEBUG -g -O2 -Werror -DHAS_MPI=1 -DMPICH_IGNORE_CXX_SEEK -DPACKAGE_VERSION=\"0.9.7\" -DHAS_LAPACK=1 -DHAS_TRILINOS=1 -DHAS_ZLIB=1 -DHAS_UMFPACK=1 -DHAS_PETSC=1 -DHAS_CHOLMOD=1 -DHAS_CGAL=1 -DHAS_SCOTCH=1 -DHAS_PARMETIS=1 -fno-strict-aliasing -frounding-math -fPIC -I. -I/work/jhbuildbot/fenics/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include/libxml2 -I/work/jhbuildbot/local/include -I/usr/include -I/work/jhbuildbot/local/include/trilinos -I/usr/include -I/usr/include/suitesparse -I/work/jhbuildbot/src/petsc-3.1-p2/local/linux-gnu-cxx-debug/include -I/work/jhbuildbot/src/petsc-3.1-p2/local/include -I/work/jhbuildbot/local/include -I/work/jhbuildbot/local/lib -I/usr/include/suitesparse -I/work/jhbuildbot/src/CGAL-3.5.1/Build/local/include -I/work/jhbuildbot/src/scotch_5.1/local/include -I/usr/include dolfin/la/PETScLUSolver.cpp
> dolfin/la/PETScLUSolver.cpp: In member function ‘void dolfin::PETScLUSolver::init()’:
> dolfin/la/PETScLUSolver.cpp:176: error: ‘PCFactorSetShiftNonzero’ was not declared in this scope
>
> PETSc 3.1 was also recently introduced in Debian replacing the PETSc 3.0
> packages. DOLFIN in Debian is therefore currently broken:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=583419
>

I fixed this a while ago, but it must have become 'unfixed'. I'll take
another look.

I haven't been using PETSc 3.1 since SLEPc hasn't been updated (I don't
know why SLEPc hasn't been updated - the PETSc 3.0 -> 3.1 changes are
small).

Garth

> ** Affects: dolfin
> Importance: Undecided
> Status: Confirmed
>

Revision history for this message
Johannes Ring (johannr) wrote :

This patch was added to the SLEPc package in Debian yesterday to make it work with PETSc 3.1:

  http://svn.debian.org/wsvn/debian-science/packages/slepc/trunk/debian/patches/petsc31.patch

I haven't tested it yet.

Changed in dolfin:
importance: Undecided → High
Revision history for this message
Garth Wells (garth-wells) wrote :

I've committed fixes for PETSc 3.1, but I haven't test with the patched SLEPc.

Changed in dolfin:
status: Confirmed → In Progress
Changed in dolfin:
status: In Progress → Fix Committed
Changed in dolfin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.