Maintenance - Mise à jour mensuelle Lundi 7 Décembre 2021 entre 7h00 et 9h00

Commit 115a9df2 authored by ese ovie's avatar ese ovie Committed by Gauthier Quesnel
Browse files

model: SEIR fixed core.hpp issues

parent fa18de67
Pipeline #38541 passed with stage
in 1 minute and 25 seconds
...@@ -6023,6 +6023,7 @@ max_size_in_bytes() noexcept ...@@ -6023,6 +6023,7 @@ max_size_in_bytes() noexcept
sizeof(cross), sizeof(cross),
sizeof(time_func), sizeof(time_func),
sizeof(accumulator_2), sizeof(accumulator_2),
sizeof(filter),
sizeof(flow)); sizeof(flow));
} }
...@@ -6269,6 +6270,8 @@ dynamics_typeof() noexcept ...@@ -6269,6 +6270,8 @@ dynamics_typeof() noexcept
return dynamics_type::time_func; return dynamics_type::time_func;
if constexpr (std::is_same_v<Dynamics, accumulator_2>) if constexpr (std::is_same_v<Dynamics, accumulator_2>)
return dynamics_type::accumulator_2; return dynamics_type::accumulator_2;
if constexpr (std::is_same_v<Dynamics, filter>)
return dynamics_type::filter;
if constexpr (std::is_same_v<Dynamics, flow>) if constexpr (std::is_same_v<Dynamics, flow>)
return dynamics_type::flow; return dynamics_type::flow;
...@@ -6448,6 +6451,8 @@ struct simulation ...@@ -6448,6 +6451,8 @@ struct simulation
return f(*reinterpret_cast<accumulator_2*>(&mdl.dyn), args...); return f(*reinterpret_cast<accumulator_2*>(&mdl.dyn), args...);
case dynamics_type::time_func: case dynamics_type::time_func:
return f(*reinterpret_cast<time_func*>(&mdl.dyn), args...); return f(*reinterpret_cast<time_func*>(&mdl.dyn), args...);
case dynamics_type::filter:
return f(*reinterpret_cast<filter*>(&mdl.dyn), args...);
case dynamics_type::flow: case dynamics_type::flow:
return f(*reinterpret_cast<flow*>(&mdl.dyn), args...); return f(*reinterpret_cast<flow*>(&mdl.dyn), args...);
} }
...@@ -6576,6 +6581,8 @@ struct simulation ...@@ -6576,6 +6581,8 @@ struct simulation
args...); args...);
case dynamics_type::time_func: case dynamics_type::time_func:
return f(*reinterpret_cast<const time_func*>(&mdl.dyn), args...); return f(*reinterpret_cast<const time_func*>(&mdl.dyn), args...);
case dynamics_type::filter:
return f(*reinterpret_cast<const filter*>(&mdl.dyn), args...);
case dynamics_type::flow: case dynamics_type::flow:
return f(*reinterpret_cast<const flow*>(&mdl.dyn), args...); return f(*reinterpret_cast<const flow*>(&mdl.dyn), args...);
} }
...@@ -6879,6 +6886,7 @@ public: ...@@ -6879,6 +6886,7 @@ public:
case dynamics_type::constant: case dynamics_type::constant:
case dynamics_type::cross: case dynamics_type::cross:
case dynamics_type::time_func: case dynamics_type::time_func:
case dynamics_type::filter:
case dynamics_type::flow: case dynamics_type::flow:
case dynamics_type::accumulator_2: case dynamics_type::accumulator_2:
if (mdl_dst.type == dynamics_type::integrator && if (mdl_dst.type == dynamics_type::integrator &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment