MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / RandomPoisson

Function RandomPoisson

Src/Base/AMReX_Random.cpp:140–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140unsigned int RandomPoisson (Real lambda)
141{
142 std::poisson_distribution<unsigned int> distribution(lambda);
143 int tid = OpenMP::get_thread_num();
144 return distribution(generators[tid]);
145}
146
147Real RandomGamma (Real alpha, Real beta)
148{

Callers 1

AMREX_FORCE_INLINEFunction · 0.85

Calls 1

get_thread_numFunction · 0.85

Tested by

no test coverage detected