Loading...
Searching...
No Matches
bit_masks.hpp File Reference
#include <Kokkos_UnorderedMap.hpp>
#include "terra/util/bit_masking.hpp"

Go to the source code of this file.

Classes

struct  terra::grid::shell::BoundaryConditionMapping
 

Namespaces

namespace  terra
 
namespace  terra::grid
 
namespace  terra::grid::shell
 

Typedefs

using terra::grid::shell::BoundaryConditions = BoundaryConditionMapping[2]
 

Enumerations

enum class  terra::grid::shell::ShellBoundaryFlag : uint8_t {
  terra::grid::shell::NO_FLAG = 0 , terra::grid::shell::INNER = 1 << 0 , terra::grid::shell::BOUNDARY = 1 << 1 , terra::grid::shell::CMB = BOUNDARY | ( 1 << 2 ) ,
  terra::grid::shell::SURFACE = BOUNDARY | ( 1 << 3 ) , terra::grid::shell::ALL = INNER | BOUNDARY | CMB | SURFACE
}
 FlagLike that indicates boundary types for the thick spherical shell. More...
 
enum class  terra::grid::shell::BoundaryConditionFlag : uint8_t { terra::grid::shell::NEUMANN = 0 , terra::grid::shell::DIRICHLET = 1 , terra::grid::shell::FREESLIP = 2 }
 FlagLike that indicates the type of boundary condition More...
 

Functions

BoundaryConditionFlag terra::grid::shell::get_boundary_condition_flag (const BoundaryConditions bcs, ShellBoundaryFlag sbf)
 Retrieve the boundary condition flag that is associated with a location in the shell e.g. SURFACE -> DIRICHLET.
 
void terra::grid::shell::set_boundary_condition_flag (BoundaryConditions &bcs, ShellBoundaryFlag sbf, BoundaryConditionFlag bcf)
 Set the boundary condition flag that is associated with a location in the shell e.g. SURFACE -> DIRICHLET.
 
ShellBoundaryFlag terra::grid::shell::get_shell_boundary_flag (const BoundaryConditions bcs, BoundaryConditionFlag bcf)
 Retrieve the ShellBoundary flag associated with a certain boundary condition type/flag.
 
Grid4DDataScalar< ShellBoundaryFlagterra::grid::shell::setup_boundary_mask_data (const DistributedDomain &domain)
 Set up mask data for a distributed shell domain. The mask encodes boundary information for each grid node.