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
8df32afb
Commit
8df32afb
authored
Jun 14, 2016
by
Peter W. Draper
Browse files
Update for sub self and pair tasks
parent
d8bf23e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/partition.c
View file @
8df32afb
...
...
@@ -453,9 +453,9 @@ static void repart_edge_metis(int partweights, int bothweights, int nodeID,
/* Skip un-interesting tasks. */
if
(
t
->
type
!=
task_type_self
&&
t
->
type
!=
task_type_pair
&&
t
->
type
!=
task_type_sub
&&
t
->
type
!=
task_type_
ghost
&&
t
->
type
!=
task_type_
drif
t
&&
t
->
type
!=
task_type_
kick
&&
t
->
type
!=
task_type_init
)
t
->
type
!=
task_type_sub
_self
&&
t
->
type
!=
task_type_
sub_self
&&
t
->
type
!=
task_type_
ghos
t
&&
t
->
type
!=
task_type_
drift
&&
t
->
type
!=
task_type_kick
&&
t
->
type
!=
task_type_init
)
continue
;
/* Get the task weight. */
...
...
@@ -496,7 +496,8 @@ static void repart_edge_metis(int partweights, int bothweights, int nodeID,
/* Self interaction? */
else
if
((
t
->
type
==
task_type_self
&&
ci
->
nodeID
==
nodeID
)
||
(
t
->
type
==
task_type_sub
&&
cj
==
NULL
&&
ci
->
nodeID
==
nodeID
))
{
(
t
->
type
==
task_type_sub_self
&&
cj
==
NULL
&&
ci
->
nodeID
==
nodeID
))
{
/* Self interactions add only to vertex weight. */
if
(
taskvweights
)
weights_v
[
cid
]
+=
w
;
...
...
@@ -504,7 +505,7 @@ static void repart_edge_metis(int partweights, int bothweights, int nodeID,
/* Pair? */
else
if
(
t
->
type
==
task_type_pair
||
(
t
->
type
==
task_type_sub
&&
cj
!=
NULL
))
{
(
t
->
type
==
task_type_sub
_pair
))
{
/* In-cell pair? */
if
(
ci
==
cj
)
{
/* Add weight to vertex for ci. */
...
...
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