Commit 6cf08806 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Formatting

parent 12e72e73
......@@ -23,10 +23,7 @@
#ifndef HAVE_FFTW
int main() {
return 0;
}
int main() { return 0; }
#else
......
......@@ -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;
......
......@@ -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;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment