1#ifndef __SIMULATION_PROBA_LEAVING_HPP__
2#define __SIMULATION_PROBA_LEAVING_HPP__
4#include <Kokkos_Core.hpp>
5#include <common/maths.hpp>
20 template <
typename FastSample =
int>
39 return (dt * flow / volume) > random_number;
KOKKOS_INLINE_FUNCTION float _ln(float x)
Definition maths.hpp:10
Definition kernels.hpp:11
static constexpr bool _use_kokkos_log
Definition probability_leaving.hpp:10
KOKKOS_INLINE_FUNCTION bool probability_leaving(float random_number, double volume, double flow, double dt)
Definition probability_leaving.hpp:21
KOKKOS_INLINE_FUNCTION bool probability_leaving< void >(float random_number, double volume, double flow, double dt)
Definition probability_leaving.hpp:33