SpECTRE Documentation Coverage Report
Current view: top level - Evolution/Systems/ScalarWave - Equations.cpp Hit Total Coverage
Commit: b1342d46f40e2d46bbd11d0cef68fd973031a24b Lines: 0 3 0.0 %
Date: 2020-09-24 20:24:42
Legend: Lines: hit not hit

          Line data    Source code
       1           0 : // Distributed under the MIT License.
       2             : // See LICENSE.txt for details.
       3             : 
       4             : #include "Evolution/Systems/ScalarWave/Equations.hpp"
       5             : 
       6             : #include <cstddef>
       7             : 
       8             : #include "DataStructures/DataVector.hpp"
       9             : #include "DataStructures/Tensor/Tensor.hpp"
      10             : #include "Utilities/ContainerHelpers.hpp"
      11             : #include "Utilities/GenerateInstantiations.hpp"
      12             : #include "Utilities/Gsl.hpp"
      13             : #include "Utilities/TMPL.hpp"
      14             : 
      15             : namespace ScalarWave {
      16             : /// \cond
      17             : template <size_t Dim>
      18             : void ComputeNormalDotFluxes<Dim>::apply(
      19             :     const gsl::not_null<Scalar<DataVector>*> pi_normal_dot_flux,
      20             :     const gsl::not_null<tnsr::i<DataVector, Dim, Frame::Inertial>*>
      21             :         phi_normal_dot_flux,
      22             :     const gsl::not_null<Scalar<DataVector>*> psi_normal_dot_flux,
      23             :     const Scalar<DataVector>& pi) noexcept {
      24             :   destructive_resize_components(pi_normal_dot_flux, get(pi).size());
      25             :   destructive_resize_components(phi_normal_dot_flux, get(pi).size());
      26             :   destructive_resize_components(psi_normal_dot_flux, get(pi).size());
      27             :   get(*pi_normal_dot_flux) = 0.0;
      28             :   get(*psi_normal_dot_flux) = 0.0;
      29             :   for (size_t i = 0; i < Dim; ++i) {
      30             :     phi_normal_dot_flux->get(i) = 0.0;
      31             :   }
      32             : }
      33             : /// \endcond
      34             : }  // namespace ScalarWave
      35             : 
      36           0 : #define DIM(data) BOOST_PP_TUPLE_ELEM(0, data)
      37             : 
      38           0 : #define INSTANTIATION(_, data) \
      39             :   template class ScalarWave::ComputeNormalDotFluxes<DIM(data)>;
      40             : 
      41             : GENERATE_INSTANTIATIONS(INSTANTIATION, (1, 2, 3))
      42             : 
      43             : #undef INSTANTIATION
      44             : #undef DIM

Generated by: LCOV version 1.14