From 6aa64286a420283fa9f23bca394070e6b0ddd9c8 Mon Sep 17 00:00:00 2001 From: Timo Koch <timo.koch@iws.uni-stuttgart.de> Date: Fri, 7 May 2021 11:21:40 +0200 Subject: [PATCH] [test][ff][angeli] Enable setting the start time --- test/freeflow/navierstokes/angeli/main.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/freeflow/navierstokes/angeli/main.cc b/test/freeflow/navierstokes/angeli/main.cc index 918903063d..bf7b1d7009 100644 --- a/test/freeflow/navierstokes/angeli/main.cc +++ b/test/freeflow/navierstokes/angeli/main.cc @@ -136,17 +136,19 @@ int main(int argc, char** argv) // get some time loop parameters using Scalar = GetPropType<TypeTag, Properties::Scalar>; + const auto tStart = getParam<Scalar>("TimeLoop.TStart", 0.0); const auto tEnd = getParam<Scalar>("TimeLoop.TEnd"); const auto maxDt = getParam<Scalar>("TimeLoop.MaxTimeStepSize"); auto dt = getParam<Scalar>("TimeLoop.DtInitial"); // instantiate time loop - auto timeLoop = std::make_shared<TimeLoop<Scalar>>(0, dt, tEnd); + auto timeLoop = std::make_shared<TimeLoop<Scalar>>(tStart, dt, tEnd); timeLoop->setMaxTimeStepSize(maxDt); // the problem (initial and boundary conditions) using Problem = GetPropType<TypeTag, Properties::Problem>; auto problem = std::make_shared<Problem>(gridGeometry); + problem->setTime(timeLoop->time()); // the solution vector using SolutionVector = GetPropType<TypeTag, Properties::SolutionVector>; -- GitLab