79 auto force =
block->getData<field::GhostLayerField<float, 3>>(forceID);
80 auto velocity =
block->getData<field::GhostLayerField<float, 3>>(velocityID);
81 auto pdfs =
block->getData<field::GhostLayerField<float, 19>>(pdfsID);
83 WALBERLA_ASSERT_GREATER_EQUAL(-1, -int_c(force->nrOfGhostLayers()))
84 float *
RESTRICT const _data_force = force->dataAt(-1, -1, -1, 0);
85 WALBERLA_ASSERT_EQUAL(force->layout(), field::fzyx)
86 WALBERLA_ASSERT_GREATER_EQUAL(-1, -int_c(pdfs->nrOfGhostLayers()))
87 float *
RESTRICT const _data_pdfs = pdfs->dataAt(-1, -1, -1, 0);
88 WALBERLA_ASSERT_EQUAL(pdfs->layout(), field::fzyx)
89 WALBERLA_ASSERT_GREATER_EQUAL(-1, -int_c(
velocity->nrOfGhostLayers()))
91 WALBERLA_ASSERT_EQUAL(
velocity->layout(), field::fzyx)
92 WALBERLA_ASSERT_GREATER_EQUAL(force->xSizeWithGhostLayer(), int64_t(int64_c(force->xSize()) + 2))
93 const int64_t _size_force_0 = int64_t(int64_c(force->xSize()) + 2);
94 WALBERLA_ASSERT_EQUAL(force->layout(), field::fzyx)
95 WALBERLA_ASSERT_GREATER_EQUAL(force->ySizeWithGhostLayer(), int64_t(int64_c(force->ySize()) + 2))
96 const int64_t _size_force_1 = int64_t(int64_c(force->ySize()) + 2);
97 WALBERLA_ASSERT_EQUAL(force->layout(), field::fzyx)
98 WALBERLA_ASSERT_GREATER_EQUAL(force->zSizeWithGhostLayer(), int64_t(int64_c(force->zSize()) + 2))
99 const int64_t _size_force_2 = int64_t(int64_c(force->zSize()) + 2);
100 WALBERLA_ASSERT_EQUAL(force->layout(), field::fzyx)
101 const int64_t _stride_force_0 = int64_t(force->xStride());
102 const int64_t _stride_force_1 = int64_t(force->yStride());
103 const int64_t _stride_force_2 = int64_t(force->zStride());
104 const int64_t _stride_force_3 = int64_t(1 * int64_t(force->fStride()));
105 const int64_t _stride_pdfs_0 = int64_t(pdfs->xStride());
106 const int64_t _stride_pdfs_1 = int64_t(pdfs->yStride());
107 const int64_t _stride_pdfs_2 = int64_t(pdfs->zStride());
108 const int64_t _stride_pdfs_3 = int64_t(1 * int64_t(pdfs->fStride()));
109 const int64_t _stride_velocity_0 = int64_t(
velocity->xStride());
110 const int64_t _stride_velocity_1 = int64_t(
velocity->yStride());
111 const int64_t _stride_velocity_2 = int64_t(
velocity->zStride());
112 const int64_t _stride_velocity_3 = int64_t(1 * int64_t(
velocity->fStride()));
113 internal_01ae0f7ae02292b7985da3bf4f45d4c4::updatevelfrompdfsingleprecision_updatevelfrompdfsingleprecision(_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);
118 CellInterval ci = globalCellInterval;
119 CellInterval blockBB = blocks->getBlockCellBB(*
block);
120 blockBB.expand(ghostLayers);
121 ci.intersect(blockBB);
122 blocks->transformGlobalToBlockLocalCellInterval(ci, *
block);
126 auto force =
block->getData<field::GhostLayerField<float, 3>>(forceID);
127 auto velocity =
block->getData<field::GhostLayerField<float, 3>>(velocityID);
128 auto pdfs =
block->getData<field::GhostLayerField<float, 19>>(pdfsID);
130 WALBERLA_ASSERT_GREATER_EQUAL(ci.xMin() - 1, -int_c(force->nrOfGhostLayers()))
131 WALBERLA_ASSERT_GREATER_EQUAL(ci.yMin() - 1, -int_c(force->nrOfGhostLayers()))
132 WALBERLA_ASSERT_GREATER_EQUAL(ci.zMin() - 1, -int_c(force->nrOfGhostLayers()))
133 float *
RESTRICT const _data_force = force->dataAt(ci.xMin() - 1, ci.yMin() - 1, ci.zMin() - 1, 0);
134 WALBERLA_ASSERT_EQUAL(force->layout(), field::fzyx)
135 WALBERLA_ASSERT_GREATER_EQUAL(ci.xMin() - 1, -int_c(pdfs->nrOfGhostLayers()))
136 WALBERLA_ASSERT_GREATER_EQUAL(ci.yMin() - 1, -int_c(pdfs->nrOfGhostLayers()))
137 WALBERLA_ASSERT_GREATER_EQUAL(ci.zMin() - 1, -int_c(pdfs->nrOfGhostLayers()))
138 float *
RESTRICT const _data_pdfs = pdfs->dataAt(ci.xMin() - 1, ci.yMin() - 1, ci.zMin() - 1, 0);
139 WALBERLA_ASSERT_EQUAL(pdfs->layout(), field::fzyx)
140 WALBERLA_ASSERT_GREATER_EQUAL(ci.xMin() - 1, -int_c(
velocity->nrOfGhostLayers()))
141 WALBERLA_ASSERT_GREATER_EQUAL(ci.yMin() - 1, -int_c(
velocity->nrOfGhostLayers()))
142 WALBERLA_ASSERT_GREATER_EQUAL(ci.zMin() - 1, -int_c(
velocity->nrOfGhostLayers()))
143 float *
RESTRICT _data_velocity =
velocity->dataAt(ci.xMin() - 1, ci.yMin() - 1, ci.zMin() - 1, 0);
144 WALBERLA_ASSERT_EQUAL(
velocity->layout(), field::fzyx)
145 WALBERLA_ASSERT_GREATER_EQUAL(force->xSizeWithGhostLayer(), int64_t(int64_c(ci.xSize()) + 2))
146 const int64_t _size_force_0 = int64_t(int64_c(ci.xSize()) + 2);
147 WALBERLA_ASSERT_EQUAL(force->layout(), field::fzyx)
148 WALBERLA_ASSERT_GREATER_EQUAL(force->ySizeWithGhostLayer(), int64_t(int64_c(ci.ySize()) + 2))
149 const int64_t _size_force_1 = int64_t(int64_c(ci.ySize()) + 2);
150 WALBERLA_ASSERT_EQUAL(force->layout(), field::fzyx)
151 WALBERLA_ASSERT_GREATER_EQUAL(force->zSizeWithGhostLayer(), int64_t(int64_c(ci.zSize()) + 2))
152 const int64_t _size_force_2 = int64_t(int64_c(ci.zSize()) + 2);
153 WALBERLA_ASSERT_EQUAL(force->layout(), field::fzyx)
154 const int64_t _stride_force_0 = int64_t(force->xStride());
155 const int64_t _stride_force_1 = int64_t(force->yStride());
156 const int64_t _stride_force_2 = int64_t(force->zStride());
157 const int64_t _stride_force_3 = int64_t(1 * int64_t(force->fStride()));
158 const int64_t _stride_pdfs_0 = int64_t(pdfs->xStride());
159 const int64_t _stride_pdfs_1 = int64_t(pdfs->yStride());
160 const int64_t _stride_pdfs_2 = int64_t(pdfs->zStride());
161 const int64_t _stride_pdfs_3 = int64_t(1 * int64_t(pdfs->fStride()));
162 const int64_t _stride_velocity_0 = int64_t(
velocity->xStride());
163 const int64_t _stride_velocity_1 = int64_t(
velocity->yStride());
164 const int64_t _stride_velocity_2 = int64_t(
velocity->zStride());
165 const int64_t _stride_velocity_3 = int64_t(1 * int64_t(
velocity->fStride()));
166 internal_01ae0f7ae02292b7985da3bf4f45d4c4::updatevelfrompdfsingleprecision_updatevelfrompdfsingleprecision(_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);
static FUNC_PREFIX void updatevelfrompdfsingleprecision_updatevelfrompdfsingleprecision(float *RESTRICT const _data_force, float *RESTRICT const _data_pdfs, float *RESTRICT _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)