CaNS-World / CaNS

A code for fast, massively-parallel direct numerical simulations (DNS) of canonical flows
MIT License
197 stars 69 forks source link

Revert mixed precision mode #42

Closed p-costa closed 1 year ago

p-costa commented 1 year ago

The mixed-precision mode that was triggered when building with SINGLE_PRECISION_POISSON=1 has been removed from the main branch.

While this mode yields excellent results for many benchmarks, it resulted in a more complex code that is harder to follow for the average user. Moreover, simply performing the whole calculation in lower precision seems to do a good job for many benchmarks.

Hence, in favor of a more readable code, we removed this feature from the main branch, a decision that can be reconsidered in the future. This option can still be explored in v2.0.1, and is valuable for a few very high Reynolds numbers or other setups with extremely fine grids.

Closes #40.