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
6cf08806
Commit
6cf08806
authored
Aug 03, 2016
by
Matthieu Schaller
Browse files
Formatting
parent
12e72e73
Changes
3
Hide whitespace changes
Inline
Side-by-side
tests/testFFT.c
View file @
6cf08806
...
...
@@ -23,10 +23,7 @@
#ifndef HAVE_FFTW
int
main
()
{
return
0
;
}
int
main
()
{
return
0
;
}
#else
...
...
tests/testKernelGrav.c
View file @
6cf08806
...
...
@@ -77,7 +77,7 @@ int main() {
if
(
fabsf
(
gadget_w
-
swift_w
)
>
2e-7
)
{
printf
(
"%2d: r= %f h= %f u= %f Wg(r,h)= %f Ws(r,h)= %f
\n
"
,
k
,
r
,
h
,
u
,
gadget_w
,
swift_w
);
gadget_w
,
swift_w
);
printf
(
"Invalid value ! Gadget= %e, SWIFT= %e
\n
"
,
gadget_w
,
swift_w
);
return
1
;
...
...
@@ -102,8 +102,8 @@ int main() {
if
(
fabsf
(
gadget_w
-
swift_w
)
>
2e-7
)
{
printf
(
"%2d: r= %f r_lr= %f u= %f Ws(r)= %f Wg(r)= %f
\n
"
,
k
,
r
,
a_smooth
,
u
,
swift_w
,
gadget_w
);
printf
(
"%2d: r= %f r_lr= %f u= %f Ws(r)= %f Wg(r)= %f
\n
"
,
k
,
r
,
a_smooth
,
u
,
swift_w
,
gadget_w
);
printf
(
"Invalid value ! Gadget= %e, SWIFT= %e
\n
"
,
gadget_w
,
swift_w
);
return
1
;
...
...
tests/testMaths.c
View file @
6cf08806
...
...
@@ -59,9 +59,9 @@ int main() {
error
=
1
;
}
if
(
error
)
{
if
(
error
)
{
printf
(
"%2d: x= %f exp(x)= %e approx_exp(x)=%e abs=%e rel=%e
\n
"
,
i
,
x
,
exp_correct
,
exp_approx
,
abs
,
rel
);
exp_correct
,
exp_approx
,
abs
,
rel
);
return
1
;
}
}
...
...
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