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
6ee3f611
Commit
6ee3f611
authored
Aug 31, 2016
by
Peter W. Draper
Browse files
Fix couple of missing cells_top changes
parent
fe1e2304
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/partition.c
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
;
...
...
src/space.c
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
;
}
...
...
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