Skip to content
GitLab
Menu
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
eb7d9dc2
Commit
eb7d9dc2
authored
Apr 27, 2017
by
Matthieu Schaller
Browse files
Updated test27cells to pass the tests. Updated testVoronoi2D to be less verbose.
parent
fd900519
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/test27cells.c
View file @
eb7d9dc2
...
...
@@ -404,11 +404,15 @@ int main(int argc, char *argv[]) {
space
.
dim
[
1
]
=
3
.;
space
.
dim
[
2
]
=
3
.;
struct
hydro_props
hp
;
hp
.
h_max
=
FLT_MAX
;
struct
engine
engine
;
engine
.
s
=
&
space
;
engine
.
time
=
0
.
1
f
;
engine
.
ti_current
=
8
;
engine
.
max_active_bin
=
num_time_bins
;
engine
.
hydro_properties
=
&
hp
;
struct
runner
runner
;
runner
.
e
=
&
engine
;
...
...
tests/testVoronoi2D.c
View file @
eb7d9dc2
...
...
@@ -107,8 +107,10 @@ int main() {
Atot
=
0
.
0
f
;
/* print the cells to the stdout */
for
(
i
=
0
;
i
<
TESTVORONOI2D_NUMCELL
;
++
i
)
{
#ifdef VORONOI_VERBOSE
printf
(
"Cell %i:
\n
"
,
i
);
voronoi_print_cell
(
&
cells
[
i
]);
#endif
voronoi_cell_finalize
(
&
cells
[
i
]);
Atot
+=
cells
[
i
].
volume
;
}
...
...
@@ -185,8 +187,10 @@ int main() {
Atot
=
0
.
0
f
;
/* print the cells to the stdout */
for
(
i
=
0
;
i
<
100
;
++
i
)
{
#ifdef VORONOI_VERBOSE
printf
(
"Cell %i:
\n
"
,
i
);
voronoi_print_cell
(
&
cells
[
i
]);
#endif
voronoi_cell_finalize
(
&
cells
[
i
]);
Atot
+=
cells
[
i
].
volume
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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