Peano
Loading...
Searching...
No Matches
SeparateSweeps.template.cpp
Go to the documentation of this file.
1// **********************************************************************************************
2// *** !!!WARNING!!! ***
3// *** WARNING: AUTO GENERATED FILE! DO NOT MODIFY BY HAND! YOUR CHANGES WILL BE OVERWRITTEN! ***
4// *** !!!WARNING!!! ***
5// *** Generated by Peano's Python API: www.peano-framework.org ***
6// **********************************************************************************************
7#include "{{CLASSNAME}}.h"
9
10
11tarch::logging::Log {{NAMESPACE | join("::")}}::{{CLASSNAME}}::_log( "{{NAMESPACE | join("::")}}::{{CLASSNAME}}" );
12
13
14
15{% if REFINEMENT_CRITERION_IMPLEMENTATION=="<user-defined>" %}
16::exahype2::RefinementCommand {{NAMESPACE | join("::")}}::{{CLASSNAME}}::refinementCriterion(
17 const double * __restrict__ Q, // Q[{{NUMBER_OF_UNKNOWNS}}+{{NUMBER_OF_AUXILIARY_VARIABLES}}]
20 double t
21) {
22 logTraceInWith3Arguments( "refinementCriterion(...)", volumeX, volumeH, t );
24
25 // see comments in header file
26
27 logTraceOutWith1Argument( "refinementCriterion(...)", ::toString(result) );
28 return result;
29}
30{% endif %}
31
32{% if INITIAL_CONDITIONS_IMPLEMENTATION=="<user-defined>" %}
33void {{NAMESPACE | join("::")}}::{{CLASSNAME}}::initialCondition(
34 double * __restrict__ Q,
38 bool gridIsConstructed
39) {
40 logTraceInWith2Arguments( "initialCondition(...)", x, gridIsConstructed );
41
42 // @todo Implement your stuff here, but ensure all entries are
43 // initialised incl all auxiliary variables. The snippet below
44 // sets everything to zero
46 Q[i] = 0.0;
47 }
48
49 logTraceOut( "initialCondition(...)" );
50}
51{% endif %}
52
53{% if BOUNDARY_CONDITIONS_IMPLEMENTATION=="<user-defined>" %}
54void {{NAMESPACE | join("::")}}::{{CLASSNAME}}::boundaryConditions(
55 const double * __restrict__ Qinside, // Qinside[{{NUMBER_OF_UNKNOWNS}}+{{NUMBER_OF_AUXILIARY_VARIABLES}}]
56 double * __restrict__ Qoutside, // Qoutside[{{NUMBER_OF_UNKNOWNS}}+{{NUMBER_OF_AUXILIARY_VARIABLES}}]
58 double t,
59 int normal
60) {
61 logTraceInWith3Arguments( "boundaryConditions(...)", faceCentre, t, normal );
62 // @todo implement
63 logTraceOut( "boundaryConditions(...)" );
64}
65{% endif %}
66
67
68{{SOLVER_USER_DEFINITIONS}}
#define logTraceOutWith1Argument(methodName, argument0)
Definition Log.h:380
#define logTraceOut(methodName)
Definition Log.h:379
#define logTraceInWith3Arguments(methodName, argument0, argument1, argument2)
Definition Log.h:372
#define logTraceInWith2Arguments(methodName, argument0, argument1)
Definition Log.h:371
Log Device.
Definition Log.h:516
std::string toString(Filter filter)
Definition convert.cpp:170
tarch::logging::Log _log("exahype2::fv")
Simple vector class.
Definition Vector.h:150