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
f8b5a684
Commit
f8b5a684
authored
Aug 09, 2016
by
Matthieu Schaller
Browse files
Make the test125cells unit test robust to the change in dimensionality
parent
0409f121
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test125cells.c
View file @
f8b5a684
...
...
@@ -448,7 +448,7 @@ int main(int argc, char *argv[]) {
message
(
"Hydro implementation: %s"
,
SPH_IMPLEMENTATION
);
message
(
"Smoothing length: h = %f"
,
h
*
size
);
message
(
"Kernel: %s"
,
kernel_name
);
message
(
"Neighbour target: N = %f"
,
h
*
h
*
h
*
kernel_norm
);
message
(
"Neighbour target: N = %f"
,
pow_dimension
(
h
)
*
kernel_norm
);
message
(
"Density target: rho = %f"
,
rho
);
message
(
"div_v target: div = %f"
,
vel
==
2
?
3
.
f
:
0
.
f
);
message
(
"curl_v target: curl = [0., 0., %f]"
,
vel
==
3
?
-
2
.
f
:
0
.
f
);
...
...
@@ -461,6 +461,11 @@ int main(int argc, char *argv[]) {
printf
(
"
\n
"
);
#if !defined(HYDRO_DIMENSION_3D)
message
(
"test125cells only useful in 3D. Change parameters in const.h !"
);
return
1
;
#endif
/* Build the infrastructure */
struct
space
space
;
space
.
periodic
=
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