On Jun 6, 2012, at 7:27 AM, Alexander Grayver wrote: > Hi, > > In case of SeqDense matrix the message if very usefull since prints the > maximum and actual indices: > > MatSetValues_SeqDense() line 750 in > /lib/petsc-dev1/src/mat/impls/dense/seq/dense.c > if (indexn[j] >= A->cmap->n) > SETERRQ2(PETSC_COMM_SELF,PETSC_ERR_ARG_OUTOFRANGE,"Column too large: col %D > max %D",indexn[j],A->cmap->n-1); > > For MPIDense it is not the case: > > MatSetValues_MPIDense() line 135 in > /lib/petsc-dev/src/mat/impls/dense/mpi/mpidense.c > if (idxm[i] >= mat->rmap->N) > SETERRQ(PETSC_COMM_SELF,PETSC_ERR_ARG_OUTOFRANGE,"Row too large");
We are completely replacing the MPIDense matrices this summer (hopefully) and will provide this information as well as much more functionality (hopefully). Barry > > Would it be possible to have the same message for MPIDense as well? > Thanks. > > -- > Regards, > Alexander >
