On Fri, Jun 3, 2011 at 2:41 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I hate C++</blockquote><div><br></div><div>It is currently the only way to do intelligent things with multiple types. I am trying to</div><div>send integers around. VecScatter is completely broken for this because we use C.</div>
<div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5">
On Jun 3, 2011, at 2:38 PM, Matthew Knepley wrote:<br>
<br>
> I hate fucking C. Let me push a fix.<br>
><br>
> Matt<br>
><br>
> On Fri, Jun 3, 2011 at 2:35 PM, Barry Smith <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> wrote:<br>
><br>
> /Users/barrysmith/Src/petsc-dev/arch-gnu/bin/mpicc -o ex58.o -c -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -I/Users/barrysmith/Src/petsc-dev/include -I/Users/barrysmith/Src/petsc-dev/arch-gnu/include -I/opt/local/include -D__INSDIR__=src/snes/examples/tutorials/ ex58.c<br>
> In file included from /Users/barrysmith/Src/petsc-dev/include/petscvec.h:490,<br>
> from /Users/barrysmith/Src/petsc-dev/include/petscmat.h:6,<br>
> from /Users/barrysmith/Src/petsc-dev/include/petscdm.h:6,<br>
> from /Users/barrysmith/Src/petsc-dev/include/petscpc.h:6,<br>
> from /Users/barrysmith/Src/petsc-dev/include/petscksp.h:6,<br>
> from /Users/barrysmith/Src/petsc-dev/include/petscsnes.h:6,<br>
> from ex58.c:1:<br>
> /Users/barrysmith/Src/petsc-dev/include/private/vecimpl.h:123: error: conflicting types for ‘PetscSectionGetDof’<br>
> /Users/barrysmith/Src/petsc-dev/include/private/vecimpl.h:99: error: previous declaration of ‘PetscSectionGetDof’ was here<br>
> /Users/barrysmith/Src/petsc-dev/include/private/vecimpl.h:131: error: conflicting types for ‘PetscSectionGetOffset’<br>
> /Users/barrysmith/Src/petsc-dev/include/private/vecimpl.h:100: error: previous declaration of ‘PetscSectionGetOffset’ was here<br>
> make: [ex58.o] Error 1 (ignored)<br>
><br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
> -- Norbert Wiener<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>