Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
arbor-sim
arbor
Commits
a34a70de
Commit
a34a70de
authored
8 years ago
by
Sam Yates
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'upstream/feature/model-refactor' into feature/model+recipe
parents
a362039a
4b1a019c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
external/modparser
+1
-1
1 addition, 1 deletion
external/modparser
src/algorithms.hpp
+3
-3
3 additions, 3 deletions
src/algorithms.hpp
with
4 additions
and
4 deletions
modparser
@
b200bf63
Compare
588ca1a5
...
b200bf63
Subproject commit
588ca1a5ea28ef04d17b318e754d479e5489eb9a
Subproject commit
b200bf6376a2dc30edea98fcc2375fc9be095135
This diff is collapsed.
Click to expand it.
src/algorithms.hpp
+
3
−
3
View file @
a34a70de
...
...
@@ -141,7 +141,7 @@ bool has_contiguous_segments(const C& parent_index)
return
false
;
}
if
(
p
!=
i
-
1
)
{
if
(
p
!=
decltype
(
p
)(
i
-
1
)
)
{
// we have a branch and i-1 is a leaf node
is_leaf
[
i
-
1
]
=
true
;
}
...
...
@@ -174,7 +174,7 @@ std::vector<typename C::value_type> branches(const C& parent_index)
"integral type required"
);
EXPECTS
(
has_contiguous_segments
(
parent_index
));
//
EXPECTS(has_contiguous_segments(parent_index));
std
::
vector
<
typename
C
::
value_type
>
branch_index
;
if
(
parent_index
.
empty
())
{
...
...
@@ -250,7 +250,7 @@ std::vector<typename C::value_type> make_parent_index(
}
EXPECTS
(
parent_index
.
size
()
==
unsigned
(
branch_index
.
back
()));
EXPECTS
(
has_contiguous_segments
(
parent_index
));
//
EXPECTS(has_contiguous_segments(parent_index));
EXPECTS
(
is_strictly_monotonic_increasing
(
branch_index
));
// expand the branch index
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment