diff --git a/test/freeflow/navierstokes/angeli/main.cc b/test/freeflow/navierstokes/angeli/main.cc index 918903063d46f5fb1996e845d109949e7463d40a..bf7b1d7009895ecf80a6d9b49bb711dc07fca2d8 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>;