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
eb51b8fb
Commit
eb51b8fb
authored
Jul 27, 2016
by
James Willis
Browse files
Zeroed particle fields.
parent
c690636d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/testInteractions.c
View file @
eb51b8fb
...
...
@@ -47,6 +47,7 @@ struct part *make_particles(int count, double *offset, double spacing, double h,
count
*
sizeof
(
struct
part
))
!=
0
)
{
error
(
"couldn't allocate particles, no. of particles: %d"
,
(
int
)
count
);
}
bzero
(
particles
,
count
*
sizeof
(
struct
part
));
/* Construct the particles */
struct
part
*
p
;
...
...
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