[petsc-dev] plex error in next

Matthew Knepley knepley at gmail.com
Fri Mar 14 05:39:35 CDT 2014


On Thu, Mar 13, 2014 at 10:26 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>
> /Users/barrysmith/Src/PETSc/src/dm/impls/plex/plexfem.c:1203:41: warning:
> variable 'cpdim' is uninitialized when used here [-Wuninitialized]
>       if (fieldI != fieldJ) {offsetJ += cpdim; continue;}
>                                         ^~~~~
> /Users/barrysmith/Src/PETSc/src/dm/impls/plex/plexfem.c:1200:28: note:
> initialize the variable 'cpdim' to silence this warning
>       PetscInt   NcJ, cpdim, j;
>                            ^
>                             = 0
>

Fixed.

   Matt

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140314/2470c601/attachment.html>


More information about the petsc-dev mailing list