← Back to team overview

dolfin team mailing list archive

Re: [HG] Fix check for Hypre in KrylovSolver.

 

On Thu, 2006-03-16 at 01:44 +0100, Garth N. Wells wrote:
> On Wed, 2006-03-15 at 21:23 +0100, DOLFIN wrote:
> > One or more new changesets pushed to the primary DOLFIN repository.
> > A short summary of the last three changesets is included below.
> > 
> > changeset:   1790:0a088cefbdb6496b48cbbdc3b51ed7782f3e22f7
> > tag:         tip
> > user:        "Garth N. Wells <g.n.wells@xxxxxxxxxx>"
> > date:        Wed Mar 15 21:23:04 2006 +0100
> > files:       src/demo/nls/nonlinearpoisson/main.cpp src/kernel/la/KrylovSolver.cpp
> > description:
> > Fix check for Hypre in KrylovSolver.
> > 
> > Selecting Hypre AMG through the constructor of KrylovSolver leads to an error when attempting to solve. Needs further investigation.
> > 
> 

This appears to be a PETSc problem when destroying a solver before it
has been used to solve a linear system.

The problem can be avoided by not calling init(0,0) (as well as
readParameters()) in the KrylovSolver constructor. As far as I can see,
there is no need to call init(0,0) in the constructor. It creates a
PETSc solver, which is then deleted by KrylovSolver::init() the first
time KrylovSolver::solve() is called. Can the call be removed from the
constructor?

Garth

  

> I think that this is a Hypre/PETSc/MPICH issue. Can anyone use the Hypre
> BooomerAMG preconditioner successfully? If so, what version of MPI and
> PETSc are you using? I get the message
>   Variable ijmatrix is NULL -- HYPRE_IJMatrixDestroy
> when try to solve.
> 
> Garth
> 
> 
> > 
> > changeset:   1789:b1013552388e4e8be4ba071e442a04450dbadba5
> > user:        "Garth N. Wells <g.n.wells@xxxxxxxxxx>"
> > date:        Tue Mar 14 22:44:36 2006 +0100
> > files:       ChangeLog
> > description:
> > Update ChangeLog.
> > 
> > 
> > changeset:   1788:a75a959de9c850334596a3cffc41535f08e96ef3
> > parent:      1787:61c4db5960c36b4f9ec01be95cfd1c81108cb0b7
> > parent:      1786:61221adc3dc9ec87ccd8bacfe8f3916a0315697c
> > user:        "Garth N. Wells <g.n.wells@xxxxxxxxxx>"
> > date:        Tue Mar 14 22:40:57 2006 +0100
> > files:       
> > description:
> > merge
> > 
> > 
> > -------------------------------------------------------
> > For more details, visit http://www.fenics.org/hg/dolfin
> > 
> > _______________________________________________
> > DOLFIN-dev mailing list
> > DOLFIN-dev@xxxxxxxxxx
> > http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev




Follow ups

References