[petsc-users] PetscTableCreateHashSize

Jed Brown jed at jedbrown.org
Mon Jan 9 14:36:14 CST 2017


Satish Balay <balay at mcs.anl.gov> writes:
> Sure - I'm using a crappy algorithm [look-up table] to get
> "prime_number_close_to(1.4*sz)" - as I don't know how to generate
> these numbers automatically.

FWIW, it only needs to be coprime with PETSC_HASH_FACT.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170109/1c369eb2/attachment.pgp>


More information about the petsc-users mailing list