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
c87c02af
Commit
c87c02af
authored
Apr 07, 2020
by
Gauthier Quesnel
Browse files
core: fix scheduller (re)init
parent
fec6afb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/include/irritator/core.hpp
View file @
c87c02af
...
...
@@ -3881,10 +3881,10 @@ public:
void
erase
(
model
&
mdl
)
noexcept
{
assert
(
mdl
.
handle
!=
nullptr
);
m_heap
.
remove
(
mdl
.
handle
)
;
mdl
.
handle
=
nullptr
;
if
(
mdl
.
handle
)
{
m_heap
.
remove
(
mdl
.
handle
);
mdl
.
handle
=
nullptr
;
}
}
void
update
(
model
&
mdl
,
time
tn
)
noexcept
...
...
@@ -4028,7 +4028,9 @@ struct simulation
model
&
mdl
=
models
.
alloc
();
model_id
mdl_id
=
models
.
get_id
(
mdl
);
mdl
.
handle
=
nullptr
;
mdl
.
id
=
id
;
if
(
name
)
mdl
.
name
.
assign
(
name
);
...
...
@@ -4083,11 +4085,6 @@ struct simulation
}
}
mdl
.
tl
=
begin
;
mdl
.
tn
=
begin
+
dynamics
.
sigma
;
sched
.
insert
(
mdl
,
dynamics
.
id
,
mdl
.
tn
);
return
status
::
success
;
}
...
...
@@ -4162,7 +4159,6 @@ struct simulation
models
.
free
(
*
mdl
);
return
status
::
success
;
}
template
<
typename
Dynamics
>
...
...
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