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
b68408f2
Commit
b68408f2
authored
Feb 20, 2017
by
Matthieu Schaller
Browse files
Also update calls in the test suite. Make the dump test clean its memory.
parent
a443708f
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/runner.h
View file @
b68408f2
...
...
@@ -56,7 +56,7 @@ struct runner {
void
runner_do_ghost
(
struct
runner
*
r
,
struct
cell
*
c
,
int
timer
);
void
runner_do_extra_ghost
(
struct
runner
*
r
,
struct
cell
*
c
,
int
timer
);
void
runner_do_sort
(
struct
runner
*
r
,
struct
cell
*
c
,
int
flag
,
int
clock
);
void
runner_do_drift
(
struct
runner
*
r
,
struct
cell
*
c
,
int
timer
);
void
runner_do_drift
_particles
(
struct
runner
*
r
,
struct
cell
*
c
,
int
timer
);
void
runner_do_kick1
(
struct
runner
*
r
,
struct
cell
*
c
,
int
timer
);
void
runner_do_kick2
(
struct
runner
*
r
,
struct
cell
*
c
,
int
timer
);
void
runner_do_end_force
(
struct
runner
*
r
,
struct
cell
*
c
,
int
timer
);
...
...
tests/test125cells.c
View file @
b68408f2
...
...
@@ -580,7 +580,7 @@ int main(int argc, char *argv[]) {
// runner_do_kick1(&runner, main_cell, 0);
/* And a gentle drift */
// runner_do_drift(&runner, main_cell, 0);
// runner_do_drift
_particles
(&runner, main_cell, 0);
/* First, sort stuff */
for
(
int
j
=
0
;
j
<
125
;
++
j
)
runner_do_sort
(
&
runner
,
cells
[
j
],
0x1FFF
,
0
);
...
...
@@ -678,7 +678,7 @@ int main(int argc, char *argv[]) {
// runner_do_kick1(&runner, main_cell, 0);
/* And drift it */
runner_do_drift
(
&
runner
,
main_cell
,
0
);
runner_do_drift
_particles
(
&
runner
,
main_cell
,
0
);
/* Initialise the particles */
for
(
int
j
=
0
;
j
<
125
;
++
j
)
runner_do_init
(
&
runner
,
cells
[
j
],
0
);
...
...
tests/testDump.c
View file @
b68408f2
...
...
@@ -79,6 +79,9 @@ int main(int argc, char *argv[]) {
/* Finalize the dump. */
dump_close
(
&
d
);
/* Clean the threads */
threadpool_clean
(
&
t
);
/* Return a happy number. */
return
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