Gyselalib++
 
Loading...
Searching...
No Matches
edge.hpp
1// SPDX-License-Identifier: MIT
2#pragma once
3#include <ddc/ddc.hpp>
4
5#include "ddc_aliases.hpp"
6#include "geometry_descriptors.hpp"
7
8
23template <class Patch, class Grid1D, Extremity extremity_val>
24struct Edge
25{
29 using perpendicular_grid = Grid1D;
31 using parallel_grid = std::conditional_t<
32 std::is_same_v<Grid1D, typename Patch::Grid1>,
33 typename Patch::Grid2,
34 typename Patch::Grid1>;
36 static constexpr Extremity extremity = extremity_val;
37};
38
39
47{
48};
Define an edge of a given patch.
Definition edge.hpp:25
Grid1D perpendicular_grid
Grid on the perpendicular dimension of the edge.
Definition edge.hpp:29
std::conditional_t< std::is_same_v< Grid1D, typename Patch::Grid1 >, typename Patch::Grid2, typename Patch::Grid1 > parallel_grid
Grid parallel to the edge.
Definition edge.hpp:34
static constexpr Extremity extremity
Design if the edge is on the BACK or the FRONT of the other dimension.
Definition edge.hpp:36
Define an edge for the outside index range.
Definition edge.hpp:47
Base tag for a patch.
Definition patch.hpp:14