93 auto pdfs =
block->getData<field::GhostLayerField<float, 19>>(pdfsID);
94 auto force =
block->getData<field::GhostLayerField<float, 3>>(forceID);
95 auto velocity =
block->getData<field::GhostLayerField<float, 3>>(velocityID);
97 auto &rho_0 = this->rho_0_;
98 WALBERLA_ASSERT_GREATER_EQUAL(0, -int_c(force->nrOfGhostLayers()))
99 float *
RESTRICT const _data_force = force->dataAt(0, 0, 0, 0);
100 WALBERLA_ASSERT_EQUAL(force->layout(), field::fzyx)
101 WALBERLA_ASSERT_GREATER_EQUAL(0, -int_c(pdfs->nrOfGhostLayers()))
102 float *
RESTRICT _data_pdfs = pdfs->dataAt(0, 0, 0, 0);
103 WALBERLA_ASSERT_EQUAL(pdfs->layout(), field::fzyx)
104 WALBERLA_ASSERT_GREATER_EQUAL(0, -int_c(
velocity->nrOfGhostLayers()))
106 WALBERLA_ASSERT_EQUAL(
velocity->layout(), field::fzyx)
107 WALBERLA_ASSERT_GREATER_EQUAL(force->xSizeWithGhostLayer(), int64_t(int64_c(force->xSize()) + 0))
108 const int64_t _size_force_0 = int64_t(int64_c(force->xSize()) + 0);
109 WALBERLA_ASSERT_EQUAL(force->layout(), field::fzyx)
110 WALBERLA_ASSERT_GREATER_EQUAL(force->ySizeWithGhostLayer(), int64_t(int64_c(force->ySize()) + 0))
111 const int64_t _size_force_1 = int64_t(int64_c(force->ySize()) + 0);
112 WALBERLA_ASSERT_EQUAL(force->layout(), field::fzyx)
113 WALBERLA_ASSERT_GREATER_EQUAL(force->zSizeWithGhostLayer(), int64_t(int64_c(force->zSize()) + 0))
114 const int64_t _size_force_2 = int64_t(int64_c(force->zSize()) + 0);
115 WALBERLA_ASSERT_EQUAL(force->layout(), field::fzyx)
116 const int64_t _stride_force_0 = int64_t(force->xStride());
117 const int64_t _stride_force_1 = int64_t(force->yStride());
118 const int64_t _stride_force_2 = int64_t(force->zStride());
119 const int64_t _stride_force_3 = int64_t(1 * int64_t(force->fStride()));
120 const int64_t _stride_pdfs_0 = int64_t(pdfs->xStride());
121 const int64_t _stride_pdfs_1 = int64_t(pdfs->yStride());
122 const int64_t _stride_pdfs_2 = int64_t(pdfs->zStride());
123 const int64_t _stride_pdfs_3 = int64_t(1 * int64_t(pdfs->fStride()));
124 const int64_t _stride_velocity_0 = int64_t(
velocity->xStride());
125 const int64_t _stride_velocity_1 = int64_t(
velocity->yStride());
126 const int64_t _stride_velocity_2 = int64_t(
velocity->zStride());
127 const int64_t _stride_velocity_3 = int64_t(1 * int64_t(
velocity->fStride()));
128 internal_b8085d63d6b7e842485134abbac511e8::initialpdfssettersingleprecision_initialpdfssettersingleprecision(_data_force, _data_pdfs, _data_velocity, _size_force_0, _size_force_1, _size_force_2, _stride_force_0, _stride_force_1, _stride_force_2, _stride_force_3, _stride_pdfs_0, _stride_pdfs_1, _stride_pdfs_2, _stride_pdfs_3, _stride_velocity_0, _stride_velocity_1, _stride_velocity_2, _stride_velocity_3, rho_0);
133 CellInterval ci = globalCellInterval;
134 CellInterval blockBB = blocks->getBlockCellBB(*
block);
135 blockBB.expand(ghostLayers);
136 ci.intersect(blockBB);
137 blocks->transformGlobalToBlockLocalCellInterval(ci, *
block);
141 auto pdfs =
block->getData<field::GhostLayerField<float, 19>>(pdfsID);
142 auto force =
block->getData<field::GhostLayerField<float, 3>>(forceID);
143 auto velocity =
block->getData<field::GhostLayerField<float, 3>>(velocityID);
145 auto &rho_0 = this->rho_0_;
146 WALBERLA_ASSERT_GREATER_EQUAL(ci.xMin(), -int_c(force->nrOfGhostLayers()))
147 WALBERLA_ASSERT_GREATER_EQUAL(ci.yMin(), -int_c(force->nrOfGhostLayers()))
148 WALBERLA_ASSERT_GREATER_EQUAL(ci.zMin(), -int_c(force->nrOfGhostLayers()))
149 float *
RESTRICT const _data_force = force->dataAt(ci.xMin(), ci.yMin(), ci.zMin(), 0);
150 WALBERLA_ASSERT_EQUAL(force->layout(), field::fzyx)
151 WALBERLA_ASSERT_GREATER_EQUAL(ci.xMin(), -int_c(pdfs->nrOfGhostLayers()))
152 WALBERLA_ASSERT_GREATER_EQUAL(ci.yMin(), -int_c(pdfs->nrOfGhostLayers()))
153 WALBERLA_ASSERT_GREATER_EQUAL(ci.zMin(), -int_c(pdfs->nrOfGhostLayers()))
154 float *
RESTRICT _data_pdfs = pdfs->dataAt(ci.xMin(), ci.yMin(), ci.zMin(), 0);
155 WALBERLA_ASSERT_EQUAL(pdfs->layout(), field::fzyx)
156 WALBERLA_ASSERT_GREATER_EQUAL(ci.xMin(), -int_c(
velocity->nrOfGhostLayers()))
157 WALBERLA_ASSERT_GREATER_EQUAL(ci.yMin(), -int_c(
velocity->nrOfGhostLayers()))
158 WALBERLA_ASSERT_GREATER_EQUAL(ci.zMin(), -int_c(
velocity->nrOfGhostLayers()))
159 float *
RESTRICT const _data_velocity =
velocity->dataAt(ci.xMin(), ci.yMin(), ci.zMin(), 0);
160 WALBERLA_ASSERT_EQUAL(
velocity->layout(), field::fzyx)
161 WALBERLA_ASSERT_GREATER_EQUAL(force->xSizeWithGhostLayer(), int64_t(int64_c(ci.xSize()) + 0))
162 const int64_t _size_force_0 = int64_t(int64_c(ci.xSize()) + 0);
163 WALBERLA_ASSERT_EQUAL(force->layout(), field::fzyx)
164 WALBERLA_ASSERT_GREATER_EQUAL(force->ySizeWithGhostLayer(), int64_t(int64_c(ci.ySize()) + 0))
165 const int64_t _size_force_1 = int64_t(int64_c(ci.ySize()) + 0);
166 WALBERLA_ASSERT_EQUAL(force->layout(), field::fzyx)
167 WALBERLA_ASSERT_GREATER_EQUAL(force->zSizeWithGhostLayer(), int64_t(int64_c(ci.zSize()) + 0))
168 const int64_t _size_force_2 = int64_t(int64_c(ci.zSize()) + 0);
169 WALBERLA_ASSERT_EQUAL(force->layout(), field::fzyx)
170 const int64_t _stride_force_0 = int64_t(force->xStride());
171 const int64_t _stride_force_1 = int64_t(force->yStride());
172 const int64_t _stride_force_2 = int64_t(force->zStride());
173 const int64_t _stride_force_3 = int64_t(1 * int64_t(force->fStride()));
174 const int64_t _stride_pdfs_0 = int64_t(pdfs->xStride());
175 const int64_t _stride_pdfs_1 = int64_t(pdfs->yStride());
176 const int64_t _stride_pdfs_2 = int64_t(pdfs->zStride());
177 const int64_t _stride_pdfs_3 = int64_t(1 * int64_t(pdfs->fStride()));
178 const int64_t _stride_velocity_0 = int64_t(
velocity->xStride());
179 const int64_t _stride_velocity_1 = int64_t(
velocity->yStride());
180 const int64_t _stride_velocity_2 = int64_t(
velocity->zStride());
181 const int64_t _stride_velocity_3 = int64_t(1 * int64_t(
velocity->fStride()));
182 internal_b8085d63d6b7e842485134abbac511e8::initialpdfssettersingleprecision_initialpdfssettersingleprecision(_data_force, _data_pdfs, _data_velocity, _size_force_0, _size_force_1, _size_force_2, _stride_force_0, _stride_force_1, _stride_force_2, _stride_force_3, _stride_pdfs_0, _stride_pdfs_1, _stride_pdfs_2, _stride_pdfs_3, _stride_velocity_0, _stride_velocity_1, _stride_velocity_2, _stride_velocity_3, rho_0);
static FUNC_PREFIX void initialpdfssettersingleprecision_initialpdfssettersingleprecision(float *RESTRICT const _data_force, float *RESTRICT _data_pdfs, float *RESTRICT const _data_velocity, int64_t const _size_force_0, int64_t const _size_force_1, int64_t const _size_force_2, int64_t const _stride_force_0, int64_t const _stride_force_1, int64_t const _stride_force_2, int64_t const _stride_force_3, int64_t const _stride_pdfs_0, int64_t const _stride_pdfs_1, int64_t const _stride_pdfs_2, int64_t const _stride_pdfs_3, int64_t const _stride_velocity_0, int64_t const _stride_velocity_1, int64_t const _stride_velocity_2, int64_t const _stride_velocity_3, float rho_0)