We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08a6cf0 commit a38eeb8Copy full SHA for a38eeb8
cpp/models/smm/simulation.h
@@ -127,6 +127,10 @@ class Simulation
127
if (last_result_time < tmax) {
128
m_result.add_time_point(tmax);
129
m_result.get_last_value() = m_result[m_result.get_num_time_points() - 2];
130
+ // update internal times
131
+ for (size_t i = 0; i < m_internal_time.size(); i++) {
132
+ m_internal_time[i] += m_current_rates[i] * (tmax - current_time);
133
+ }
134
}
135
return m_result.get_last_value();
136
0 commit comments