SpECTRE Documentation Coverage Report
Current view: top level - Evolution/DgSubcell - SubcellEqualRateRegion.hpp Hit Total Coverage
Commit: 107e15b340886ae54549b1baa4bfc92e676f667e Lines: 1 9 11.1 %
Date: 2026-09-17 16:38:56
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 <cstddef>
       7             : #include <memory>
       8             : #include <string>
       9             : #include <unordered_map>
      10             : #include <vector>
      11             : 
      12             : #include "Domain/Creators/OptionTags.hpp"
      13             : #include "Evolution/DgSubcell/Tags/SubcellOptions.hpp"
      14             : #include "Utilities/TMPL.hpp"
      15             : 
      16             : /// \cond
      17             : template <size_t VolumeDim>
      18             : class DomainCreator;
      19             : template <size_t VolumeDim>
      20             : class ElementId;
      21             : namespace PUP {
      22             : class er;
      23             : }  // namespace PUP
      24             : namespace evolution::dg::subcell {
      25             : class SubcellOptions;
      26             : }  // namespace evolution::dg::subcell
      27             : /// \endcond
      28             : 
      29             : namespace evolution::dg::subcell {
      30             : /// Generator for `EqualRateRegions` labeling all elements that are
      31             : /// allowed to do subcell and their neighbors.  The inverse of the
      32             : /// `OnlyDgBlocksAndGroups` input file option.
      33             : ///
      34             : /// \note When subcell is combined with nonconforming block boundaries (e.g.,
      35             : /// `domain::creators::NonconformingSphericalShells`), use
      36             : /// `SubcellAndNonconformingEqualRateRegions` instead of pairing this class
      37             : /// with `NonconformingEqualRateRegions`.
      38             : template <size_t Dim>
      39           1 : class SubcellEqualRateRegion {
      40             :  public:
      41           0 :   SubcellEqualRateRegion() = default;
      42             : 
      43           0 :   using creation_tags = tmpl::list<OptionTags::SubcellOptions,
      44             :                                    domain::OptionTags::DomainCreator<Dim>>;
      45             : 
      46           0 :   SubcellEqualRateRegion(
      47             :       const SubcellOptions& subcell_options,
      48             :       const std::unique_ptr<DomainCreator<Dim>>& domain_creator);
      49             : 
      50           0 :   std::unordered_map<std::string, size_t> regions() const;
      51             : 
      52           0 :   bool is_in_region(size_t region, const ElementId<Dim>& element_id) const;
      53             : 
      54           0 :   void pup(PUP::er& p);
      55             : 
      56             :  private:
      57           0 :   std::vector<size_t> only_dg_block_ids_{};
      58             : };
      59             : }  // namespace evolution::dg::subcell

Generated by: LCOV version 1.14