Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gauthier Quesnel
irritator
Commits
115a9df2
Commit
115a9df2
authored
Jul 29, 2021
by
ese ovie
Committed by
Gauthier Quesnel
Jul 29, 2021
Browse files
model: SEIR fixed core.hpp issues
parent
fa18de67
Pipeline
#38541
passed with stage
in 1 minute and 25 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
lib/include/irritator/core.hpp
View file @
115a9df2
...
@@ -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
&&
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment