Commit 4169807c authored by Martin Bauer's avatar Martin Bauer
Browse files

Random number generation support for pystencils

- counter-based philox RNG: counter/key is filled with cell coordinate
  and optional external parameters like block position and time step
- works on CPU and GPU - on CPU only for non-vectorized versions

- introduced more flexible "CustomCodeNode" that can inject
  backend-specific hand-written code
parent 949b28b0
......@@ -59,9 +59,9 @@ using namespace std;
namespace walberla {
namespace {{namespace}} {
const real_t {{class_name}}::w[{{Q}}] = { {{weights}} };
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment