Skip to content
Snippets Groups Projects
Commit b7ba3c1e authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Cache was never invalidated hence computing a wrong value

parent 2413045b
No related branches found
Tags v0.5.8
1 merge request!348Cache was never invalidated hence computing a wrong value
Pipeline #79061 passed with warnings
......@@ -26,8 +26,8 @@ Station::Station(const std::string& name, const vector3r_t& position,
void Station::UpdateTime(real_t time) {
if (time_cache_ != time) {
cached_ncp_ = NCP(time_cache_);
cached_ncp_pol0_ = NCPPol0(time_cache_);
cached_ncp_ = NCP(time);
cached_ncp_pol0_ = NCPPol0(time);
time_cache_ = time;
}
}
......
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