possible bug?

David Fuentes fuentesdt at gmail.com
Wed Dec 17 15:05:03 CST 2008



working with petsc-2.3.3-p13

in file $PETSC_DIR/src/vec/vec/impls/mpi/pdvec.c

possible bug in VecSetValues_MPI

??



DIPWS019$ diff $PETSC_DIR/src/vec/vec/impls/mpi/pdvec.c   pdvec.c 
878c878
<         if (ix[i] > xin->map.N) SETERRQ2(PETSC_ERR_ARG_OUTOFRANGE,"Out
of range index value %D maximum %D",ix[i],xin->map.N);
---
>         if (ix[i] >= xin->map.N) SETERRQ2(PETSC_ERR_ARG_OUTOFRANGE,"Out of range index value %D maximum %D",ix[i],xin->map.N);







More information about the petsc-dev mailing list