Peano
Loading...
Searching...
No Matches
CollocatedLowOrderDiscretisation.template.h
Go to the documentation of this file.
1//
2// Solver file of Peano's PETSc add-on
3// Generated by Peano's Python API
4// www.peano-framework.org
5//
6// This is generated. Don't change it! Every rerun of the Python API will
7// overwrite your changes.
8//
9#pragma once
10
11
12#include "Abstract{{CLASSNAME}}.h"
13
14
15{% for item in NAMESPACE -%}
16 namespace {{ item }} {
17
18{%- endfor %}
19 class {{CLASSNAME}};
20
21{% for item in NAMESPACE -%}
22 }
23{%- endfor %}
24
25
26class {{NAMESPACE | join("::")}}::{{CLASSNAME}}: public {{NAMESPACE | join("::")}}::Abstract{{CLASSNAME}} {
27 public:
28
34 {{CLASSNAME}}();
35
43 virtual ~{{CLASSNAME}}();
44
50 virtual void initVertex(
53 tarch::la::Vector< {{VERTEX_CARDINALITY}}, double >& value,
54 tarch::la::Vector< {{VERTEX_CARDINALITY}}, double >& rhs
55 ) override;
56
57 {% if CELL_LHS_MATRIX==[] %}
58 virtual tarch::la::Matrix< {{VERTEX_CARDINALITY}}*TwoPowerD, {{VERTEX_CARDINALITY}}*TwoPowerD, double > getLhsMatrix(
61 ) override;
62 {% endif %};
63
64 {% if CELL_RHS_MATRIX==[] %}
65 virtual tarch::la::Matrix< {{VERTEX_CARDINALITY}}*TwoPowerD, {{VERTEX_CARDINALITY}}*TwoPowerD, double > getRhsMatrix(
68 ) override;
69 {% endif %};
70};
71
72
#define TwoPowerD
Definition Globals.h:19
Static (i.e.
Definition Matrix.h:42
Simple vector class.
Definition Vector.h:159