commit a2a98ab54f23541627c06da93f52bd68854d9a6f
parent 8fa91476e1c324465cfdcf0f5730d14fa598d7a7
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Wed, 7 Sep 2016 18:41:30 +0200
BugFix: wrong test on receiver name to output (or not)
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ssol_scene.c b/src/ssol_scene.c
@@ -343,7 +343,7 @@ hit_filter_function
}
/* Check if the hit surface is a receiver that registers hit data */
- if (str_is_empty(receiver_name)) {
+ if (!str_is_empty(receiver_name)) {
fprintf(rs->data.out_stream,
"Receiver '%s': %u %u %g %g (%g:%g:%g) (%g:%g:%g) (%g:%g)\n",
str_cget(receiver_name),
diff --git a/src/ssol_solver.c b/src/ssol_solver.c
@@ -408,7 +408,7 @@ receive_sunlight(struct realisation* rs)
} else {
receiver_name = &rs->start.instance->receiver_back;
}
- if(str_is_empty(receiver_name)) {
+ if(!str_is_empty(receiver_name)) {
/* normal orientation has already been checked */
fprintf(rs->data.out_stream,
"Receiver '%s': %u %u %g %g (%g:%g:%g) (%g:%g:%g) (%g:%g)\n",