[petsc-dev] reminder about initializing structs

Barry Smith bsmith at mcs.anl.gov
Thu Nov 21 20:38:54 CST 2013


  You can’t do this in C89, so please don’t do this in PETSc code since someone (me, will have to fix it later) 

src/dm/impls/da/dalocal.c: In function ‘DMDASetVertexCoordinates’:
src/dm/impls/da/dalocal.c:1192:5: warning: initializer element is not computable at load time [enabled by default]
     PetscInt ind[3] = {0, 0, k + da->zs}, d, off;

Barry




More information about the petsc-dev mailing list