Commit c23a82f9 authored by Melanie Lipp's avatar Melanie Lipp Committed by Timo Koch

[test][freeflow] Call postTimeStep before timeLoop->advanceTimeStep

In postTimeStep the L2 error is calculated using a difference to the analytical solution.
Without this commit, the L2 error is calculated using a difference between the numerical solution
at a certain time and the analytical solution one time step ahead.

With this commit, the numerical and analytical solution
used to calculate the L2 error should correspond to the same time.
parent 70c12576
...@@ -144,11 +144,11 @@ int main(int argc, char** argv) try ...@@ -144,11 +144,11 @@ int main(int argc, char** argv) try
problem->createAnalyticalSolution(); problem->createAnalyticalSolution();
problem->postTimeStep(x);
// advance to the time loop to the next step // advance to the time loop to the next step
timeLoop->advanceTimeStep(); timeLoop->advanceTimeStep();
problem->postTimeStep(x);
// write vtk output // write vtk output
vtkWriter.write(timeLoop->time()); vtkWriter.write(timeLoop->time());
......
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