Peano
Loading...
Searching...
No Matches
EnclaveTasking.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>" %}
44 virtual ::exahype2::RefinementCommand refinementCriterion(
45 [[maybe_unused]] const double* __restrict__ Q, // Q[{{NUMBER_OF_UNKNOWNS}}+{{NUMBER_OF_AUXILIARY_VARIABLES}}]
46 [[maybe_unused]] const tarch::la::Vector<Dimensions, double>& volumeCentre,
47 [[maybe_unused]] const tarch::la::Vector<Dimensions, double>& volumeH,
48 [[maybe_unused]] double t
49 ) override;
50 {% endif %}
51
52 {% if INITIAL_CONDITIONS_IMPLEMENTATION=="<user-defined>" %}
53 virtual void initialCondition(
54 [[maybe_unused]] double* __restrict__ Q, // Q[{{NUMBER_OF_UNKNOWNS}}+{{NUMBER_OF_AUXILIARY_VARIABLES}}]
55 [[maybe_unused]] const tarch::la::Vector<Dimensions, double>& volumeCentre,
56 [[maybe_unused]] const tarch::la::Vector<Dimensions, double>& volumeH,
57 [[maybe_unused]] bool gridIsConstructed
58 ) override;
59 {% endif %}
60
61 {% if BOUNDARY_CONDITIONS_IMPLEMENTATION=="<user-defined>" %}
62 virtual void boundaryConditions(
63 [[maybe_unused]] const double* __restrict__ Qinside, // Qinside[{{NUMBER_OF_UNKNOWNS}}+{{NUMBER_OF_AUXILIARY_VARIABLES}}]
64 [[maybe_unused]] double* __restrict__ Qoutside, // Qoutside[{{NUMBER_OF_UNKNOWNS}}+{{NUMBER_OF_AUXILIARY_VARIABLES}}]
65 [[maybe_unused]] const tarch::la::Vector<Dimensions, double>& faceCentre,
66 [[maybe_unused]] const tarch::la::Vector<Dimensions, double>& volumeH,
67 [[maybe_unused]] double t,
68 [[maybe_unused]] int normal
69 ) override;
70 {% endif %}
71
72 {{SOLVER_USER_DECLARATIONS}}
73};
Log Device.
Definition Log.h:517
Simple vector class.
Definition Vector.h:159