[petsc-users] Error message "Row/Column is too large"

Alexander Grayver agrayver at gfz-potsdam.de
Wed Jun 6 07:27:21 CDT 2012


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");

Would it be possible to have the same message for MPIDense as well?
Thanks.

-- 
Regards,
Alexander



More information about the petsc-users mailing list