1#ifndef __SIMULATION_PROBA_LEAVING_HPP__
2#define __SIMULATION_PROBA_LEAVING_HPP__
4#include <Kokkos_Core.hpp>
5#include <common/maths.hpp>
23 template <
typename FastSample = precision_tag>
24 KOKKOS_INLINE_FUNCTION
bool
37 KOKKOS_INLINE_FUNCTION
bool
44 return (dt * flow / volume) > random_number;
KOKKOS_INLINE_FUNCTION float _ln(float x)
Definition maths.hpp:11
Definition kernels.hpp:12
static constexpr bool _use_kokkos_log
Definition probability_leaving.hpp:13
KOKKOS_INLINE_FUNCTION bool probability_leaving(float random_number, double volume, double flow, double dt)
Definition probability_leaving.hpp:25
void fast_tag
Definition probability_leaving.hpp:10
int precision_tag
Definition probability_leaving.hpp:11
KOKKOS_INLINE_FUNCTION bool probability_leaving< fast_tag >(float random_number, double volume, double flow, double dt)
Definition probability_leaving.hpp:38