commit 819a78f10eb24d79f8618f44f126a54be5c56986
parent b4e9df4aee776808108f8cbbeb382e25c8b89d52
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 8 Sep 2017 09:46:38 +0200
Fix coding style
Diffstat:
| M | src/test_ssol_utils.h | | | 78 | +++++++++++++++++++++++++++++++++++++++--------------------------------------- |
1 file changed, 39 insertions(+), 39 deletions(-)
diff --git a/src/test_ssol_utils.h b/src/test_ssol_utils.h
@@ -30,47 +30,47 @@ check_memory_allocator(struct mem_allocator* allocator)
}
}
-#define PRINT_GLOBAL(Mc) { \
- printf("Shadows = %g +/- %g; ", (Mc).shadowed.E, (Mc).shadowed.SE); \
- printf("Missing = %g +/- %g; ", (Mc).missing.E, (Mc).missing.SE); \
- printf("Receivers = %g +/- %g; ", \
- (Mc).absorbed_by_receivers.E, (Mc).absorbed_by_receivers.SE); \
- printf("Atmosphere = %g +/- %g; ", \
- (Mc).absorbed_by_atmosphere.E, (Mc).absorbed_by_atmosphere.SE); \
- printf("Other absorbed = %g +/- %g; ", \
- (Mc).other_absorbed.E, (Mc).other_absorbed.SE); \
- printf("Cos = %g +/- %g\n", (Mc).cos_factor.E, (Mc).cos_factor.SE); \
+#define PRINT_GLOBAL(Mc) { \
+ printf("Shadows = %g +/- %g; ", (Mc).shadowed.E, (Mc).shadowed.SE); \
+ printf("Missing = %g +/- %g; ", (Mc).missing.E, (Mc).missing.SE); \
+ printf("Receivers = %g +/- %g; ", \
+ (Mc).absorbed_by_receivers.E, (Mc).absorbed_by_receivers.SE); \
+ printf("Atmosphere = %g +/- %g; ", \
+ (Mc).absorbed_by_atmosphere.E, (Mc).absorbed_by_atmosphere.SE); \
+ printf("Other absorbed = %g +/- %g; ", \
+ (Mc).other_absorbed.E, (Mc).other_absorbed.SE); \
+ printf("Cos = %g +/- %g\n", (Mc).cos_factor.E, (Mc).cos_factor.SE); \
} (void)0
-#define PRINT_RCV(Rcv) { \
- printf("\tIncoming flux(target) = %g +/- %g \n", \
- (Rcv).incoming_flux.E, (Rcv).incoming_flux.SE); \
- printf("\tIncoming flux wo Atmosphere(target) = %g +/- %g (%.2g %%)\n", \
- (Rcv).incoming_if_no_atm_loss.E, (Rcv).incoming_if_no_atm_loss.SE, \
- 100 * (Rcv).incoming_if_no_atm_loss.E / (Rcv).incoming_flux.E); \
- printf("\tIncoming flux wo Field Loss(target) = %g +/- %g (%.2g %%)\n", \
- (Rcv).incoming_if_no_field_loss.E, (Rcv).incoming_if_no_field_loss.SE, \
- 100 * (Rcv).incoming_if_no_field_loss.E / (Rcv).incoming_flux.E); \
- printf("\tAtmospheric Loss on Incoming(target) = %g +/- %g (%.2g %%)\n", \
- (Rcv).incoming_lost_in_atmosphere.E, (Rcv).incoming_lost_in_atmosphere.SE,\
- 100 * (Rcv).incoming_lost_in_atmosphere.E / (Rcv).incoming_flux.E); \
- printf("\tOptical Field Loss(target) on Incoming = %g +/- %g (%.2g %%)\n", \
- (Rcv).incoming_lost_in_field.E, (Rcv).incoming_lost_in_field.SE, \
- 100 * (Rcv).incoming_lost_in_field.E / (Rcv).incoming_flux.E); \
- printf("\tAbsorbed flux(target) = %g +/- %g \n", \
- (Rcv).absorbed_flux.E, (Rcv).absorbed_flux.SE); \
- printf("\tAbsorbed flux wo Atmosphere(target) = %g +/- %g (%.2g %%)\n", \
- (Rcv).absorbed_if_no_atm_loss.E, (Rcv).absorbed_if_no_atm_loss.SE, \
- 100 * (Rcv).absorbed_if_no_atm_loss.E / (Rcv).absorbed_flux.E); \
- printf("\tAbsorbed flux wo Field Loss(target) = %g +/- %g (%.2g %%)\n", \
- (Rcv).absorbed_if_no_field_loss.E, (Rcv).absorbed_if_no_field_loss.SE, \
- 100 * (Rcv).absorbed_if_no_field_loss.E / (Rcv).absorbed_flux.E); \
- printf("\tAtmospheric Loss(target) on Absorbed = %g +/- %g (%.2g %%)\n", \
- (Rcv).absorbed_lost_in_atmosphere.E, (Rcv).absorbed_lost_in_atmosphere.SE,\
- 100 * (Rcv).absorbed_lost_in_atmosphere.E / (Rcv).absorbed_flux.E); \
- printf("\tOptical Field Loss(target) on Absorbed = %g +/- %g (%.2g %%)\n", \
- (Rcv).absorbed_lost_in_field.E, (Rcv).absorbed_lost_in_field.SE, \
- 100 * (Rcv).absorbed_lost_in_field.E / (Rcv).absorbed_flux.E); \
+#define PRINT_RCV(Rcv) { \
+ printf("\tIncoming flux(target) = %g +/- %g \n", \
+ (Rcv).incoming_flux.E, (Rcv).incoming_flux.SE); \
+ printf("\tIncoming flux wo Atmosphere(target) = %g +/- %g (%.2g %%)\n", \
+ (Rcv).incoming_if_no_atm_loss.E, (Rcv).incoming_if_no_atm_loss.SE, \
+ 100 * (Rcv).incoming_if_no_atm_loss.E / (Rcv).incoming_flux.E); \
+ printf("\tIncoming flux wo Field Loss(target) = %g +/- %g (%.2g %%)\n", \
+ (Rcv).incoming_if_no_field_loss.E, (Rcv).incoming_if_no_field_loss.SE, \
+ 100 * (Rcv).incoming_if_no_field_loss.E / (Rcv).incoming_flux.E); \
+ printf("\tAtmospheric Loss on Incoming(target) = %g +/- %g (%.2g %%)\n", \
+ (Rcv).incoming_lost_in_atmosphere.E, (Rcv).incoming_lost_in_atmosphere.SE, \
+ 100 * (Rcv).incoming_lost_in_atmosphere.E / (Rcv).incoming_flux.E); \
+ printf("\tOptical Field Loss(target) on Incoming = %g +/- %g (%.2g %%)\n", \
+ (Rcv).incoming_lost_in_field.E, (Rcv).incoming_lost_in_field.SE, \
+ 100 * (Rcv).incoming_lost_in_field.E / (Rcv).incoming_flux.E); \
+ printf("\tAbsorbed flux(target) = %g +/- %g \n", \
+ (Rcv).absorbed_flux.E, (Rcv).absorbed_flux.SE); \
+ printf("\tAbsorbed flux wo Atmosphere(target) = %g +/- %g (%.2g %%)\n", \
+ (Rcv).absorbed_if_no_atm_loss.E, (Rcv).absorbed_if_no_atm_loss.SE, \
+ 100 * (Rcv).absorbed_if_no_atm_loss.E / (Rcv).absorbed_flux.E); \
+ printf("\tAbsorbed flux wo Field Loss(target) = %g +/- %g (%.2g %%)\n", \
+ (Rcv).absorbed_if_no_field_loss.E, (Rcv).absorbed_if_no_field_loss.SE, \
+ 100 * (Rcv).absorbed_if_no_field_loss.E / (Rcv).absorbed_flux.E); \
+ printf("\tAtmospheric Loss(target) on Absorbed = %g +/- %g (%.2g %%)\n", \
+ (Rcv).absorbed_lost_in_atmosphere.E, (Rcv).absorbed_lost_in_atmosphere.SE, \
+ 100 * (Rcv).absorbed_lost_in_atmosphere.E / (Rcv).absorbed_flux.E); \
+ printf("\tOptical Field Loss(target) on Absorbed = %g +/- %g (%.2g %%)\n", \
+ (Rcv).absorbed_lost_in_field.E, (Rcv).absorbed_lost_in_field.SE, \
+ 100 * (Rcv).absorbed_lost_in_field.E / (Rcv).absorbed_flux.E); \
} (void)0
#endif /* TEST_SSOL_UTILS_H */