On Fri, Jun 3, 2011 at 2:41 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
> > I hate C++ It is currently the only way to do intelligent things with multiple types. I am trying to send integers around. VecScatter is completely broken for this because we use C. Matt > On Jun 3, 2011, at 2:38 PM, Matthew Knepley wrote: > > > I hate fucking C. Let me push a fix. > > > > Matt > > > > On Fri, Jun 3, 2011 at 2:35 PM, Barry Smith <bsmith at mcs.anl.gov> wrote: > > > > /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 > > In file included from > /Users/barrysmith/Src/petsc-dev/include/petscvec.h:490, > > from > /Users/barrysmith/Src/petsc-dev/include/petscmat.h:6, > > from /Users/barrysmith/Src/petsc-dev/include/petscdm.h:6, > > from /Users/barrysmith/Src/petsc-dev/include/petscpc.h:6, > > from > /Users/barrysmith/Src/petsc-dev/include/petscksp.h:6, > > from > /Users/barrysmith/Src/petsc-dev/include/petscsnes.h:6, > > from ex58.c:1: > > /Users/barrysmith/Src/petsc-dev/include/private/vecimpl.h:123: error: > conflicting types for ?PetscSectionGetDof? > > /Users/barrysmith/Src/petsc-dev/include/private/vecimpl.h:99: error: > previous declaration of ?PetscSectionGetDof? was here > > /Users/barrysmith/Src/petsc-dev/include/private/vecimpl.h:131: error: > conflicting types for ?PetscSectionGetOffset? > > /Users/barrysmith/Src/petsc-dev/include/private/vecimpl.h:100: error: > previous declaration of ?PetscSectionGetOffset? was here > > make: [ex58.o] Error 1 (ignored) > > > > > > > > > > > > > > -- > > 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 > > -- 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/20110603/f9eba6ee/attachment.html>
