Skip to content

Stochastic forcing module (Ornstein–Uhlenbeck) with reproducible RNG and restart dumps - #425

Open
glesur wants to merge 19 commits into
developfrom
forcingCartesian
Open

glesur wants to merge 19 commits into
developfrom
forcingCartesian

Conversation

@glesur

@glesur glesur commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Adds the stochastic forcing module: turbulence driven by Fourier modes whose amplitudes follow Ornstein–Uhlenbeck processes. The module originates from @jeankpf's implementation. The module is cartesian only (though @jeankpf did also develop a spherical version, it is not yet part of this PR)

  • src/forcing/: forcing module + test/HD/forcing test
  • src/utils/random.{hpp,cpp}: new idfx::RandomXorShift64 — self-managed xorshift64 RNG (one stream per mode/component), deterministic on every backend, thread count and MPI rank, decoupled from Kokkos::Random_XorShift64_Pool to allow for state restoration from dump file and deterministic restarts.
  • Full forcing state (OU values, RNG state, OU parameters) stored in restart dumps with a new UInt64 dump type → bit-exact restarts
  • Docs: doc/source/modules/forcing.rst + [Forcing] section in doc/source/reference/idefix.ini.rst

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant