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"
60 : forceID(forceID_), pdfsID(pdfsID_), grid_size_(grid_size),
61 omega_shear_(omega_shear), v_s_(v_s) {}
64 for (
auto p : cache_pdfs_) {
72 const CellInterval &globalCellInterval,
73 cell_idx_t ghostLayers, IBlock *
block);
77 static std::function<void(IBlock *)>
78 getSweep(
const shared_ptr<StreamCollideSweepLeesEdwardsDoublePrecisionAVX>
80 return [kernel](IBlock *b) { kernel->run(b); };
84 const shared_ptr<StreamCollideSweepLeesEdwardsDoublePrecisionAVX> &kernel,
85 const shared_ptr<StructuredBlockStorage> &blocks,
86 const CellInterval &globalCellInterval, cell_idx_t ghostLayers = 1) {
87 return [kernel, blocks, globalCellInterval, ghostLayers](IBlock *b) {
88 kernel->runOnCellInterval(blocks, globalCellInterval, ghostLayers, b);
93 return [
this](IBlock *b) { this->
run(b); };
96 std::function<void(IBlock *)>
98 const CellInterval &globalCellInterval,
99 cell_idx_t ghostLayers = 1) {
100 return [
this, blocks, globalCellInterval, ghostLayers](IBlock *b) {
105 void configure(
const shared_ptr<StructuredBlockStorage> & ,
110 inline double getV_s()
const {
return v_s_; }
113 inline void setV_s(
const double value) { v_s_ = value; }
121 std::unordered_map<IBlock *, field::GhostLayerField<double, 19> *>
128#if (defined WALBERLA_CXX_COMPILER_IS_GNU) || \
129 (defined WALBERLA_CXX_COMPILER_IS_CLANG)
130#pragma GCC diagnostic pop
StreamCollideSweepLeesEdwardsDoublePrecisionAVX(BlockDataID forceID_, BlockDataID pdfsID_, double grid_size, double omega_shear, double v_s)
static std::function< void(IBlock *)> getSweepOnCellInterval(const shared_ptr< StreamCollideSweepLeesEdwardsDoublePrecisionAVX > &kernel, const shared_ptr< StructuredBlockStorage > &blocks, const CellInterval &globalCellInterval, cell_idx_t ghostLayers=1)
~StreamCollideSweepLeesEdwardsDoublePrecisionAVX()
std::function< void(IBlock *)> getSweep()
static std::function< void(IBlock *)> getSweep(const shared_ptr< StreamCollideSweepLeesEdwardsDoublePrecisionAVX > &kernel)
void configure(const shared_ptr< StructuredBlockStorage > &, IBlock *)
void operator()(IBlock *block)
double getGrid_size() const
double getOmega_shear() const
void setV_s(const double value)
void runOnCellInterval(const shared_ptr< StructuredBlockStorage > &blocks, const CellInterval &globalCellInterval, cell_idx_t ghostLayers, IBlock *block)
void setOmega_shear(const double value)
void setGrid_size(const double value)
std::function< void(IBlock *)> getSweepOnCellInterval(const shared_ptr< StructuredBlockStorage > &blocks, const CellInterval &globalCellInterval, cell_idx_t ghostLayers=1)
static double * block(double *p, std::size_t index, std::size_t size)
\file PackInfoPdfDoublePrecision.cpp \author pystencils