Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Maintenance - Mise à jour mensuelle Lundi 6 Février entre 7h00 et 9h00
Open sidebar
Gauthier Quesnel
irritator
Commits
3a38ae7a
Commit
3a38ae7a
authored
Aug 13, 2020
by
Gauthier Quesnel
Browse files
core: fix missing accumulation in sum
parent
a71ceb44
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/include/irritator/core.hpp
View file @
3a38ae7a
...
...
@@ -3828,12 +3828,13 @@ struct abstract_sum
for
(
size_t
i
=
0
;
i
!=
PortNumber
;
++
i
)
{
value
+=
values
[
i
];
slope
+=
values
[
i
+
PortNumber
];
derivative
=
values
[
i
+
PortNumber
+
PortNumber
];
derivative
+
=
values
[
i
+
PortNumber
+
PortNumber
];
}
output_ports
.
get
(
y
[
0
]).
messages
.
emplace_front
(
value
,
slope
,
derivative
);
}
return
status
::
success
;
}
...
...
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