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, meshCellH, t );
24
25 // see comments in header file
26
27 logTraceOutWith1Argument( "refinementCriterion(...)", ::toString(result) );
28 return result;
29}
30{% endif %}
31
32
33{% if INITIAL_CONDITIONS_IMPLEMENTATION=="<user-defined>" %}
34void {{NAMESPACE | join("::")}}::{{CLASSNAME}}::initialCondition(
35 double * __restrict__ Q,
36 const tarch::la::Vector<Dimensions,double>& meshCellCentre,
38 bool gridIsConstructed
39) {
40 logTraceInWith3Arguments( "initialCondition(...)", meshCellCentre, meshCellH, 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
54
55{% if BOUNDARY_CONDITIONS_IMPLEMENTATION=="<user-defined>" %}
56void {{NAMESPACE | join("::")}}::{{CLASSNAME}}::boundaryConditions(
57 const double * __restrict__ Qinside, // Qinside[{{NUMBER_OF_UNKNOWNS}}+{{NUMBER_OF_AUXILIARY_VARIABLES}}]
58 double * __restrict__ Qoutside, // Qoutside[{{NUMBER_OF_UNKNOWNS}}+{{NUMBER_OF_AUXILIARY_VARIABLES}}]
61 double t,
62 int normal
63) {
64 logTraceInWith4Arguments( "boundaryConditions(...)", faceCentre, meshCellH, t, normal );
65 // @todo implement
66 logTraceOut( "boundaryConditions(...)" );
67}
68{% endif %}
69
70
71{{SOLVER_USER_DEFINITIONS}}
#define logTraceOutWith1Argument(methodName, argument0)
Definition Log.h:380
#define logTraceOut(methodName)
Definition Log.h:379
#define logTraceInWith4Arguments(methodName, argument0, argument1, argument2, argument3)
Definition Log.h:373
#define logTraceInWith3Arguments(methodName, argument0, argument1, argument2)
Definition Log.h:372
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