Commit 6aa64286 authored by Timo Koch's avatar Timo Koch Committed by hanchuan
Browse files

[test][ff][angeli] Enable setting the start time

parent 75858e5c
......@@ -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>;
......
Supports Markdown
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