From a8ec5f695df330b032c3d12b4f3c906c08f3fa1b Mon Sep 17 00:00:00 2001 From: "Dmitry Yu. Naumov" <github@naumov.de> Date: Wed, 22 Aug 2018 14:40:04 +0200 Subject: [PATCH] [PL] TimeLoop; Compute sec. vars. before 0 output. --- ProcessLib/UncoupledProcessesTimeLoop.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ProcessLib/UncoupledProcessesTimeLoop.cpp b/ProcessLib/UncoupledProcessesTimeLoop.cpp index 4c3dd677316..9ece9ab2b24 100644 --- a/ProcessLib/UncoupledProcessesTimeLoop.cpp +++ b/ProcessLib/UncoupledProcessesTimeLoop.cpp @@ -889,6 +889,9 @@ void UncoupledProcessesTimeLoop::outputSolutions( pcs.preTimestep(x, _start_time, process_data->timestepper->getTimeStep().dt(), process_id); + // Update secondary variables, which might be uninitialized, before + // output. + pcs.computeSecondaryVariable(_start_time, x); } if (is_staggered_coupling) { -- GitLab