[petsc-dev] strangness in Chebyshev estimate of eigenvalues
Jed Brown
jed at jedbrown.org
Thu Aug 27 11:48:21 CDT 2015
Mark Adams <mfadams at lbl.gov> writes:
> My hash function is:
>
> PetscScalar v = ((PetscScalar)((PETSC_HASH_FACT*idx)%100) -
> 49.5)/50.0;
> ierr = VecSetValues(bb, 1, &idx, &v,
> INSERT_VALUES);CHKERRQ(ierr);
>
>
> include/petscctable.h:#define PETSC_HASH_FACT 79943
Still grid-aligned stripes on a 100xN grid. Please stop it with these
bullshit ad-hoc hash functions. Either use a decent hash function or
drand48.
-------------- 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/20150827/01e76ad7/attachment.sig>
More information about the petsc-dev
mailing list