PETSC debug
billy at dem.uminho.pt
billy at dem.uminho.pt
Tue Nov 14 17:18:55 CST 2006
Hi,
I was running my code and I got FPE error on alpha machines.
Using gdb the output is the following. I am using 4 processors.
Program received signal SIGFPE, Arithmetic exception.
0x1202c4e1c in MatMult_SeqBAIJ_1 (A=0x120bbc7c0, xx=0x120be0770,
zz=0x120bc9fb0) at baij2.c:260
260 while (n--) sum += *v++ * x[*idx++];
(gdb) print n
$1 = 0
(gdb) print idx
$2 = (PetscInt *) 0x120c7aab8
(gdb) print *idx
$3 = 1710
(gdb) print v
$4 = (MatScalar *) 0x120c99190
(gdb) print *v
$5 = 4.0109832449655266e-12
(gdb) print x
$6 = (PetscScalar *) 0x120be1690
(gdb) print x[*idx]
$7 = 1.2349520920477556e-308
(gdb) print sum
$8 = 0
Billy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20061114/6baeefe1/attachment.htm>
More information about the petsc-users
mailing list