The code is correct in petsc-dev. Barry
On Dec 17, 2008, at 3:05 PM, David Fuentes wrote: > > > 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); > > > >
