[petsc-dev] Make PetscHash publicly accessible

Jed Brown jed at jedbrown.org
Fri Apr 22 10:36:24 CDT 2016

Matthew Knepley <knepley at gmail.com> writes:

> I assume you would just stick this stuff in source files?

Yes, in the *one* source file that uses this special-purpose data
structure.  Though it doesn't look like plexinterpolate.c uses the
linked list aspect of this data structure either, so this can be greatly
simplified.  Also note that your hash function is pretty weird and one
would expect lots of collisions (comment stale too).

I am in favor of moving the header to include/petsc/private/, but I
would strip out all the PetscHash{IJ,KL,IJKL} stuff.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20160422/7cf1b5ab/attachment.sig>

More information about the petsc-dev mailing list