[petsc-dev] errors compiling src/mat/coarsen/impls/hem/hem.c

Jed Brown jedbrown at mcs.anl.gov
Thu Mar 8 16:28:37 CST 2012


On Thu, Mar 8, 2012 at 16:20, Brad Aagaard <baagaard at usgs.gov> wrote:

> I am getting a couple of compiling errors when building petsc-dev that I
> just pulled. It looks like nonportable syntax (assuming this did compile on
> at least one machine) could be the problem.
>
> The offending line is
> static lList node_pool = {.next=0,.data.array=0};
>

This is C99 syntax. I pushed a fix.

Mark, note that static variables are initialized to 0 by default (as per
the standard).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120308/f56ec674/attachment.html>


More information about the petsc-dev mailing list