18 #if !defined(__FLECSI_PRIVATE__) 19 #error Do not include this file directly! 25 #include "flecsi/topo/core.hh" 38 template<
typename Policy>
44 static void fields(F f) {
49 : vert(data::make_region<Policy, vertices>(c.size + 1),
51 split(c.size + 1, c.parts),
54 cell(data::make_region<Policy, cells>(c.size),
56 split(c.size, c.parts),
64 template<index_space S>
65 auto & get_partition()
const {
66 return S == cells ? cell : vert;
70 static auto split(std::size_t n, std::size_t p) {
71 return [=](std::size_t i) {
return std::pair{i * n / p, (i + 1) * n / p}; };
76 template<std::
size_t Priv>
78 template<const auto & F>
Definition: interface.hh:39
Definition: interface.hh:41
Definition: control.hh:31
Definition: topology.hh:55