44 ivec3 numberOfCellsPerDirection,
48 numberOfCellsPerDirection);
49 std::vector<int> lengths(numberOfSegments, 0);
51 for (
int i = 0; i < numberOfSegments; ++i) {
52 if (dimensions == 1) {
53 lengths[i] = ghostCells;
55 }
else if (dimensions == 2) {
59 lengths[i] = ghostCells;
62 lengths[i] = ghostCells * numberOfCellsPerDirection.
x;
67 lengths[i] = ghostCells;
68 }
else if (side < 4) {
70 lengths[i] = ghostCells * numberOfCellsPerDirection.
x;
74 lengths[i] = ghostCells * numberOfCellsPerDirection.
x *
75 numberOfCellsPerDirection.
y;
int computeNumberOfSegments(int side, int dimensions, ivec3 numberOfCellsPerDirection)
Definition: number_of_segments.hpp:39
T y
Definition: vec3.hpp:27
Various utility functions to implement the tecno flux.
Definition: types.hpp:30
std::vector< int > computeLengths(int side, int dimensions, ivec3 numberOfCellsPerDirection, int ghostCells)
Definition: lengths.hpp:43
T x
Definition: vec3.hpp:26