23#include "core/DataTypes.h"
24#include "core/Macros.h"
34#pragma GCC diagnostic push
35#pragma GCC diagnostic ignored "-Wstrict-aliasing"
36#pragma GCC diagnostic ignored "-Wunused-variable"
37#pragma GCC diagnostic ignored "-Wconversion"
42#ifdef __NVCC_DIAG_PRAGMA_SUPPORT__
43#pragma nv_diag_suppress 177
45#pragma diag_suppress 177
49namespace internal_43f4eae176e72ad2d9db0f0468064c30 {
53#pragma omp for schedule(static)
54 for (int64_t ctr_0 = 0; ctr_0 < indexVectorSize; ctr_0 += 1) {
55 const int32_t x = *((int32_t *)(&_data_indexVector[20 * ctr_0]));
56 const int32_t y = *((int32_t *)(&_data_indexVector[20 * ctr_0 + 4]));
57 const int32_t z = *((int32_t *)(&_data_indexVector[20 * ctr_0 + 8]));
59 _data_field[_stride_field_0 * x + _stride_field_1 * y + _stride_field_2 * z] = *((
float *)(&_data_indexVector[20 * ctr_0 + 16]));
67#pragma GCC diagnostic pop
74void Dirichlet_single_precision::run_impl(IBlock *
block, IndexVectors::Type type) {
75 auto *indexVectors =
block->getData<IndexVectors>(indexVectorID);
76 int32_t indexVectorSize = int32_c(indexVectors->indexVector(type).size());
77 if (indexVectorSize == 0)
80 auto pointer = indexVectors->pointerCpu(type);
82 uint8_t *_data_indexVector =
reinterpret_cast<uint8_t *
>(pointer);
84 auto field =
block->getData<field::GhostLayerField<float, 1>>(
fieldID);
86 WALBERLA_ASSERT_GREATER_EQUAL(0, -int_c(field->nrOfGhostLayers()))
87 float *
RESTRICT _data_field = field->dataAt(0, 0, 0, 0);
88 const int64_t _stride_field_0 = int64_t(field->xStride());
89 const int64_t _stride_field_1 = int64_t(field->yStride());
90 const int64_t _stride_field_2 = int64_t(field->zStride());
91 internal_43f4eae176e72ad2d9db0f0468064c30::dirichlet_single_precision_boundary_Dirichlet_single_precision(_data_field, _data_indexVector, _stride_field_0, _stride_field_1, _stride_field_2, indexVectorSize);
#define FUNC_PREFIX
\file AdvectiveFluxKernel_double_precision.cpp \author pystencils
#define RESTRICT
\file AdvectiveFluxKernel_double_precision.h \author pystencils
void outer(IBlock *block)
void inner(IBlock *block)
static double * block(double *p, std::size_t index, std::size_t size)
static FUNC_PREFIX void dirichlet_single_precision_boundary_Dirichlet_single_precision(float *RESTRICT _data_field, uint8_t *RESTRICT const _data_indexVector, int64_t const _stride_field_0, int64_t const _stride_field_1, int64_t const _stride_field_2, int32_t indexVectorSize)
\file PackInfoPdfDoublePrecision.cpp \author pystencils