Skip to content
Snippets Groups Projects
Commit 6ee3f611 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Fix couple of missing cells_top changes

parent fe1e2304
No related branches found
No related tags found
1 merge request!231Documentation of the space and new names for the cells
......@@ -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;
......
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment