SpECTRE Documentation Coverage Report
Current view: top level - Evolution/Systems/GrMhd/GhValenciaDivClean/BoundaryCorrections - BoundaryCorrection.hpp Hit Total Coverage
Commit: e93d8312de4f331d36b5aa00ea83a894e26dfcb7 Lines: 2 11 18.2 %
Date: 2021-09-24 22:40:29
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 <pup.h>
       9             : 
      10             : #include "Evolution/Systems/GeneralizedHarmonic/BoundaryCorrections/BoundaryCorrection.hpp"
      11             : #include "Evolution/Systems/GrMhd/ValenciaDivClean/BoundaryCorrections/BoundaryCorrection.hpp"
      12             : #include "Parallel/CharmPupable.hpp"
      13             : #include "Utilities/Gsl.hpp"
      14             : #include "Utilities/TMPL.hpp"
      15             : 
      16             : /// Boundary corrections/numerical fluxes
      17           1 : namespace grmhd::GhValenciaDivClean::BoundaryCorrections {
      18             : /// \cond
      19             : template <typename DerivedGhCorrection, typename DerivedValenciaCorrection>
      20             : class ProductOfCorrections;
      21             : /// \endcond
      22             : 
      23             : namespace detail {
      24             : template <typename GhList, typename ValenciaList>
      25             : struct AllProductCorrections;
      26             : 
      27             : template <typename GhList, typename... ValenciaCorrections>
      28             : struct AllProductCorrections<GhList, tmpl::list<ValenciaCorrections...>> {
      29             :   using type = tmpl::flatten<tmpl::list<
      30             :       tmpl::transform<GhList, tmpl::bind<ProductOfCorrections, tmpl::_1,
      31             :                                          tmpl::pin<ValenciaCorrections>>>...>>;
      32             : };
      33             : }  // namespace detail
      34             : 
      35             : /*!
      36             :  * \brief The base class used to make boundary corrections factory createable so
      37             :  * they can be specified in the input file.
      38             :  */
      39           1 : class BoundaryCorrection : public PUP::able {
      40             :  public:
      41           0 :   BoundaryCorrection() = default;
      42           0 :   BoundaryCorrection(const BoundaryCorrection&) = default;
      43           0 :   BoundaryCorrection& operator=(const BoundaryCorrection&) = default;
      44           0 :   BoundaryCorrection(BoundaryCorrection&&) = default;
      45           0 :   BoundaryCorrection& operator=(BoundaryCorrection&&) = default;
      46           0 :   ~BoundaryCorrection() override = default;
      47             : 
      48             :   /// \cond
      49             :   explicit BoundaryCorrection(CkMigrateMessage* msg) noexcept
      50             :       : PUP::able(msg) {}
      51             :   WRAPPED_PUPable_abstract(BoundaryCorrection);  // NOLINT
      52             :   /// \endcond
      53             : 
      54           0 :   using creatable_classes = typename detail::AllProductCorrections<
      55             :       typename GeneralizedHarmonic::BoundaryCorrections::BoundaryCorrection<
      56             :           3_st>::creatable_classes,
      57             :       typename grmhd::ValenciaDivClean::BoundaryCorrections::
      58             :           BoundaryCorrection::creatable_classes>::type;
      59             : 
      60           0 :   virtual std::unique_ptr<BoundaryCorrection> get_clone() const noexcept = 0;
      61             : };
      62             : }  // namespace grmhd::GhValenciaDivClean::BoundaryCorrections

Generated by: LCOV version 1.14