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"
8
#include "
exahype2/RefinementControl.h
"
9
10
11
tarch::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}}]
18
const
tarch::la::Vector<Dimensions,double>
& volumeX,
19
const
tarch::la::Vector<Dimensions,double>
& volumeH,
20
double
t
21
) {
22
logTraceInWith3Arguments
(
"refinementCriterion(...)"
, volumeX, volumeH, t );
23
::exahype2::RefinementCommand
result =
::exahype2::RefinementCommand::Keep
;
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>"
%}
33
void
{{NAMESPACE | join(
"::"
)}}::{{CLASSNAME}}::initialCondition(
34
double
* __restrict__ Q,
35
const
tarch::la::Vector<Dimensions,double>
& x,
36
const
tarch::la::Vector<Dimensions,double>
& h,
37
const
tarch::la::Vector<Dimensions,int>
& index,
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
45
for
(
int
i=0;
i
<
NumberOfUnknowns
+
NumberOfAuxiliaryVariables
;
i
++) {
46
Q[
i
] = 0.0;
47
}
48
49
logTraceOut
(
"initialCondition(...)"
);
50
}
51
{% endif %}
52
53
{%
if
BOUNDARY_CONDITIONS_IMPLEMENTATION==
"<user-defined>"
%}
54
void
{{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}}]
57
const
tarch::la::Vector<Dimensions,double>
& faceCentre,
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}}
logTraceOutWith1Argument
#define logTraceOutWith1Argument(methodName, argument0)
Definition
Log.h:380
logTraceOut
#define logTraceOut(methodName)
Definition
Log.h:379
logTraceInWith3Arguments
#define logTraceInWith3Arguments(methodName, argument0, argument1, argument2)
Definition
Log.h:372
logTraceInWith2Arguments
#define logTraceInWith2Arguments(methodName, argument0, argument1)
Definition
Log.h:371
_log
tarch::logging::Log _log("::")
RefinementControl.h
tarch::logging::Log
Log Device.
Definition
Log.h:516
toString
std::string toString(Filter filter)
Definition
convert.cpp:170
dam-break-landslide.NumberOfUnknowns
NumberOfUnknowns
Definition
dam-break-landslide.py:108
dam-break-landslide.NumberOfAuxiliaryVariables
NumberOfAuxiliaryVariables
Definition
dam-break-landslide.py:109
exahype2::RefinementCommand
RefinementCommand
Definition
RefinementControl.h:13
exahype2::RefinementCommand::Keep
@ Keep
Definition
RefinementControl.h:14
parseTwoGrid.i
i
Definition
parseTwoGrid.py:53
tarch::la::Vector
Simple vector class.
Definition
Vector.h:159
python
exahype2
solvers
rkdg
SeparateSweeps.template.cpp
Generated on
for Peano by
1.14.0