Skip to content
Snippets Groups Projects
Commit fbfecaab authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

TL/AppSim; Return Time in currentTime/endTime

parent 5c84c63e
No related branches found
No related tags found
No related merge requests found
......@@ -115,13 +115,13 @@ void Simulation::initializeDataStructures(
double Simulation::currentTime() const
{
auto const& time_loop = project_data->getTimeLoop();
return time_loop.currentTime();
return time_loop.currentTime()();
}
double Simulation::endTime() const
{
auto const& time_loop = project_data->getTimeLoop();
return time_loop.endTime();
return time_loop.endTime()();
}
bool Simulation::executeTimeStep()
......
......@@ -59,8 +59,8 @@ public:
/// otherwise.
bool calculateNextTimeStep();
double endTime() const { return _end_time(); }
double currentTime() const { return _current_time(); }
NumLib::Time endTime() const { return _end_time; }
NumLib::Time currentTime() const { return _current_time; }
bool successful_time_step = false;
private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment