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

model: added qss1 on SEIR model

parent 4929fefd
......@@ -3088,6 +3088,13 @@ editor::show_window() noexcept
3,
"Fail to initialize example_qss_izhikevich<1>: %s\n",
status_string(ret));
if (ImGui::MenuItem("Insert example QSS1 seir_nonlinear"))
if (auto ret = example_qss_seir_nonlinear<1>(sim, empty_fun);
is_bad(ret))
log_w.log(
3,
"Fail to initialize example_qss_seir_nonlinear<1>: %s\n",
status_string(ret));
if (ImGui::MenuItem("Insert example QSS2 lotka_volterra"))
if (auto ret = example_qss_lotka_volterra<2>(sim, empty_fun);
......@@ -3125,10 +3132,10 @@ editor::show_window() noexcept
if (ImGui::MenuItem("Insert example QSS2 seir_nonlinear"))
if (auto ret = example_qss_seir_nonlinear<2>(sim, empty_fun);
is_bad(ret))
log_w.log(3,
"Fail to initialize "
"example_qss_seir_nonlinear<2>: %s\n",
status_string(ret));
log_w.log(
3,
"Fail to initialize example_qss_seir_nonlinear<2>: %s\n",
status_string(ret));
if (ImGui::MenuItem("Insert example QSS3 lotka_volterra"))
if (auto ret = example_qss_lotka_volterra<3>(sim, empty_fun);
......
......@@ -306,6 +306,8 @@ template<int QssLevel, typename F>
status
example_qss_seir_nonlinear(simulation& sim, F f) noexcept
{
static_assert(1 <= QssLevel && QssLevel <= 3, "Only for Qss1, 2 and 3");
bool success = sim.can_alloc(29) && sim.can_connect(38);
irt_return_if_fail(success, status::simulation_not_enough_model);
......
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