Commit 13120f9f authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

[Index-Shift-ST-Vtu-Plot] index shift

parent a8590fb7
......@@ -28,10 +28,10 @@ void VtuPlot::createVtu(const string &filename) {
std::ofstream out(filepath.c_str());
stream(out, 0);
} else {
for (int step = 0; step < plotMesh().steps() - 1; step++) {
for (int step = 1; step < plotMesh().steps(); step++) {
string filepath = dataPath + filename + "." + to_string(step) + string(".vtu");
std::ofstream out(filepath.c_str());
stream(out, step);
stream(out, step - 1);
}
}
}
......
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