33#include <core/DataTypes.h>
35#include <blockforest/StructuredBlockForest.h>
36#include <core/debug/Debug.h>
37#include <domain_decomposition/BlockDataID.h>
38#include <domain_decomposition/IBlock.h>
39#include <field/FlagField.h>
40#include <field/GhostLayerField.h>
49#pragma clang diagnostic push
50#pragma clang diagnostic ignored "-Wunused-variable"
51#pragma clang diagnostic ignored "-Wunused-parameter"
52#elif defined(__GNUC__) or defined(__GNUG__)
53#pragma GCC diagnostic push
54#pragma GCC diagnostic ignored "-Wunused-variable"
55#pragma GCC diagnostic ignored "-Wunused-parameter"
59#define RESTRICT __restrict__
61#define RESTRICT __restrict
66#ifdef WALBERLA_BUILD_WITH_HALF_PRECISION_SUPPORT
81 return x ==
o.x &&
y ==
o.y &&
z ==
o.z;
93 return other.cpuVectors_ == cpuVectors_;
99 return cpuVectors_[t].empty() ?
nullptr : cpuVectors_[t].data();
105 std::vector<CpuIndexVector> cpuVectors_{
NUM_TYPES};
109 const std::shared_ptr<StructuredBlockForest> &
blocks,
112 double order_3,
double rate_coefficient,
double stoech_0,
double stoech_1,
113 double stoech_2,
double stoech_3)
119 auto createIdxVector = [](IBlock *
const, StructuredBlockStorage *
const) {
123 createIdxVector,
"IndexField_ReactionKernelIndexed_4_double_precision");
129 double order_1,
double order_2,
double order_3,
double rate_coefficient,
130 double stoech_0,
double stoech_1,
double stoech_2,
double stoech_3)
148 "Boundary condition was not generated including force calculation.")
153 return [
this](IBlock *b) { this->
run(b); };
157 return [
this](IBlock *b) { this->
inner(b); };
161 return [
this](IBlock *b) { this->
outer(b); };
164 template <
typename FlagField_T>
173 template <
typename FlagField_T>
242#if defined(__clang__)
243#pragma clang diagnostic pop
244#elif defined(__GNUC__) or defined(__GNUG__)
245#pragma GCC diagnostic pop
bool operator==(IndexVectors const &other) const
IndexInfo * pointerCpu(Type t)
std::vector< IndexInfo > CpuIndexVector
auto const & indexVector(Type t) const
auto & indexVector(Type t)
void outer(IBlock *block)
void inner(IBlock *block)
std::function< void(IBlock *)> getSweep()
ReactionKernelIndexed_4_double_precision(const std::shared_ptr< StructuredBlockForest > &blocks, BlockDataID rho_0ID_, BlockDataID rho_1ID_, BlockDataID rho_2ID_, BlockDataID rho_3ID_, double order_0, double order_1, double order_2, double order_3, double rate_coefficient, double stoech_0, double stoech_1, double stoech_2, double stoech_3)
std::function< void(IBlock *)> getInnerSweep()
std::function< void(IBlock *)> getOuterSweep()
void fillFromFlagField(IBlock *block, ConstBlockDataID flagFieldID, FlagUID boundaryFlagUID, FlagUID domainFlagUID)
void fillFromFlagField(const std::shared_ptr< StructuredBlockForest > &blocks, ConstBlockDataID flagFieldID, FlagUID boundaryFlagUID, FlagUID domainFlagUID)
Vector3< double > getForce(IBlock *)
ReactionKernelIndexed_4_double_precision(BlockDataID indexVectorID_, BlockDataID rho_0ID_, BlockDataID rho_1ID_, BlockDataID rho_2ID_, BlockDataID rho_3ID_, double order_0, double order_1, double order_2, double order_3, double rate_coefficient, double stoech_0, double stoech_1, double stoech_2, double stoech_3)
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
bool operator==(const IndexInfo &o) const
IndexInfo(int32_t x_, int32_t y_, int32_t z_)