Skip to content
GitLab
Menu
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
18cb1c78
Commit
18cb1c78
authored
Jun 07, 2021
by
Gauthier Quesnel
Browse files
core: add offset to the constant model
parent
541ea398
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/include/irritator/core.hpp
View file @
18cb1c78
...
...
@@ -5186,12 +5186,13 @@ struct constant
time
sigma
;
double
default_value
=
0.0
;
time
default_offset
=
time_domain
<
time
>::
zero
;
double
value
=
0.0
;
status
initialize
()
noexcept
{
sigma
=
time_domain
<
time
>::
zero
;
sigma
=
default_offset
;
value
=
default_value
;
...
...
@@ -6573,7 +6574,8 @@ public:
irt_return_if_bad
(
model_list_allocator
.
init
(
model_capacity
*
ten
));
irt_return_if_bad
(
message_list_allocator
.
init
(
messages_capacity
*
ten
));
irt_return_if_bad
(
node_list_allocator
.
init
(
model_capacity
*
ten
));
irt_return_if_bad
(
dated_message_allocator
.
init
(
model_capacity
*
ten
*
ten
));
irt_return_if_bad
(
dated_message_allocator
.
init
(
model_capacity
*
ten
*
ten
));
irt_return_if_bad
(
emitting_output_port_allocator
.
init
(
model_capacity
));
irt_return_if_bad
(
sched
.
init
(
model_capacity
));
...
...
@@ -6592,7 +6594,6 @@ public:
return
models
.
can_alloc
();
}
bool
can_alloc
(
size_t
place
)
const
noexcept
{
return
models
.
can_alloc
(
place
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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