IndefiniteIntegral.hpp
1 // Distributed under the MIT License.
2 // See LICENSE.txt for details.
3 
4 #pragma once
5 
6 #include <cstddef>
7 
8 /// \cond
9 class DataVector;
10 template <size_t>
11 class Mesh;
12 namespace gsl {
13 template <typename T>
14 class not_null;
15 } // namespace gsl
16 /// \endcond
17 
18 // @{
19 /*!
20  * \ingroup NumericalAlgorithmsGroup
21  * \brief Compute the indefinite integral of a function in the
22  * `dim_to_integrate`. Applying a zero boundary condition on each stripe.
23  *
24  * \requires number of points in `integrand` and `mesh` are equal.
25  */
26 template <size_t Dim>
28  const DataVector& integrand, const Mesh<Dim>& mesh,
29  size_t dim_to_integrate) noexcept;
30 
31 template <size_t Dim>
33  const Mesh<Dim>& mesh,
34  size_t dim_to_integrate) noexcept;
35 // @}
Implementations from the Guideline Support Library.
Definition: ConservativeFromPrimitive.hpp:10
Holds the number of grid points, basis, and quadrature in each direction of the computational grid...
Definition: Mesh.hpp:49
void indefinite_integral(gsl::not_null< DataVector *> integral, const DataVector &integrand, const Mesh< Dim > &mesh, size_t dim_to_integrate) noexcept
Compute the indefinite integral of a function in the dim_to_integrate. Applying a zero boundary condi...
Stores a collection of function values.
Definition: DataVector.hpp:42
Require a pointer to not be a nullptr
Definition: ConservativeFromPrimitive.hpp:12