SpECTRE Documentation Coverage Report
Current view: top level - Elliptic/DiscontinuousGalerkin/SubdomainOperator - Tags.hpp Hit Total Coverage
Commit: 3f09028930c0450a2fb61ee918b22882f5d03d2b Lines: 2 8 25.0 %
Date: 2021-10-22 20:52:16
Legend: Lines: hit not hit

          Line data    Source code
       1           0 : // Distributed under the MIT License.
       2             : // See LICENSE.txt for details.
       3             : 
       4             : #pragma once
       5             : 
       6             : #include <boost/functional/hash.hpp>
       7             : #include <cstddef>
       8             : #include <unordered_map>
       9             : #include <utility>
      10             : 
      11             : #include "DataStructures/DataBox/Tag.hpp"
      12             : #include "Domain/Structure/Direction.hpp"
      13             : #include "Domain/Structure/ElementId.hpp"
      14             : 
      15           0 : namespace elliptic::dg::subdomain_operator::Tags {
      16             : 
      17             : /// The number of points an element-centered subdomain extends into the
      18             : /// neighbor, i.e. the "extruding" overlap extents. This tag is used in
      19             : /// conjunction with `LinearSolver::Schwarz::Tags::Overlaps` to describe the
      20             : /// extruding extent into each neighbor.
      21           1 : struct ExtrudingExtent : db::SimpleTag {
      22           0 :   using type = size_t;
      23             : };
      24             : 
      25             : /// Data on the neighbor's side of a mortar. Used to store data for elements
      26             : /// that do not overlap with the element-centered subdomain, but play a role
      27             : /// in the DG operator nonetheless.
      28             : template <typename Tag, size_t VolumeDim>
      29           1 : struct NeighborMortars : db::PrefixTag, db::SimpleTag {
      30           0 :   using tag = Tag;
      31           0 :   using Key = std::pair<::Direction<VolumeDim>, ::ElementId<VolumeDim>>;
      32           0 :   using type = std::unordered_map<Key, typename Tag::type, boost::hash<Key>>;
      33             : };
      34             : 
      35             : }  // namespace elliptic::dg::subdomain_operator::Tags

Generated by: LCOV version 1.14