mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-24 20:00:33 +05:00
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:
commit
3c64fad65e
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user