AMDiS 2.10
The Adaptive Multi-Dimensional Simulation Toolbox
FirstOrderGradTestTrial.hpp
1#pragma once
2
3#include <type_traits>
4
5#include <amdis/localoperators/FirstOrderTestGradTrial.hpp>
6
7namespace AMDiS
8{
14 namespace tag
15 {
16 struct gradtest_trial {};
17 struct grad_test {};
18 }
19
20
22 template <class LC>
23 struct GridFunctionOperatorRegistry<tag::gradtest_trial, LC>
24 {
25 static constexpr int degree = 1;
26 static tag::test_gradtrial transposedTag(tag::gradtest_trial) { return {}; }
28 };
29
30
32 template <class Expr>
33 auto fot(Expr&& expr, tag::grad_test, int quadOrder = -1)
34 {
35 return makeOperator(tag::gradtest_trial{}, FWD(expr), quadOrder);
36 }
37
40} // end namespace AMDiS
first-order operator
Definition: FirstOrderTestGradTrial.hpp:24
auto fot(Expr &&expr, tag::grad_test, int quadOrder=-1)
Create a first-order term with derivative on trial-function.
Definition: FirstOrderGradTestTrial.hpp:33
auto makeOperator(Tag const &tag, Expr &&expr, int gridFctDeg=-1)
Definition: GridFunctionOperator.hpp:235
Registry to specify a tag for each implementation type.
Definition: GridFunctionOperator.hpp:216
Definition: FirstOrderGradTestTrial.hpp:17
Definition: FirstOrderGradTestTrial.hpp:16
Definition: FirstOrderTestGradTrial.hpp:17