1#ifndef TATOOINE_CELL_PARTITION_H
2#define TATOOINE_CELL_PARTITION_H
11template <
typename F,
typename Gr
idReal>
17#pragma omp parallel for collapse(3)
19 for (
size_t iz = 0; iz < g.dimension(2).
size() - 1; ++iz) {
20 for (
size_t iy = 0; iy < g.dimension(1).
size() - 1; ++iy) {
21 for (
size_t ix = 0; ix < g.dimension(0).
size() - 1; ++ix) {
22 const auto& x0 = g.dimension(0)[ix];
23 const auto& x1 = g.dimension(0)[ix + 1];
24 const auto& y0 = g.dimension(1)[iy];
25 const auto& y1 = g.dimension(1)[iy + 1];
26 const auto& z0 = g.dimension(2)[iz];
27 const auto& z1 = g.dimension(2)[iz + 1];
Definition: grid_edge.h:16
Definition: algorithm.h:6
auto size(vec< ValueType, N > const &v)
Definition: vec.h:148
auto cell_partition(F &&f, const grid< GridReal, 3 > &g)
iterates over all cells of the grid in parallel
Definition: cell_partition.h:12