[petsc-dev] implementation header incluing ../src

Matthew Knepley knepley at gmail.com
Thu Feb 19 15:59:22 CST 2015


On Thu, Feb 19, 2015 at 3:54 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>
>   Is it intended for endusers -> petschash.h (requires decent
> documentation and error checking) or for use by PETSc ->
> petsc-private/hashimpl.h


I am fine with the impl version. I will move all the includes to source
files and cleanup.

  Matt


> > On Feb 19, 2015, at 3:47 PM, Matthew Knepley <knepley at gmail.com> wrote:
> >
> > On Thu, Feb 19, 2015 at 2:39 PM, Jed Brown <jed at jedbrown.org> wrote:
> > Matthew Knepley <knepley at gmail.com> writes:
> >
> > > On Thu, Feb 19, 2015 at 1:42 AM, Lisandro Dalcin <dalcinl at gmail.com>
> wrote:
> > >
> > >> Please take look to the last line of the following output:
> > >>
> > >> $ grep include $PETSC_DIR/include/petsc-private/dmpleximpl.h
> > >> #include <petscmat.h>       /*I      "petscmat.h"          I*/
> > >> #include <petscdmplex.h> /*I      "petscdmplex.h"    I*/
> > >> #include <petscbt.h>
> > >> #include <petscsf.h>
> > >> #include <petsc-private/dmimpl.h>
> > >> #include <../src/sys/utils/hash.h>
> > >>
> > >
> > > It does not look like anything else uses hash.h. Can we just move it to
> > > include/petschash.h?
> >
> > Why does it need to be included by a header?
> >
> > I thought something else was using this, but it looks like I am the only
> one. We
> > should put it in a header and clear out the cruft no one uses anymore:
> >
> > knepley/feature-harmonic-advection *$:/PETSc3/petsc/petsc-dev$ find
> ./src -type f | xargs grep hash.h
> > find ./src -type f | xargs grep hash.h
> > ./src/dm/impls/plex/plexinterpolate.c:#include <../src/sys/utils/hash.h>
> > ./src/dm/impls/plex/plexinterpolate.c~:#include <../src/sys/utils/hash.h>
> > ./src/dm/impls/plex/plextree.c:#include <../src/sys/utils/hash.h>
> > ./src/sys/examples/tests/ex26.c:#include <../src/sys/utils/hash.h>
> > ./src/sys/utils/hash.h:#include <khash.h>
> >  1knepley/feature-harmonic-advection *$:/PETSc3/petsc/petsc-dev$ find
> ./include -type f | xargs grep hash.h
> > find ./include -type f | xargs grep hash.h
> > ./include/petsc-private/dmpleximpl.h:#include <../src/sys/utils/hash.h>
> >
> >   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
>
>


-- 
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/20150219/ac333c46/attachment.html>


More information about the petsc-dev mailing list