Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
SWIFT
SWIFTsim
Commits
64658d21
Commit
64658d21
authored
9 years ago
by
Peter W. Draper
Browse files
Options
Downloads
Patches
Plain Diff
Don't use METIS print types, these are only found in partition.c now
parent
b0aca33d
No related branches found
No related tags found
2 merge requests
!136
Master
,
!76
Add new initial partition schemes and extend repartition ones.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/engine.c
+2
-2
2 additions, 2 deletions
src/engine.c
with
2 additions
and
2 deletions
src/engine.c
+
2
−
2
View file @
64658d21
...
@@ -367,7 +367,7 @@ void engine_repartition(struct engine *e) {
...
@@ -367,7 +367,7 @@ void engine_repartition(struct engine *e) {
/* Get the task weight. */
/* Get the task weight. */
int
w
=
(
t
->
toc
-
t
->
tic
)
*
wscale
;
int
w
=
(
t
->
toc
-
t
->
tic
)
*
wscale
;
if
(
w
<
0
)
error
(
"Bad task weight (%
"
SCIDX
"
)."
,
w
);
if
(
w
<
0
)
error
(
"Bad task weight (%
d
)."
,
w
);
/* Do we need to re-scale? */
/* Do we need to re-scale? */
wtot
+=
w
;
wtot
+=
w
;
...
@@ -539,7 +539,7 @@ void engine_repartition(struct engine *e) {
...
@@ -539,7 +539,7 @@ void engine_repartition(struct engine *e) {
/* Check that all cells have good values. */
/* Check that all cells have good values. */
for
(
int
k
=
0
;
k
<
nr_cells
;
k
++
)
for
(
int
k
=
0
;
k
<
nr_cells
;
k
++
)
if
(
celllist
[
k
]
<
0
||
celllist
[
k
]
>=
nr_nodes
)
if
(
celllist
[
k
]
<
0
||
celllist
[
k
]
>=
nr_nodes
)
error
(
"Got bad nodeID %
"
PRIDX
"
for cell %i."
,
celllist
[
k
],
k
);
error
(
"Got bad nodeID %
d
for cell %i."
,
celllist
[
k
],
k
);
/* Check that the partition is complete and all nodes have some work. */
/* Check that the partition is complete and all nodes have some work. */
int
present
[
nr_nodes
];
int
present
[
nr_nodes
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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