cb-geo / mpm

CB-Geo High-Performance Material Point Method
https://www.cb-geo.com/research/mpm
Other
238 stars 83 forks source link

Use flat_map to handle particle properties #672

Closed kks32 closed 4 years ago

kks32 commented 4 years ago

Describe the PR Use flat_map to handle particle properties to support map and to improve performance compared to an amortized openaddressing map.

Related Issues/PRs

654

Additional context Flat map uses vector containers. O(1) lookup constant is smaller for a fewer number of elements (<100)