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
7d68821a
Commit
7d68821a
authored
May 10, 2017
by
Matthieu Schaller
Browse files
Reset the particles for every run in test125.
parent
e56eaf3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test125cells.c
View file @
7d68821a
/*******************************************************************************
* This file is part of SWIFT.
* Copyright (C) 2016 Matthieu Schaller (matthieu.schaller@durham.ac.uk).
...
...
@@ -525,9 +526,9 @@ int main(int argc, char *argv[]) {
/* Build the infrastructure */
struct
space
space
;
space
.
periodic
=
1
;
space
.
dim
[
0
]
=
3
.;
space
.
dim
[
1
]
=
3
.;
space
.
dim
[
2
]
=
3
.;
space
.
dim
[
0
]
=
5
.;
space
.
dim
[
1
]
=
5
.;
space
.
dim
[
2
]
=
5
.;
hydro_space_init
(
&
space
.
hs
,
&
space
);
struct
phys_const
prog_const
;
...
...
@@ -669,6 +670,12 @@ int main(int argc, char *argv[]) {
outputFileNameExtension
);
dump_particle_fields
(
outputFileName
,
main_cell
,
solution
,
0
);
}
/* Reset stuff */
for
(
int
i
=
0
;
i
<
125
;
++
i
)
{
for
(
int
n
=
0
;
n
<
cells
[
i
]
->
count
;
++
n
)
hydro_init_part
(
&
cells
[
i
]
->
parts
[
n
],
&
space
.
hs
);
}
}
/* Output timing */
...
...
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