Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
psco-2019-gp
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Heinrichs
psco-2019-gp
Commits
9ee6099d
Commit
9ee6099d
authored
5 years ago
by
Florian Heinrichs
Browse files
Options
Downloads
Patches
Plain Diff
fixed assertions
parent
1e6367ae
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bnb/partition.cpp
+2
-2
2 additions, 2 deletions
bnb/partition.cpp
with
2 additions
and
2 deletions
bnb/partition.cpp
+
2
−
2
View file @
9ee6099d
...
@@ -25,7 +25,7 @@ partition::subgraph partition::assigned_subgraph_of(node_id v) const {
...
@@ -25,7 +25,7 @@ partition::subgraph partition::assigned_subgraph_of(node_id v) const {
}
}
void
partition
::
assign_node
(
node_id
v
,
subgraph
sg
)
{
void
partition
::
assign_node
(
node_id
v
,
subgraph
sg
)
{
assert
(
node_assignments_
[
v
-
1
]
!
=
none
);
assert
(
node_assignments_
[
v
-
1
]
=
=
none
);
// Increments current objectives
// Increments current objectives
for
(
auto
const
&
target
:
graph_
.
get_adjacency
(
v
))
{
for
(
auto
const
&
target
:
graph_
.
get_adjacency
(
v
))
{
...
@@ -43,7 +43,7 @@ void partition::assign_node(node_id v, subgraph sg) {
...
@@ -43,7 +43,7 @@ void partition::assign_node(node_id v, subgraph sg) {
void
partition
::
unassign_node
(
node_id
v
)
{
void
partition
::
unassign_node
(
node_id
v
)
{
subgraph
sg
=
node_assignments_
[
v
-
1
];
subgraph
sg
=
node_assignments_
[
v
-
1
];
assert
(
sg
=
=
none
);
assert
(
sg
!
=
none
);
// Decrements current objectives
// Decrements current objectives
for
(
auto
const
&
target
:
graph_
.
get_adjacency
(
v
))
{
for
(
auto
const
&
target
:
graph_
.
get_adjacency
(
v
))
{
...
...
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