Hierarchy
All docstrings from Mantis.Hierarchy
Mantis.Hierarchy Module
module HierarchyContains all methods related with hierarchies that are object-agnostic. In essence, the methods in this module provide a base, general logic for hierarchical refinements — be those hierarchical geometries or function spaces, for example.
sourceMantis.Hierarchy.ActiveInfo Type
struct ActiveInfoContains information about active objects in a hierarchical construction. The indexing in the hierarchical space is such that the index of an object in level l-1 is always smaller than that of an object in level l.
Fields
level_ids::Vector{Vector{Int}}: Per level collection of active objects.level_ids[l][i]gives the id in levellof the object indicated byi, not the hierarchical id of the overall set of objects.level_cum_num_ids::Vector{Int}: Total number of active objects up to a certain level, i.e.level_cum_num_ids[l]=sum(length.(level_ids[1:l-1])). First entry is always 0 for ease of use.
Mantis.Hierarchy.convert_to_level_and_level_id Method
convert_to_level_and_level_id(active_info::ActiveInfo, hier_id::Int)Returns the level and level_id that correspond to hierarchical index hier_id.