[petsc-users] example code error!

NAN ZHAO zhaonanavril at gmail.com
Fri Mar 18 00:09:33 CDT 2011


Hi everyone,

I tried to learn using MATCreateMPIBAIJ and find a example in
/src/mat/tests/ex92. I complied it and run it, but I got the following
error, Can anyone give some insight on this kind of error?

[0]PETSC ERROR: --------------------- Error Message
------------------------------------
[0]PETSC ERROR:   !
[0]PETSC ERROR: Lower triangular value cannot be set for sbaij format.
Ignoring these values, run with -mat_ignore_lower_triangular or call
MatSetOption(mat,MAT_IGNORE_LOWER_TRIANGULAR)!
[0]PETSC ERROR:
------------------------------------------------------------------------
[0]PETSC ERROR: Petsc Release Version 2.3.3, Patch 15, Tue Sep 23 10:02:49
CDT 2008 HG revision: 31306062cd1a6f6a2496fccb4878f485c9b91760
[0]PETSC ERROR: See docs/changes/index.html for recent updates.
[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
[0]PETSC ERROR: See docs/index.html for manual pages.
[0]PETSC ERROR:
------------------------------------------------------------------------
[0]PETSC ERROR: ./ex92 on a linux-gnu named localhost:localdomain by nan Thu
Mar 17 23:05:57 2011
[0]PETSC ERROR: Libraries linked from
/home/nan/ufesworkspace/petsc-2.3.3-p15/LINUX_MPI/lib/linux-gnu-cxx-debug
[0]PETSC ERROR: Configure run at Mon Jun 14 09:57:43 2010
[0]PETSC ERROR: Configure options
--prefix=/home/nan/ufesworkspace/petsc-2.3.3-p15/LINUX_MPI --with-fc=0
--with-clanguage=cxx --with-x11=0 --with-shared=0 --with-debugging=1
COPTFLAGS=-O3 --with-cc=mpicc --with-cxx=mpicxx
--with-mpi-dir=/usr/lib/mpich2
[0]PETSC ERROR:
------------------------------------------------------------------------
[0]PETSC ERROR: MatSetValues_MPISBAIJ_MatScalar() line 265 in
src/mat/impls/sbaij/mpi/mpisbaij.c
[0]PETSC ERROR: MatSetValues() line 828 in src/mat/interface/matrix.c
[0]PETSC ERROR: MatConvert_Basic() line 34 in src/mat/utils/convert.c
[0]PETSC ERROR: MatConvert() line 3179 in src/mat/interface/matrix.c
[0]PETSC ERROR: main() line 89 in src/mat/examples/tests/ex92.c

Thanks,
Nan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110317/09e563d6/attachment.htm>


More information about the petsc-users mailing list