Merge branch '16-slow-meshing-due-to-inappropriate-hashing-function' into 'master'

Resolve "Slow meshing due to inappropriate hashing function"

Closes #16

See merge request jschoeberl/netgen!78
This commit is contained in:
Joachim Schöberl 2018-02-20 17:39:52 +01:00
commit 3c64fad65e

View File

@ -1344,7 +1344,7 @@ PrintMemInfo (ostream & ost) const
inline void SetInvalid (INDEX & i) { i = -1; }
inline bool IsInvalid (INDEX i) { return i == -1; }
inline size_t HashValue (INDEX i, size_t size) { return size_t(i) % size; }
inline size_t HashValue (INDEX i, size_t size) { return (113*size_t(i)) % size; }
inline void SetInvalid (INDEX_2 & i2) { i2[0] = -1; }
inline bool IsInvalid (INDEX_2 i2) { return i2[0] == -1; }