BioCMAMC-ST
SerdeModel Struct Reference

#include <serdes_class.hpp>

Public Types

enum class  particle_var : int { a = 0 , b , c , COUNT }
using uniform_weight = std::true_type
using Self = SerdeModel
using FloatType = float
using Config = std::nullopt_t
using SelfParticle = MC::ParticlesModel<Self::n_var, Self::FloatType>

Static Public Member Functions

static KOKKOS_INLINE_FUNCTION void init (const MC::KPRNG::pool_type &random_pool, std::size_t idx, const SelfParticle &arr)
static KOKKOS_INLINE_FUNCTION double mass (std::size_t idx, const SelfParticle &arr)
static KOKKOS_INLINE_FUNCTION MC::Status update (const MC::KPRNG::pool_type &random_pool, FloatType d_t, std::size_t idx, const SelfParticle &arr, const MC::LocalConcentration &c)
static KOKKOS_INLINE_FUNCTION void division (const MC::KPRNG::pool_type &random_pool, std::size_t idx, std::size_t idx2, const SelfParticle &arr, const SelfParticle &buffer_arr)
static MC::ContribIndexBounds get_bounds ()

Public Attributes

MODEL_CONSTANT FloatType a_i = 5e-6

Static Public Attributes

static constexpr std::size_t n_var = INDEX_FROM_ENUM(particle_var::COUNT)
static constexpr std::string_view name = "simple"

Member Typedef Documentation

◆ Config

using SerdeModel::Config = std::nullopt_t

◆ FloatType

using SerdeModel::FloatType = float

◆ Self

◆ SelfParticle

◆ uniform_weight

using SerdeModel::uniform_weight = std::true_type

Member Enumeration Documentation

◆ particle_var

enum class SerdeModel::particle_var : int
strong
Enumerator
COUNT 

Member Function Documentation

◆ division()

KOKKOS_INLINE_FUNCTION void SerdeModel::division ( const MC::KPRNG::pool_type & random_pool,
std::size_t idx,
std::size_t idx2,
const SelfParticle & arr,
const SelfParticle & buffer_arr )
inlinestatic

◆ get_bounds()

MC::ContribIndexBounds SerdeModel::get_bounds ( )
inlinestatic

◆ init()

KOKKOS_INLINE_FUNCTION void SerdeModel::init ( const MC::KPRNG::pool_type & random_pool,
std::size_t idx,
const SelfParticle & arr )
inlinestatic

◆ mass()

KOKKOS_INLINE_FUNCTION double SerdeModel::mass ( std::size_t idx,
const SelfParticle & arr )
inlinestatic

◆ update()

KOKKOS_INLINE_FUNCTION MC::Status SerdeModel::update ( const MC::KPRNG::pool_type & random_pool,
FloatType d_t,
std::size_t idx,
const SelfParticle & arr,
const MC::LocalConcentration & c )
inlinestatic

Member Data Documentation

◆ a_i

MODEL_CONSTANT FloatType SerdeModel::a_i = 5e-6

◆ n_var

std::size_t SerdeModel::n_var = INDEX_FROM_ENUM(particle_var::COUNT)
staticconstexpr

◆ name

std::string_view SerdeModel::name = "simple"
staticconstexpr

The documentation for this struct was generated from the following file: