← Back to team overview

dolfin team mailing list archive

Re: Preconditioner not working?

 

On Wed, Nov 02, 2005 at 01:46:37PM -0600, Anders Logg wrote:
> Have we tested user-defined preconditioners before?
> 
> I get a PETSc error when I try to use it:
> 
> [0]PETSC ERROR: PetscTrFreeDefault() called from
> PetscHeaderDestroy_Private() line 76 in src/sys/src/objects/inherit.c
> [0]PETSC ERROR: Block at address 0x1d15f9f0 is corrupted; cannot free;
> may be block not allocated with PetscMalloc()
> [0]PETSC ERROR: PetscTrFreeDefault() line 279 in
> src/sys/src/memory/mtr.c
> [0]PETSC ERROR: Memory corruption!
> [0]PETSC ERROR: Bad location or corrupted memory!
> [0]PETSC ERROR: PetscHeaderDestroy_Private() line 76 in
> src/sys/src/objects/inherit.c
> [0]PETSC ERROR: PCDestroy() line 87 in src/ksp/pc/interface/precon.c
> [0]PETSC ERROR: KSPDestroy() line 597 in
> src/ksp/ksp/interface/itfunc.c
> 
> Does anyone recognize this?
> 
> Try the test problem in src/test/main.cpp.
> 
> /Anders
> 

Hi!

I tested user-defined preconditioners at the same time they were
added. This was approximately one year ago though (as far as I can
remember), so it's very possible that they are now broken (we have
changed PETSc versions for example). I'll take a look later on (today
or tomorrow).

  Johan



References