Skip to content
Snippets Groups Projects
Commit 2f9c21fe authored by James Willis's avatar James Willis
Browse files

Renamed variable and corrected memory issue with xparts.

parent 69b0cbdb
No related branches found
No related tags found
1 merge request!209Corrected names in testSingle.c to reflect part struct change.
...@@ -61,9 +61,9 @@ struct cell *make_cell(size_t N, float cellSize, int offset[3], int id_offset) { ...@@ -61,9 +61,9 @@ struct cell *make_cell(size_t N, float cellSize, int offset[3], int id_offset) {
offset[2] * cellSize + z * cellSize / N + cellSize / (2 * N); offset[2] * cellSize + z * cellSize / N + cellSize / (2 * N);
part->h = h; part->h = h;
part->id = x * N * N + y * N + z + id_offset; part->id = x * N * N + y * N + z + id_offset;
++part;
part->ti_begin = 0; part->ti_begin = 0;
part->ti_end = 1; part->ti_end = 1;
++part;
} }
} }
} }
...@@ -193,7 +193,7 @@ int main() { ...@@ -193,7 +193,7 @@ int main() {
runner_do_ghost(&r, ci); runner_do_ghost(&r, ci);
message("h=%f rho=%f N_ngb=%f", p->h, p->rho, p->density.wcount); message("h=%f rho=%f N_ngb=%f", p->h, p->rho, p->density.wcount);
message("c=%f", p->force.c); message("soundspeed=%f", p->force.soundspeed);
runner_doself2_force(&r, ci); runner_doself2_force(&r, ci);
runner_do_kick(&r, ci, 1); runner_do_kick(&r, ci, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment