[petsc-dev] Make PetscHash publicly accessible

Jed Brown jed at jedbrown.org
Fri Apr 22 11:34:21 CDT 2016


Lawrence Mitchell <lawrence.mitchell at imperial.ac.uk> writes:

>> On 22 Apr 2016, at 15:52, Jed Brown <jed at jedbrown.org> wrote:
>> 
>> This is actually used, but I think the implementation (below) accurately
>> fits my description of wrapping khash primitives with imaginary error
>> checking.  Lawrence, do you just want a general-purpose hash table or do
>> you specifically want Matt's hash/linked-list structure?
>
> I only want an int->int hash map so just a general-purpose one will do.

My suggestion is to move the pure khash.h part of src/sys/utils/hash.h
to include/petsc/private/khash.h and use that in your work.  (And,
preferably, upgrade it to khash.h 0.2.8.)
-------------- 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/0649d791/attachment.sig>


More information about the petsc-dev mailing list