Peano
Loading...
Searching...
No Matches
SingleSweep.template.h
Go to the documentation of this file.
1// This file is part of the ExaHyPE2 project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
5#include "Abstract{{CLASSNAME}}.h"
6#include "tarch/logging/Log.h"
7
8{% for item in NAMESPACE -%}
9 namespace {{ item }} {
10
11{%- endfor %}
12 class {{CLASSNAME}};
13
14{% for item in NAMESPACE -%}
15 }
16{%- endfor %}
17
18class {{NAMESPACE | join("::")}}::{{CLASSNAME}}: public {{NAMESPACE | join("::")}}::Abstract{{CLASSNAME}} {
19 private:
21
22 public:
23 {% if REFINEMENT_CRITERION_IMPLEMENTATION=="<user-defined>" %}
42 virtual ::exahype2::RefinementCommand refinementCriterion(
43 [[maybe_unused]] const double* __restrict__ Q, // Q[{{NUMBER_OF_UNKNOWNS}}+{{NUMBER_OF_AUXILIARY_VARIABLES}}]
44 [[maybe_unused]] const tarch::la::Vector<Dimensions, double>& volumeCentre,
45 [[maybe_unused]] const tarch::la::Vector<Dimensions, double>& volumeH,
46 [[maybe_unused]] double t
47 ) override;
48 {% endif %}
49
50 {% if INITIAL_CONDITIONS_IMPLEMENTATION=="<user-defined>" %}
51 virtual void initialCondition(
52 [[maybe_unused]] double* __restrict__ Q, // Q[{{NUMBER_OF_UNKNOWNS}}+{{NUMBER_OF_AUXILIARY_VARIABLES}}]
53 [[maybe_unused]] const tarch::la::Vector<Dimensions, double>& volumeCentre,
54 [[maybe_unused]] const tarch::la::Vector<Dimensions, double>& volumeH,
55 [[maybe_unused]] bool gridIsConstructed
56 ) override;
57 {% endif %}
58
59 {% if BOUNDARY_CONDITIONS_IMPLEMENTATION=="<user-defined>" %}
60 virtual void boundaryConditions(
61 [[maybe_unused]] const double* __restrict__ Qinside, // Qinside[{{NUMBER_OF_UNKNOWNS}}+{{NUMBER_OF_AUXILIARY_VARIABLES}}]
62 [[maybe_unused]] double* __restrict__ Qoutside, // Qoutside[{{NUMBER_OF_UNKNOWNS}}+{{NUMBER_OF_AUXILIARY_VARIABLES}}]
63 [[maybe_unused]] const tarch::la::Vector<Dimensions, double>& faceCentre,
64 [[maybe_unused]] const tarch::la::Vector<Dimensions, double>& volumeH,
65 [[maybe_unused]] double t,
66 [[maybe_unused]] int normal
67 ) override;
68 {% endif %}
69
70 {{SOLVER_USER_DECLARATIONS}}
71};
Log Device.
Definition Log.h:517
Simple vector class.
Definition Vector.h:159