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
6ee3f611
Commit
6ee3f611
authored
8 years ago
by
Peter W. Draper
Browse files
Options
Downloads
Patches
Plain Diff
Fix couple of missing cells_top changes
parent
fe1e2304
No related branches found
No related tags found
1 merge request
!231
Documentation of the space and new names for the cells
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/partition.c
+2
-2
2 additions, 2 deletions
src/partition.c
src/space.c
+1
-1
1 addition, 1 deletion
src/space.c
with
3 additions
and
3 deletions
src/partition.c
+
2
−
2
View file @
6ee3f611
...
...
@@ -274,7 +274,7 @@ static void accumulate_counts(struct space *s, int *counts) {
*/
static
void
split_metis
(
struct
space
*
s
,
int
nregions
,
int
*
celllist
)
{
for
(
int
i
=
0
;
i
<
s
->
nr_cells
;
i
++
)
s
->
cells
[
i
].
nodeID
=
celllist
[
i
];
for
(
int
i
=
0
;
i
<
s
->
nr_cells
;
i
++
)
s
->
cells
_top
[
i
].
nodeID
=
celllist
[
i
];
}
#endif
...
...
@@ -419,7 +419,7 @@ static void repart_edge_metis(int partweights, int bothweights, int nodeID,
/* Create weight arrays using task ticks for vertices and edges (edges
* assume the same graph structure as used in the part_ calls). */
int
nr_cells
=
s
->
nr_cells
;
struct
cell
*
cells
=
s
->
cells
;
struct
cell
*
cells
=
s
->
cells
_top
;
float
wscale
=
1e-3
,
vscale
=
1e-3
,
wscale_buff
=
0
.
0
;
int
wtot
=
0
;
int
wmax
=
1e9
/
nr_nodes
;
...
...
This diff is collapsed.
Click to expand it.
src/space.c
+
1
−
1
View file @
6ee3f611
...
...
@@ -390,7 +390,7 @@ void space_regrid(struct space *s, double cell_max, int verbose) {
s
->
cells_top
[
k
].
ghost
=
NULL
;
s
->
cells_top
[
k
].
kick
=
NULL
;
s
->
cells_top
[
k
].
super
=
&
s
->
cells_top
[
k
];
s
->
cells_top
[
k
].
gsuper
=
&
s
->
cells
[
k
];
s
->
cells_top
[
k
].
gsuper
=
&
s
->
cells
_top
[
k
];
}
s
->
maxdepth
=
0
;
}
...
...
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