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