Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
da9b6b73
Commit
da9b6b73
authored
Oct 30, 2017
by
Matthieu Schaller
Browse files
Code formatting
parent
799d3b29
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/partition.c
View file @
da9b6b73
...
...
@@ -384,8 +384,8 @@ static void pick_metis(struct space *s, int nregions, int *vertexw, int *edgew,
* weights_v, NULL, weights_e);
*/
if
(
METIS_PartGraphKway
(
&
idx_ncells
,
&
one
,
xadj
,
adjncy
,
weights_v
,
NULL
,
weights_e
,
&
idx_nregions
,
NULL
,
NULL
,
options
,
&
objval
,
regionid
)
!=
METIS_OK
)
weights_e
,
&
idx_nregions
,
NULL
,
NULL
,
options
,
&
objval
,
regionid
)
!=
METIS_OK
)
error
(
"Call to METIS_PartGraphKway failed."
);
/* Check that the regionids are ok. */
...
...
@@ -519,8 +519,7 @@ static void repart_edge_metis(int partweights, int bothweights, int nodeID,
struct
task
*
t
=
&
tasks
[
j
];
/* Skip un-interesting tasks. */
if
(
t
->
cost
==
0
)
continue
;
if
(
t
->
cost
==
0
)
continue
;
/* Get the task weight. */
int
w
=
t
->
cost
*
wscale
;
...
...
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