Namespaces | Functions
Helpers.hpp File Reference

Functions used for adaptive mesh refinement decisions. More...

#include <array>
#include <cstddef>
#include "Domain/Amr/Flag.hpp"

Go to the source code of this file.

Namespaces

 amr
 Items for adaptive mesh refinement.
 

Functions

template<size_t VolumeDim>
std::array< size_t, VolumeDim > amr::desired_refinement_levels (const ElementId< VolumeDim > &id, const std::array< amr::Flag, VolumeDim > &flags) noexcept
 Computes the desired refinement level of the Element with ElementId id given the desired amr::Flags flags
 
template<size_t VolumeDim>
std::array< size_t, VolumeDim > amr::desired_refinement_levels_of_neighbor (const ElementId< VolumeDim > &neighbor_id, const std::array< amr::Flag, VolumeDim > &neighbor_flags, const OrientationMap< VolumeDim > &orientation) noexcept
 Computes the desired refinement level of a neighboring Element with ElementId neighbor_id given its desired amr::Flags neighbor_flags taking into account the OrientationMap orientation of the neighbor. More...
 
template<size_t VolumeDim>
bool amr::has_potential_sibling (const ElementId< VolumeDim > &element_id, const Direction< VolumeDim > &direction) noexcept
 Whether or not the Element with element_id can have a sibling in the given direction
 

Detailed Description

Functions used for adaptive mesh refinement decisions.