ryujin 2.5.0 revision c64172211cf21344cb9b9b0f3a1266aa6400d392
Loading...
Searching...
No Matches
indicator.h
Go to the documentation of this file.
1//
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3// Copyright (C) 2026 by the ryujin authors
4//
5
6#pragma once
7
8#include <ryujin/base/compile_time_options.h>
10
11#include <deal.II/base/tensor.h>
12
13#include <concepts>
14#include <string>
15
16namespace ryujin
17{
18 namespace Concept
19 {
25 template <typename V, int dim, typename Number>
26 concept IndicatorView =
27 requires(V view,
28 const V &const_view,
29 const typename V::PrecomputedVectorView &precomputed,
30 const typename V::state_type &U,
31 const typename V::flux_contribution_type &flux,
32 const dealii::Tensor<1, dim, Number> &c_ij,
33 const unsigned int i,
34 const unsigned int *js,
35 const Number hd_i) {
36 view.reset(precomputed, i, U, flux);
37 view.accumulate(precomputed, js, U, flux, c_ij);
38 {
39 const_view.alpha(hd_i)
40 } -> std::same_as<Number>;
41 };
42
43
50 template <typename T, typename System, int dim, typename Number>
51 concept Indicator =
52 std::constructible_from<T, const System &, const std::string &> &&
54 } // namespace Concept
55} // namespace ryujin