Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pmtool
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Merge Requests
0
Merge Requests
0
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
EYRAUD-DUBOIS Lionel
pmtool
Commits
0e3b5d67
Commit
0e3b5d67
authored
Feb 12, 2019
by
EYRAUD-DUBOIS Lionel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debug rank computing when there is no dependency
parent
018ede3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
core/instance.cpp
core/instance.cpp
+5
-2
No files found.
core/instance.cpp
View file @
0e3b5d67
...
...
@@ -319,9 +319,12 @@ vector<double> Instance::computeRanks(vector<double> wbar, int to, int from) {
int
i
=
topOrder
[
j
];
// Compute max
double
m
=
-
std
::
numeric_limits
<
double
>::
infinity
();
for
(
int
k
=
0
;
k
<
(
int
)
revDep
[
i
].
size
();
k
++
)
if
(
revDep
[
i
].
empty
())
m
=
0
;
else
for
(
int
k
=
0
;
k
<
(
int
)
revDep
[
i
].
size
();
k
++
)
if
(
rank
[
revDep
[
i
][
k
]]
>
m
)
m
=
rank
[
revDep
[
i
][
k
]];
m
=
rank
[
revDep
[
i
][
k
]];
rank
[
i
]
=
wbar
[
i
]
+
m
;
if
(
topOrder
[
j
]
==
from
)
...
...
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