25#include "core/DataTypes.h"
26#include "core/logging/Logging.h"
28#include "domain_decomposition/BlockDataID.h"
29#include "domain_decomposition/IBlock.h"
30#include "domain_decomposition/StructuredBlockStorage.h"
31#include "field/GhostLayerField.h"
32#include "field/SwapableCompare.h"
35#include <unordered_map>
38#define RESTRICT __restrict__
43#if (defined WALBERLA_CXX_COMPILER_IS_GNU) || \
44 (defined WALBERLA_CXX_COMPILER_IS_CLANG)
45#pragma GCC diagnostic push
46#pragma GCC diagnostic ignored "-Wunused-parameter"
47#pragma GCC diagnostic ignored "-Wreorder"
57 float order_1,
float rate_coefficient,
58 float stoech_0,
float stoech_1)
60 order_1_(order_1), rate_coefficient_(rate_coefficient),
61 stoech_0_(stoech_0), stoech_1_(stoech_1) {}
71 static std::function<
void(IBlock *)>
73 return [kernel](IBlock *b) { kernel->run(b); };
78 const shared_ptr<StructuredBlockStorage> &
blocks,
86 return [
this](IBlock *b) { this->
run(b); };
89 std::function<
void(IBlock *)>
98 void configure(
const shared_ptr<StructuredBlockStorage> & ,
106 inline void setOrder_0(
const float value) { order_0_ = value; }
107 inline void setOrder_1(
const float value) { order_1_ = value; }
109 rate_coefficient_ = value;
119 float rate_coefficient_;
127#if (defined WALBERLA_CXX_COMPILER_IS_GNU) || \
128 (defined WALBERLA_CXX_COMPILER_IS_CLANG)
129#pragma GCC diagnostic pop
static std::function< void(IBlock *)> getSweep(const shared_ptr< ReactionKernelBulk_2_single_precision > &kernel)
void runOnCellInterval(const shared_ptr< StructuredBlockStorage > &blocks, const CellInterval &globalCellInterval, cell_idx_t ghostLayers, IBlock *block)
void setOrder_1(const float value)
std::function< void(IBlock *)> getSweepOnCellInterval(const shared_ptr< StructuredBlockStorage > &blocks, const CellInterval &globalCellInterval, cell_idx_t ghostLayers=1)
float getStoech_0() const
void setOrder_0(const float value)
std::function< void(IBlock *)> getSweep()
static std::function< void(IBlock *)> getSweepOnCellInterval(const shared_ptr< ReactionKernelBulk_2_single_precision > &kernel, const shared_ptr< StructuredBlockStorage > &blocks, const CellInterval &globalCellInterval, cell_idx_t ghostLayers=1)
void setStoech_1(const float value)
float getStoech_1() const
float getRate_coefficient() const
ReactionKernelBulk_2_single_precision(BlockDataID rho_0ID_, BlockDataID rho_1ID_, float order_0, float order_1, float rate_coefficient, float stoech_0, float stoech_1)
void setRate_coefficient(const float value)
void configure(const shared_ptr< StructuredBlockStorage > &, IBlock *)
void setStoech_0(const float value)
void operator()(IBlock *block)
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
static double * block(double *p, std::size_t index, std::size_t size)
\file PackInfoPdfDoublePrecision.cpp \author pystencils