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__
40#define RESTRICT __restrict
45#if (defined WALBERLA_CXX_COMPILER_IS_GNU) || \
46 (defined WALBERLA_CXX_COMPILER_IS_CLANG)
47#pragma GCC diagnostic push
48#pragma GCC diagnostic ignored "-Wunused-parameter"
49#pragma GCC diagnostic ignored "-Wreorder"
60 double omega_shear,
double v_s)
61 : forceID(forceID_), pdfsID(pdfsID_), grid_size_(grid_size),
62 omega_shear_(omega_shear), v_s_(v_s) {}
67 const CellInterval &globalCellInterval,
68 cell_idx_t ghostLayers, IBlock *
block);
73 const shared_ptr<CollideSweepDoublePrecisionLeesEdwardsAVX> &kernel) {
74 return [kernel](IBlock *b) { kernel->run(b); };
78 const shared_ptr<CollideSweepDoublePrecisionLeesEdwardsAVX> &kernel,
79 const shared_ptr<StructuredBlockStorage> &blocks,
80 const CellInterval &globalCellInterval, cell_idx_t ghostLayers = 1) {
81 return [kernel, blocks, globalCellInterval, ghostLayers](IBlock *b) {
82 kernel->runOnCellInterval(blocks, globalCellInterval, ghostLayers, b);
87 return [
this](IBlock *b) { this->
run(b); };
90 std::function<void(IBlock *)>
92 const CellInterval &globalCellInterval,
93 cell_idx_t ghostLayers = 1) {
94 return [
this, blocks, globalCellInterval, ghostLayers](IBlock *b) {
99 void configure(
const shared_ptr<StructuredBlockStorage> & ,
104 inline double getV_s()
const {
return v_s_; }
107 inline void setV_s(
const double value) { v_s_ = value; }
120#if (defined WALBERLA_CXX_COMPILER_IS_GNU) || \
121 (defined WALBERLA_CXX_COMPILER_IS_CLANG)
122#pragma GCC diagnostic pop
void setV_s(const double value)
double getOmega_shear() const
void runOnCellInterval(const shared_ptr< StructuredBlockStorage > &blocks, const CellInterval &globalCellInterval, cell_idx_t ghostLayers, IBlock *block)
void setGrid_size(const double value)
void operator()(IBlock *block)
std::function< void(IBlock *)> getSweepOnCellInterval(const shared_ptr< StructuredBlockStorage > &blocks, const CellInterval &globalCellInterval, cell_idx_t ghostLayers=1)
static std::function< void(IBlock *)> getSweep(const shared_ptr< CollideSweepDoublePrecisionLeesEdwardsAVX > &kernel)
double getGrid_size() const
std::function< void(IBlock *)> getSweep()
void configure(const shared_ptr< StructuredBlockStorage > &, IBlock *)
CollideSweepDoublePrecisionLeesEdwardsAVX(BlockDataID forceID_, BlockDataID pdfsID_, double grid_size, double omega_shear, double v_s)
static std::function< void(IBlock *)> getSweepOnCellInterval(const shared_ptr< CollideSweepDoublePrecisionLeesEdwardsAVX > &kernel, const shared_ptr< StructuredBlockStorage > &blocks, const CellInterval &globalCellInterval, cell_idx_t ghostLayers=1)
void setOmega_shear(const double value)
static double * block(double *p, std::size_t index, std::size_t size)
\file PackInfoPdfDoublePrecision.cpp \author pystencils