Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Elijah Grubb
emulab-devel
Commits
b264fbd6
Commit
b264fbd6
authored
Sep 06, 2016
by
Robert Ricci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finish implementing the new -Y option for #153
Still needs testing
parent
35ee8cee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
assign/score.cc
assign/score.cc
+7
-0
No files found.
assign/score.cc
View file @
b264fbd6
...
...
@@ -52,6 +52,7 @@ extern switch_pred_map_map switch_preds;
extern
bool
disable_pclasses
;
extern
bool
strategy_balance
;
extern
bool
strategy_pack
;
extern
bool
scoring_type_violation
;
double
score
;
// The score of the current mapping
int
violated
;
// How many times the restrictions
...
...
@@ -966,6 +967,9 @@ void remove_node(vvertex vv)
&&
(
pnode
->
my_class
->
used_members
==
0
))
{
SDEBUG
(
cerr
<<
" freeing pclass"
<<
endl
);
SSUB
(
SCORE_PCLASS
);
if
(
scoring_type_violation
)
{
vinfo
.
mult_types
--
;
}
}
// vclass
...
...
@@ -1518,6 +1522,9 @@ int add_node(vvertex vv,pvertex pv, bool deterministic, bool is_fixed, bool skip
(
pnode
->
my_class
->
used_members
==
0
))
{
SDEBUG
(
cerr
<<
" new pclass"
<<
endl
);
SADD
(
SCORE_PCLASS
);
if
(
scoring_type_violation
)
{
vinfo
.
mult_types
++
;
}
}
// vclass
...
...
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