Skip to content
Snippets Groups Projects
Commit c0eee2b9 authored by Timo Koch's avatar Timo Koch
Browse files

[timeloop] Rename lastTimeStepSize to previousTimeStepSize

parent cb0c2819
No related branches found
No related tags found
1 merge request!1577[timeloop] Feature/checkpointtimeloop with memory
...@@ -157,7 +157,7 @@ public: ...@@ -157,7 +157,7 @@ public:
time_ = startTime; time_ = startTime;
endTime_ = tEnd; endTime_ = tEnd;
lastTimeStepSize_ = 0.0; previousTimeStepSize_ = 0.0;
userSetMaxTimeStepSize_ = std::numeric_limits<Scalar>::max(); userSetMaxTimeStepSize_ = std::numeric_limits<Scalar>::max();
timeStepIdx_ = 0; timeStepIdx_ = 0;
finished_ = false; finished_ = false;
...@@ -178,7 +178,7 @@ public: ...@@ -178,7 +178,7 @@ public:
{ {
timeStepIdx_++; timeStepIdx_++;
time_ += timeStepSize_; time_ += timeStepSize_;
lastTimeStepSize_ = timeStepSize_; previousTimeStepSize_ = timeStepSize_;
// compute how long the last time step took // compute how long the last time step took
const auto cpuTime = wallClockTime(); const auto cpuTime = wallClockTime();
...@@ -342,7 +342,7 @@ public: ...@@ -342,7 +342,7 @@ public:
<< std::setprecision( 6 ) << timeStepWallClockTime_ << " seconds. " << std::setprecision( 6 ) << timeStepWallClockTime_ << " seconds. "
<< "Wall clock time: " << std::setprecision( 3 ) << cpuTime << "Wall clock time: " << std::setprecision( 3 ) << cpuTime
<< ", time: " << std::setprecision( 5 ) << time_ << ", time: " << std::setprecision( 5 ) << time_
<< ", time step size: " << std::setprecision( 8 ) << lastTimeStepSize_ << ", time step size: " << std::setprecision( 8 ) << previousTimeStepSize_
<< std::endl; << std::endl;
} }
} }
...@@ -384,7 +384,7 @@ protected: ...@@ -384,7 +384,7 @@ protected:
Scalar endTime_; Scalar endTime_;
Scalar timeStepSize_; Scalar timeStepSize_;
Scalar lastTimeStepSize_; Scalar previousTimeStepSize_;
Scalar userSetMaxTimeStepSize_; Scalar userSetMaxTimeStepSize_;
Scalar timeAfterLastTimeStep_, timeStepWallClockTime_; Scalar timeAfterLastTimeStep_, timeStepWallClockTime_;
int timeStepIdx_; int timeStepIdx_;
......
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