ryujin
2.5.0 revision 3a6c8d57210175dea14d8116e1fe878f349f8c1c
Loading...
Searching...
No Matches
include
ryujin
concept
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>
9
#include <
ryujin/concept/hyperbolic_system.h
>
10
11
#include <deal.II/base/tensor.h>
12
13
#include <concepts>
14
#include <string>
15
16
namespace
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
dealii::Tensor<1, dim, Number> &c_ij,
32
const
unsigned
int
i,
33
const
unsigned
int
*js,
34
const
Number hd_i) {
35
view.reset(
precomputed
, i, U);
36
view.accumulate(
precomputed
, js, U, c_ij);
37
{
38
const_view.alpha(hd_i)
39
} -> std::same_as<Number>;
40
};
41
42
49
template
<
typename
T,
typename
System,
int
dim,
typename
Number>
50
concept
Indicator
=
51
std::constructible_from<T, const System &, const std::string &> &&
52
IndicatorView<view_type<T, dim, Number>
, dim, Number>;
53
}
// namespace Concept
54
}
// namespace ryujin
hyperbolic_system.h
ryujin::Concept::IndicatorView
Definition
indicator.h:26
ryujin::Concept::Indicator
Definition
indicator.h:50
ryujin::StateVectorPart::precomputed
@ precomputed
ryujin
Definition
computing_timer.h:22
Generated by
1.9.8