commit 0e3e47a37dad5bb7493a08e71d8d89303dcb8c4b
parent fe3a3d85dd1318ccdd7767f3dc2449d7a21ddd90
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 19 Jul 2017 17:59:15 +0200
Fix the output of the solstice -g mode
With several sun directions, the output angles were always the angles of
the first submitted direction.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/solstice.c b/src/solstice.c
@@ -741,8 +741,9 @@ solstice_run(struct solstice* solstice)
} else {
FOR_EACH(i, 0, nsun_dirs) {
const double* sun_dir = sun_dirs + i*3/*#dims*/;
+ const double* sun_angle = sun_angles + i*2/*#angles*/;
fprintf(solstice->output, "#--- Sun direction: %g %g (%g %g %g)\n",
- SPLIT2(sun_angles), SPLIT3(sun_dir));
+ SPLIT2(sun_angle), SPLIT3(sun_dir));
res = solstice_update_entities(solstice, sun_dir);
if(res != RES_OK) goto error;