This document captures the current performance posture of the CFD corrector, how to measure it, and how to tune it for different use cases.
dev/dev/cfd_perf.cljclj -X dev.cfd-perf/run :sizes '[32 64 100]' :runs 2 :iterations 20 :compare-parallel? true
:sizes — grid edge lengths (nx = ny = nz):runs — samples per size:iterations — CG iterations in the Poisson solve (runtime scales ~linearly):compare-parallel? — run both serial and :parallel? true:dimensions — 2 or 3 (default 3)Parallel is opt-in ({:parallel? true}) and auto-disables on tiny problems (n <= 150k interior cells).
:parallel? true in corrector/correct for 64³ and larger. Small grids may not benefit.:iterations for faster but less accurate projections.:parallel? true for grids >= ~64³.Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |