Compare commits

...

2 Commits

Author SHA1 Message Date
Mark OLESEN
c66993e288 Revert "Merge branch 'primitiveMeshOptimization' into 'develop'"
This reverts merge request !596
2023-03-03 16:34:40 +00:00
alonzameret
61d610574c ENH: improved point-cell and cell-point topology methods (#2715)
- for OpenFOAM-v2212 and earlier cellPoints() were constructed
  from pointCells(), but this is slower than constructing
  pointCells() from cellPoints().

  Some of the slowness is due to allocations associated with
  cells::labels(), but a large amount of slowness is the duplicate
  point avoidance. Since this is being done for many points/cells
  at once, using a bitSet for managing the duplicates amortizes
  quickly

- now construct cellPoints() from cached pointCells(), otherwise
  construct manually (using bitSet/DynamicList for bookkeeping)

- construct pointCells() from cached cellPoints(), or cached
  pointFaces(), otherwise manually.

Code Contribution: Alon Zameret

Co-authored-by: Mark Olesen
2023-03-03 16:23:42 +01:00

Diff Content Not Available