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 55f0406d0bf9cf55b9f40ba53bfe2903c3fb3465
parent 5c6bd66c4a17699b1a99a76722262791cb992182
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Mon, 13 Mar 2017 18:09:16 +0100

BugFix: integrated absorbed irradiance was not compared on tests.

Diffstat:
Msrc/test_solstice_simulation.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/test_solstice_simulation.c b/src/test_solstice_simulation.c @@ -138,7 +138,8 @@ enum side { }; enum result_type { - FRONT_INTEGRATED_ABSORBED_IRRADIANCE, + FIRST_RESULT, + FRONT_INTEGRATED_ABSORBED_IRRADIANCE = FIRST_RESULT, FRONT_INTEGRATED_IRRADIANCE, FRONT_REFLECTIVITY_LOSS, FRONT_ABSORPTIVITY_LOSS, @@ -285,7 +286,7 @@ check_1_receiver read_recv(line, test_rcv_name, test_E, test_SE); if(strcmp(rcv_name, test_rcv_name)) continue; - FOR_EACH(r, FRONT_INTEGRATED_IRRADIANCE, MAX_RESULTS_COUNT__) { + FOR_EACH(r, FIRST_RESULT, MAX_RESULTS_COUNT__) { CHECK(is_compatible_with (reference_E[r], reference_SE[r], test_E[r], test_SE[r]), 1); }