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

Zeroed particle fields.

parent c690636d
No related branches found
No related tags found
1 merge request!204Intrinsic vectorisation
...@@ -47,6 +47,7 @@ struct part *make_particles(int count, double *offset, double spacing, double h, ...@@ -47,6 +47,7 @@ struct part *make_particles(int count, double *offset, double spacing, double h,
count * sizeof(struct part)) != 0) { count * sizeof(struct part)) != 0) {
error("couldn't allocate particles, no. of particles: %d", (int)count); error("couldn't allocate particles, no. of particles: %d", (int)count);
} }
bzero(particles, count * sizeof(struct part));
/* Construct the particles */ /* Construct the particles */
struct part *p; struct part *p;
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment