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 float order_2,
float order_3,
float order_4,
float rate_coefficient,
113 float stoech_0,
float stoech_1,
float stoech_2,
float stoech_3,
121 auto createIdxVector = [](IBlock *
const, StructuredBlockStorage *
const) {
125 createIdxVector,
"IndexField_ReactionKernelIndexed_5_single_precision");
131 float order_0,
float order_1,
float order_2,
float order_3,
float order_4,
132 float rate_coefficient,
float stoech_0,
float stoech_1,
float stoech_2,
153 "Boundary condition was not generated including force calculation.")
158 return [
this](IBlock *b) { this->
run(b); };
162 return [
this](IBlock *b) { this->
inner(b); };
166 return [
this](IBlock *b) { this->
outer(b); };
169 template <
typename FlagField_T>
178 template <
typename FlagField_T>
250#if defined(__clang__)
251#pragma clang diagnostic pop
252#elif defined(__GNUC__) or defined(__GNUG__)
253#pragma GCC diagnostic pop
bool operator==(IndexVectors const &other) const
std::vector< IndexInfo > CpuIndexVector
auto const & indexVector(Type t) const
IndexInfo * pointerCpu(Type t)
auto & indexVector(Type t)
std::function< void(IBlock *)> getInnerSweep()
void fillFromFlagField(const std::shared_ptr< StructuredBlockForest > &blocks, ConstBlockDataID flagFieldID, FlagUID boundaryFlagUID, FlagUID domainFlagUID)
void inner(IBlock *block)
std::function< void(IBlock *)> getSweep()
void fillFromFlagField(IBlock *block, ConstBlockDataID flagFieldID, FlagUID boundaryFlagUID, FlagUID domainFlagUID)
ReactionKernelIndexed_5_single_precision(BlockDataID indexVectorID_, BlockDataID rho_0ID_, BlockDataID rho_1ID_, BlockDataID rho_2ID_, BlockDataID rho_3ID_, BlockDataID rho_4ID_, float order_0, float order_1, float order_2, float order_3, float order_4, float rate_coefficient, float stoech_0, float stoech_1, float stoech_2, float stoech_3, float stoech_4)
std::function< void(IBlock *)> getOuterSweep()
Vector3< double > getForce(IBlock *)
ReactionKernelIndexed_5_single_precision(const std::shared_ptr< StructuredBlockForest > &blocks, BlockDataID rho_0ID_, BlockDataID rho_1ID_, BlockDataID rho_2ID_, BlockDataID rho_3ID_, BlockDataID rho_4ID_, float order_0, float order_1, float order_2, float order_3, float order_4, float rate_coefficient, float stoech_0, float stoech_1, float stoech_2, float stoech_3, float stoech_4)
void operator()(IBlock *block)
void outer(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
IndexInfo(int32_t x_, int32_t y_, int32_t z_)
bool operator==(const IndexInfo &o) const