[petsc-dev] incomplete fix for MatSetValuesStencil() someone recently made

Lisandro Dalcin dalcinl at gmail.com
Mon May 23 17:17:26 CDT 2011


On 24 May 2011 00:51, Barry Smith <bsmith at mcs.anl.gov> wrote:
>
> libfast in: /Users/barrysmith/Src/petsc-dev/src/mat/interface
> matrix.c: In function ‘PetscErrorCode MatSetValuesStencil(_p_Mat*, PetscInt, const MatStencil*, PetscInt, const MatStencil*, const PetscScalar*, InsertMode)’:
> matrix.c:1317: warning: comparison between signed and unsigned integer expressions
> matrix.c: In function ‘PetscErrorCode MatSetValuesBlockedStencil(_p_Mat*, PetscInt, const MatStencil*, PetscInt, const MatStencil*, const PetscScalar*, InsertMode)’:
> matrix.c:1430: warning: comparison between signed and unsigned integer expressions
> matrix.c: In function ‘PetscErrorCode MatSetValuesBlocked(_p_Mat*, PetscInt, const PetscInt*, PetscInt, const PetscInt*, const PetscScalar*, InsertMode)’:
> matrix.c:1614: warning: comparison between signed and unsigned integer expressions
> matrix.c: In function ‘PetscErrorCode MatSetValuesLocal(_p_Mat*, PetscInt, const PetscInt*, PetscInt, const PetscInt*, const PetscScalar*, InsertMode)’:
> matrix.c:1905: warning: comparison between signed and unsigned integer expressions
> matrix.c: In function ‘PetscErrorCode MatSetValuesBlockedLocal(_p_Mat*, PetscInt, const PetscInt*, PetscInt, const PetscInt*, const PetscScalar*, InsertMode)’:
> matrix.c:1993: warning: comparison between signed and unsigned integer expressions
> matrix.c:2005: warning: comparison between signed and unsigned integer expressions
> matrix.c: At global scope:
>

I apologize. These warnings come from lines like """if ((m+n) <=
sizeof(buf)/sizeof(PetscInt)) {""" . This was in order to remove the
limitations on the number of rows/columns in these MatSetValuesXXX
calls. I'll try to fix them ASAP.


-- 
Lisandro Dalcin
---------------
CIMEC (INTEC/CONICET-UNL)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
3000 Santa Fe, Argentina
Tel: +54-342-4511594 (ext 1011)
Tel/Fax: +54-342-4511169



More information about the petsc-dev mailing list