[petsc-dev] strangness in Chebyshev estimate of eigenvalues

Jed Brown jed at jedbrown.org
Tue May 17 14:11:27 CDT 2016


Barry Smith <bsmith at mcs.anl.gov> writes:
>   Sounds like Jed is saying he is ok with making the default use the
>   random number generator. Do this in a branch and be aware that you
>   have to update a bunch of the test output files to match the new
>   convergence histories introduced by the change.

Sure, but if it's all the same to you all, let's use a hash.  This guy
seems to have a convenient permutation of 32-bit integers.  (Overkill
for us, but that's not a problem.)

http://stackoverflow.com/a/12996028/33208

Use i=(i >> 32)^i for 64-bit input.
-------------- 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/20160517/e4575d05/attachment.sig>


More information about the petsc-dev mailing list