You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Time last_time_point = static_cast<time_type>(*last_time_iterator);
(and potentially more; L139 is where I encountered a compiler error) that don't fit the the target variables' types. Say, for instance, Time in these cases is a Boost Units quantity, then time_type, if I understand correctly, is a plain double (or other floating point format). If I further understand the TimeIterator type correctly, that type should return a Time instance on valid dereference.
Now the static_cast tries to cast a quantity to, say, double (which fails), which is then reassigned to a quantity (which should
also fail).
It seems to me that simply removing the static casts might fix the issue, although I have not spent much time looking into it.
For now I'll use another integrator but I'd be happy to help to solve this issue in the future - if my hypothesis is correct.
Best
Malte
The text was updated successfully, but these errors were encountered:
Hi,
it seems to me that there are a number of
static_cast<time_type>
in theintegrate_times
implementation, e.g.odeint/include/boost/numeric/odeint/integrate/detail/integrate_times.hpp
Line 64 in 8b4768e
odeint/include/boost/numeric/odeint/integrate/detail/integrate_times.hpp
Line 97 in 8b4768e
odeint/include/boost/numeric/odeint/integrate/detail/integrate_times.hpp
Line 139 in 8b4768e
(and potentially more; L139 is where I encountered a compiler error) that don't fit the the target variables' types. Say, for instance,
Time
in these cases is a Boost Units quantity, thentime_type
, if I understand correctly, is a plain double (or other floating point format). If I further understand theTimeIterator
type correctly, that type should return aTime
instance on valid dereference.Now the
static_cast
tries to cast a quantity to, say, double (which fails), which is then reassigned to a quantity (which shouldalso fail).
It seems to me that simply removing the static casts might fix the issue, although I have not spent much time looking into it.
For now I'll use another integrator but I'd be happy to help to solve this issue in the future - if my hypothesis is correct.
Best
Malte
The text was updated successfully, but these errors were encountered: