SpECTRE Documentation Coverage Report
Current view: top level - Elliptic/Systems/SelfForce/Scalar/BoundaryConditions - None.hpp Hit Total Coverage
Commit: 3ffcbc8ecf43797401b60bcca17d6040ee06f013 Lines: 1 21 4.8 %
Date: 2026-03-03 02:01:44
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 <vector>
      10             : 
      11             : #include "DataStructures/ComplexDataVector.hpp"
      12             : #include "DataStructures/Tensor/TypeAliases.hpp"
      13             : #include "Elliptic/BoundaryConditions/BoundaryCondition.hpp"
      14             : #include "Elliptic/BoundaryConditions/BoundaryConditionType.hpp"
      15             : #include "Options/String.hpp"
      16             : #include "Utilities/Gsl.hpp"
      17             : #include "Utilities/TMPL.hpp"
      18             : 
      19             : namespace ScalarSelfForce::BoundaryConditions {
      20             : 
      21             : /*!
      22             :  * \brief Applies no boundary condition at all. Used to impose nothing but
      23             :  * regularity at the horizon in horizon-penetrating coordinates.
      24             :  */
      25           1 : class None : public elliptic::BoundaryConditions::BoundaryCondition<2> {
      26             :  private:
      27           0 :   using Base = elliptic::BoundaryConditions::BoundaryCondition<2>;
      28             : 
      29             :  public:
      30           0 :   static constexpr Options::String help =
      31             :       "Applies no boundary condition at all. Used to impose nothing but "
      32             :       "regularity at the horizon in horizon-penetrating coordinates.";
      33           0 :   using options = tmpl::list<>;
      34             : 
      35           0 :   None() = default;
      36           0 :   None(const None&) = default;
      37           0 :   None& operator=(const None&) = default;
      38           0 :   None(None&&) = default;
      39           0 :   None& operator=(None&&) = default;
      40           0 :   ~None() override = default;
      41             : 
      42             :   /// \cond
      43             :   explicit None(CkMigrateMessage* m);
      44             :   using PUP::able::register_constructor;
      45             :   WRAPPED_PUPable_decl_template(None);
      46             :   /// \endcond
      47             : 
      48           0 :   std::unique_ptr<domain::BoundaryConditions::BoundaryCondition> get_clone()
      49             :       const override;
      50             : 
      51           0 :   std::vector<elliptic::BoundaryConditionType> boundary_condition_types()
      52             :       const override {
      53             :     return {elliptic::BoundaryConditionType::Neumann};
      54             :   }
      55             : 
      56           0 :   using argument_tags = tmpl::list<>;
      57           0 :   using volume_tags = tmpl::list<>;
      58             : 
      59           0 :   void apply(gsl::not_null<Scalar<ComplexDataVector>*> field,
      60             :              gsl::not_null<Scalar<ComplexDataVector>*> n_dot_field_gradient,
      61             :              const tnsr::i<ComplexDataVector, 2>& deriv_field) const;
      62             : 
      63           0 :   using argument_tags_linearized = tmpl::list<>;
      64           0 :   using volume_tags_linearized = tmpl::list<>;
      65             : 
      66           0 :   void apply_linearized(
      67             :       gsl::not_null<Scalar<ComplexDataVector>*> field_correction,
      68             :       gsl::not_null<Scalar<ComplexDataVector>*> n_dot_field_gradient_correction,
      69             :       const tnsr::i<ComplexDataVector, 2>& deriv_field_correction) const;
      70             : 
      71             :  private:
      72           0 :   friend bool operator==(const None& lhs, const None& rhs);
      73             : };
      74             : 
      75           0 : bool operator!=(const None& lhs, const None& rhs);
      76             : 
      77             : }  // namespace ScalarSelfForce::BoundaryConditions

Generated by: LCOV version 1.14