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
c7307172
Commit
c7307172
authored
Jul 10, 2017
by
Matthieu Schaller
Browse files
Also initalise the hydro_properties->eta_neighbours value in the test27 and test125 examples.
parent
c812010e
Changes
5
Hide whitespace changes
Inline
Side-by-side
tests/test125cells.c
View file @
c7307172
...
...
@@ -549,6 +549,7 @@ int main(int argc, char *argv[]) {
prog_const
.
const_newton_G
=
1
.
f
;
struct
hydro_props
hp
;
hp
.
eta_neighbours
=
h
;
hp
.
h_tolerance
=
1e0
;
hp
.
h_max
=
FLT_MAX
;
hp
.
max_smoothing_iterations
=
1
;
...
...
tests/test27cells.c
View file @
c7307172
...
...
@@ -396,7 +396,11 @@ int main(int argc, char *argv[]) {
space
.
dim
[
2
]
=
3
.;
struct
hydro_props
hp
;
hp
.
eta_neighbours
=
h
;
hp
.
h_tolerance
=
1e0
;
hp
.
h_max
=
FLT_MAX
;
hp
.
max_smoothing_iterations
=
1
;
hp
.
CFL_condition
=
0
.
1
;
struct
engine
engine
;
engine
.
s
=
&
space
;
...
...
tests/tolerance_27_normal.dat
View file @
c7307172
# ID pos_x pos_y pos_z v_x v_y v_z rho rho_dh wcount wcount_dh div_v curl_vx curl_vy curl_vz
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 2e-6 4e-5
3
e-4 1e-2 1e-5 6e-6 6e-6 6e-6
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1.2e-4 1e-4
1
e-4 2e-4 1e-4 1e-4 1e-4
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 2e-6 4e-5
4
e-4 1e-2 1e-5 6e-6 6e-6 6e-6
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1.2e-4 1e-4
2
e-4 2e-4 1e-4 1e-4 1e-4
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6
tests/tolerance_27_perturbed.dat
View file @
c7307172
# ID pos_x pos_y pos_z v_x v_y v_z rho rho_dh wcount wcount_dh div_v curl_vx curl_vy curl_vz
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 2e-6 1e-4 2e-4 1e-2 1e-5 3e-6 3e-6 7e-6
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 2e-3 1e-5
1
e-3 6e-5 2e-3 2e-3 2e-3
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 2e-3 1e-5
2
e-3 6e-5 2e-3 2e-3 2e-3
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 4e-4 1e-6 1e0 1e-6 2e-6 2e-6 2e-6
tests/tolerance_27_perturbed_h.dat
View file @
c7307172
# ID pos_x pos_y pos_z v_x v_y v_z rho rho_dh wcount wcount_dh div_v curl_vx curl_vy curl_vz
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 2e-6 1e-4
4
e-4 1.2e-2 1e-5 3e-6 3e-6 7e-6
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1.4e-2 1e-5
1
e-3 2.5e-4 3e-3 3e-3 3e-3
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 2e-6 1e-4
5
e-4 1.2e-2 1e-5 3e-6 3e-6 7e-6
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1.4e-2 1e-5
2
e-3 2.5e-4 3e-3 3e-3 3e-3
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e0 1e-6 4e-6 4e-6 4e-6
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