04.06., 9:00 - 12:00: GitLab will be migrated to a new server environment and upgraded to Enterprise Edition Ultimate. The estimated downtime will be 2-3 hours. Please see https://doku.lrz.de/display/PUBLIC/GitLab+Ultimate+Migration for more details about changes related to the migration.

Commit 7e582ee4 authored by Anne Reinarz's avatar Anne Reinarz

update compute grad

parent 2a881cfa
...@@ -199,7 +199,7 @@ template <typename SolverType> ...@@ -199,7 +199,7 @@ template <typename SolverType>
void computeGradQ(double* gradQ, const double* const u, const tarch::la::Vector<DIMENSIONS, double>& sizeOfPatch) { void computeGradQ(double* gradQ, const double* const u, const tarch::la::Vector<DIMENSIONS, double>& sizeOfPatch) {
const int numberOfVariables = SolverType::NumberOfVariables; const int numberOfVariables = SolverType::NumberOfVariables;
const int order = SolverType::Order; const int order = SolverType::Order;
computeGradQ(gradQ, u, sizeOfPatch, numberOfVariables, order); computeGradQ(gradQ, u, sizeOfPatch, numberOfVariables, order);
} }
/// Convenience also for computeGradQi /// Convenience also for computeGradQi
......
...@@ -203,7 +203,7 @@ template <typename SolverType> ...@@ -203,7 +203,7 @@ template <typename SolverType>
void computeGradQ(double* gradQ, const double* const u, const tarch::la::Vector<DIMENSIONS, double>& sizeOfPatch) { void computeGradQ(double* gradQ, const double* const u, const tarch::la::Vector<DIMENSIONS, double>& sizeOfPatch) {
const int numberOfVariables = SolverType::NumberOfVariables; const int numberOfVariables = SolverType::NumberOfVariables;
const int order = SolverType::Order; const int order = SolverType::Order;
computeGradQ(gradQ, u, SolverType::dudx, sizeOfPatch, numberOfVariables, order); computeGradQ(gradQ, u, kernels::legendre::dudx, sizeOfPatch, numberOfVariables, order);
} }
/// Convenience also for computeGradQi /// Convenience also for computeGradQi
...@@ -211,7 +211,7 @@ template <typename SolverType> ...@@ -211,7 +211,7 @@ template <typename SolverType>
void computeGradQi(double* gradQi, const double* const u, const int requestedDirection, const int requestedVariableIndex, const tarch::la::Vector<DIMENSIONS, double>& sizeOfPatch) { void computeGradQi(double* gradQi, const double* const u, const int requestedDirection, const int requestedVariableIndex, const tarch::la::Vector<DIMENSIONS, double>& sizeOfPatch) {
const int numberOfVariables = SolverType::NumberOfVariables; const int numberOfVariables = SolverType::NumberOfVariables;
const int order = SolverType::Order; const int order = SolverType::Order;
computeGradQi(gradQi, u, SolverType::dudx, requestedDirection, requestedVariableIndex, sizeOfPatch, numberOfVariables, order); computeGradQi(gradQi, u, kernels::legendre::dudx, requestedDirection, requestedVariableIndex, sizeOfPatch, numberOfVariables, order);
} }
......
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