commit f4d4b9fc9a16ca69e05d11dece2aaeb96362e8fa
parent dfd964a5bf5872c914fd5da8b5cb59bc8192c79e
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 26 Jan 2017 16:17:27 +0100
Keep the parsed pillbox aperture in degrees
Diffstat:
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/parser/solparser.c b/src/parser/solparser.c
@@ -2946,7 +2946,6 @@ parse_pillbox
}
mask |= BIT(APERTURE);
res = parse_real(parser, val, nextafter(0, 1), 90, &sun->aperture);
- sun->aperture = MDEG2RAD(sun->aperture);
} else {
log_err(parser, pillbox, "unknown pillbox parameter `%s'.\n",
key->data.scalar.value);
diff --git a/src/solstice_sun.c b/src/solstice_sun.c
@@ -105,7 +105,7 @@ create_sun_pillbox
}
res = ssol_sun_set_pillbox_aperture
- (sun, solparser_sun->radang_distrib.pillbox.aperture);
+ (sun, MDEG2RAD(solparser_sun->radang_distrib.pillbox.aperture));
if(res != RES_OK) {
fprintf(stderr, "Could not setup the aperture of the solver pillbox sun.\n");
goto error;