25#include "tree_constants.hpp"
42 assert(dim == 2 || dim == 3);
48const TreeConstants::Instances &
52 static TreeConstants::Instances
instances = {{
65TreeConstants::TreeConstants(uint8_t dim) {
73TreeConstants::initialize(uint8_t dim) {
75 maxLevel = PABLO::computeMaximumLevel(dim);
426 for (
int level = 0; level <=
maxLevel; ++level) {
428 areas[level] = uint64_t(1) << ((dim - 1) * (
maxLevel - level));
Global constants associated to a PABLO tree.
uint8_t edgeDisplacements[12][3]
std::vector< uint64_t > volumes
uint8_t faceDisplacements[6][3]
static BITPIT_PUBLIC_API const Instances & instances()
uint8_t parallelEdges[12][3]
std::vector< uint32_t > lengths
uint8_t nodeFromCoordinates[2][2][2]
static BITPIT_PUBLIC_API const TreeConstants & instance(uint8_t dim)
std::vector< uint64_t > areas
uint8_t nodeCoordinates[8][3]