solstice

Compute collected power and efficiencies of a solar plant
git clone git://git.meso-star.com/solstice.git
Log | Files | Refs | README | LICENSE

commit 153c919e3092e927f916b89df44a5dd5fb3cea89
parent 473e0755e8bccf7415e7c24716451a92bcbd5e38
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Fri, 13 Jan 2017 12:31:17 +0100

Change the pillbox aperture in yaml files from rad to deg

Diffstat:
Mdoc/input | 2+-
Msrc/parser/solparser.c | 3++-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/doc/input b/doc/input @@ -251,7 +251,7 @@ <pillbox> ::= pillbox: - aperture: REAL # in ]0, PI/2] + aperture: REAL # in ]0, 90] ---------------------------------------- <transform> ::= diff --git a/src/parser/solparser.c b/src/parser/solparser.c @@ -2715,7 +2715,8 @@ parse_pillbox goto error; } mask |= BIT(APERTURE); - res = parse_real(parser, val, nextafter(0, 1), PI/2.0, &sun->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);