Merge lp:~pefarrell/fluidity/intersection-finder into lp:fluidity
Proposed by
Patrick Farrell
Status: | Merged |
---|---|
Merged at revision: | 3464 |
Proposed branch: | lp:~pefarrell/fluidity/intersection-finder |
Merge into: | lp:fluidity |
Diff against target: |
195 lines (+39/-45) 2 files modified
femtools/Intersection_finder.F90 (+38/-44) femtools/Makefile.in (+1/-1) |
To merge this branch: | bzr merge lp:~pefarrell/fluidity/intersection-finder |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stephan Kramer | Approve | ||
Review via email: mp+60079@code.launchpad.net |
Description of the change
I had cause to run some rather large supermeshing runs, and discovered a worst-case flaw in the intersection finder that led to large amounts of memory usage. By replacing data structures (a linked list of edges with a hash table), I've managed to reduce the memory usage of the intersection finder considerably.
Note that step 9 ("updating longtests") is an irrelevancy; it was a bug in the buildbot setup. The branch has passed all unit tests, short tests and medium tests.
To post a comment you must log in.
Looks grand. Replacing clumsy linked lists with hash tables, (almost) always a good idea.