22.1.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit b3ff35cc authored by @leo.rannabauer's avatar @leo.rannabauer

Fixed broken signatures

parent d87e886d
...@@ -236,7 +236,7 @@ class {{project}}::{{solver}} : public {{project}}::{{abstractSolver}} { ...@@ -236,7 +236,7 @@ class {{project}}::{{solver}} : public {{project}}::{{abstractSolver}} {
* @param[inout] BgradQ the nonconservative product (extends nVar), * @param[inout] BgradQ the nonconservative product (extends nVar),
* already allocated. * already allocated.
*/ */
void nonConservativeProduct(const double* const Q,const double* const gradQ,double* const BgradQ) final override; void nonConservativeProduct(const double* const Q,const double* const * const gradQ,double** const BgradQ) final override;
{% else %} {% else %}
/* nonConservativeProduct() function is not included, as requested in the specification file */ /* nonConservativeProduct() function is not included, as requested in the specification file */
{% endif %} {% endif %}
...@@ -285,7 +285,7 @@ class {{project}}::{{solver}} : public {{project}}::{{abstractSolver}} { ...@@ -285,7 +285,7 @@ class {{project}}::{{solver}} : public {{project}}::{{abstractSolver}} {
* @param[inout] rhs the right-hand side associated with Q; * @param[inout] rhs the right-hand side associated with Q;
* range: [0,nVar-1], already allocated. * range: [0,nVar-1], already allocated.
*/ */
void multiplyMaterialParameterMatrix(const double* const Q, double* const rhs) final override; void multiplyMaterialParameterMatrix(const double* const Q, double** const rhs) final override;
{% else %} {% else %}
/* multiplyMaterialParameterMatrix() not included, as requested in the specification file */ /* multiplyMaterialParameterMatrix() not included, as requested in the specification file */
{% endif %} {% endif %}
......
...@@ -34,19 +34,8 @@ void {{project}}::{{solver}}::adjustSolution(double* const luh, const tarch::la: ...@@ -34,19 +34,8 @@ void {{project}}::{{solver}}::adjustSolution(double* const luh, const tarch::la:
// Tip: See header file "peano/utils/Loop.h" for dimension-agnostic for loops. // Tip: See header file "peano/utils/Loop.h" for dimension-agnostic for loops.
// @todo Please implement/augment if required // @todo Please implement/augment if required
if (tarch::la::equals(t,0.0)) {
//initialise luh
constexpr int sizeOfQ = NumberOfVariables+NumberOfParameters;
dfor(i,Order+1) {
const int iLinearised = dLinearised(i,Order+1);
double* const Q = luh + iLinearised * sizeOfQ; // pointwise state variables (plus parameters)
{% for i in range_0_nVarParam %}
Q[{{i}}] = 0.0;
{% endfor %}
}
}
} }
{% else %} {% else %}
void {{project}}::{{solver}}::adjustPointSolution(const double* const x,const double t,const double dt,double* const Q) { void {{project}}::{{solver}}::adjustPointSolution(const double* const x,const double t,const double dt,double* const Q) {
// Tip: You find documentation for this method in header file "{{project}}::{{solver}}.h". // Tip: You find documentation for this method in header file "{{project}}::{{solver}}.h".
...@@ -176,14 +165,17 @@ void {{project}}::{{solver}}::algebraicSource(const tarch::la::Vector<DIMENSIONS ...@@ -176,14 +165,17 @@ void {{project}}::{{solver}}::algebraicSource(const tarch::la::Vector<DIMENSIONS
{% endif %} {% endif %}
{% if useNCP %} {% if useNCP %}
void {{project}}::{{solver}}::nonConservativeProduct(const double* const Q,const double* const gradQ,double* const BgradQ) {
void {{project}}::{{solver}}::nonConservativeProduct(const double* const Q,const double* const * const gradQ,double** const BgradQ) {
// Tip: You find documentation for this method in header file "{{project}}::{{solver}}.h". // Tip: You find documentation for this method in header file "{{project}}::{{solver}}.h".
// Tip: See header file "{{project}}::{{abstractSolver}}.h" for toolkit generated compile-time // Tip: See header file "{{project}}::{{abstractSolver}}.h" for toolkit generated compile-time
// constants such as Order, NumberOfVariables, and NumberOfParameters. // constants such as Order, NumberOfVariables, and NumberOfParameters.
// @todo Please implement/augment if required // @todo Please implement/augment if required
{% for d in range_0_nDim %}
{% for i in range_0_nVar %} {% for i in range_0_nVar %}
BgradQ[{{i}}] = 0.0; BgradQ[{{d}}][{{i}}] = 0.0;
{% endfor %}
{% endfor %} {% endfor %}
} }
{% endif %} {% endif %}
...@@ -218,7 +210,7 @@ void {{project}}::{{solver}}::pointSource(const double* const Q,const double* c ...@@ -218,7 +210,7 @@ void {{project}}::{{solver}}::pointSource(const double* const Q,const double* c
/** /**
* @TODO LR : document * @TODO LR : document
*/ */
void {{project}}::{{solver}}::multiplyMaterialParameterMatrix(const double* const Q, double* const rhs) { void {{project}}::{{solver}}::multiplyMaterialParameterMatrix(const double* const Q, double** const rhs) {
// Tip: You find documentation for this method in header file "{{project}}::{{solver}}.h". // Tip: You find documentation for this method in header file "{{project}}::{{solver}}.h".
// Tip: See header file "{{project}}::{{abstractSolver}}.h" for toolkit generated compile-time // Tip: See header file "{{project}}::{{abstractSolver}}.h" for toolkit generated compile-time
// constants such as Order, NumberOfVariables, and NumberOfParameters. // constants such as Order, NumberOfVariables, and NumberOfParameters.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment