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

Commit be1e1bce authored by Anne Reinarz's avatar Anne Reinarz

small fix to conserved writer

parent 9aafd47a
......@@ -33,8 +33,7 @@ void SWE::ConservedWriter::mapQuantities(
double timeStamp
) {
const int writtenUnknowns = 5;
for (int i=0; i<writtenUnknowns-1; i++){
for (int i=0; i<writtenUnknowns; i++){
outputQuantities[i] = Q[i];
}
outputQuantities[4] = Q[0] + Q[3];
}
}
\ No newline at end of file
// This file was generated by the ExaHyPE toolkit.
// It will not be overwritten.
//
//
// ========================
// www.exahype.eu
// ========================
#include "ConservedWriter2.h"
SWE::ConservedWriter2::ConservedWriter2(SWE::MySWESolver_l2& solver) {
// @TODO Please insert your code here.
}
SWE::ConservedWriter2::~ConservedWriter2() {
}
void SWE::ConservedWriter2::startPlotting( double time) {
// @TODO Please insert your code here.
}
void SWE::ConservedWriter2::finishPlotting() {
// @TODO Please insert your code here.
}
void SWE::ConservedWriter2::mapQuantities(
const tarch::la::Vector<DIMENSIONS, double>& offsetOfPatch,
const tarch::la::Vector<DIMENSIONS, double>& sizeOfPatch,
const tarch::la::Vector<DIMENSIONS, double>& x,
const tarch::la::Vector<DIMENSIONS, int>& pos,
double* const Q,
double* const outputQuantities,
double timeStamp
) {
const int writtenUnknowns = 5;
for (int i=0; i<writtenUnknowns; i++){
outputQuantities[i] = Q[i];
}
}
\ No newline at end of file
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