Skip to content

Commit 6d97dfb

Browse files
author
Lucas Marin
committed
Removed changes to HowToTracker and standardized casting in BioGearsEngine::AdvanceModelTime
1 parent ca6d467 commit 6d97dfb

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

projects/biogears/libBiogears/src/engine/Controller/BioGearsEngine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ void BioGearsEngine::AdvanceModelTime(double time, const TimeUnit& unit)
672672
double remains = time_s / m_Config->GetTimeStep(TimeUnit::s);
673673
remains -= static_cast<int>(remains);
674674
timeStep_remainder += remains;
675-
int count = (int)(time_s / m_Config->GetTimeStep(TimeUnit::s));
675+
int count = static_cast<int>(time_s / m_Config->GetTimeStep(TimeUnit::s));
676676
if (timeStep_remainder >= 1.0) {
677677
++count;
678678
timeStep_remainder -= 1.0;

projects/howto/common-source/HowToTracker.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class HowToTracker
2020
{
2121
private:
2222
double m_dT_s; // Cached Engine Time Step
23-
double m_dT_s_remainder = 0.0;
2423
biogears::PhysiologyEngine& m_Engine;
2524
public:
2625
HowToTracker(biogears::PhysiologyEngine& engine);

0 commit comments

Comments
 (0)