[petsc-users] Bug report LMVM matrix class

Stephan Köhler stephan.koehler at math.tu-freiberg.de
Wed Nov 2 05:52:59 CDT 2022


Dear PETSc/Tao team,

it seems to be that there is a bug in the LMVM matrix class:

In the function MatCreateVecs_LMVM, see, e.g., 
https://petsc.org/release/src/ksp/ksp/utils/lmvm/lmvmimpl.c.html at line 
214.
it is not checked if the vectors  *L, or *R are NULL.  This is, in 
particular, a problem if this matrix class is combined with the Schur 
complement matrix class, since MatMult_SchurComplement
calls this function with NULL as *R, see, e.g. 
https://petsc.org/release/src/ksp/ksp/utils/schurm/schurm.c.html at line 66.

I attach a minimal example.  You need to modify the paths to the PETSc 
installation in the makefile.

Best regards
Stephan Köhler

-- 
Stephan Köhler
TU Bergakademie Freiberg
Institut für numerische Mathematik und Optimierung

Akademiestraße 6
09599 Freiberg
Gebäudeteil Mittelbau, Zimmer 2.07

Telefon: +49 (0)3731 39-3173 (Büro)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Minimal_example_schur_lmvm.tar.gz
Type: application/gzip
Size: 1547 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221102/e763a954/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xC9BF2C20DFE9F713.asc
Type: application/pgp-keys
Size: 758 bytes
Desc: OpenPGP public key
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221102/e763a954/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221102/e763a954/attachment.sig>


More information about the petsc-users mailing list