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 23b5166482cf2476a41fa9befe1dfa6cc3222fa3
parent f4d4b9fc9a16ca69e05d11dece2aaeb96362e8fa
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 26 Jan 2017 16:20:44 +0100

Fix 2 parser tests

Take into account the required "primary" attrib on geometry entities.

Diffstat:
Msrc/parser/test_solparser6.c | 1+
Msrc/parser/yaml/test_ok_4.yaml | 4++++
2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/parser/test_solparser6.c b/src/parser/test_solparser6.c @@ -43,6 +43,7 @@ main(int argc, char** argv) fprintf(stream, "- sun: { dni: 1, spectrum: [{wavelength: 1, data: 1 }] }\n"); fprintf(stream, "- entity:\n"); fprintf(stream, " name: test\n"); + fprintf(stream, " primary: 0\n"); fprintf(stream, " geometry:\n"); fprintf(stream, " - sphere: { radius: 1 }\n"); fprintf(stream, " material: { ?virtual }\n"); diff --git a/src/parser/yaml/test_ok_4.yaml b/src/parser/yaml/test_ok_4.yaml @@ -5,6 +5,7 @@ - entity: name: "entity" + primary: 0 geometry: - material: *virtual sphere: { radius: 1 } @@ -12,6 +13,7 @@ - sun: { dni: 1, spectrum: [{wavelength: 1, data: 1}] } - entity: name: "entity" + primary: 0 geometry: - material: { virtual: "" } sphere: { radius: 1 } @@ -19,6 +21,7 @@ - sun: { dni: 1, spectrum: [{wavelength: 1, data: 1}] } - entity: name: "entity" + primary: 0 geometry: - material: { virtual: } sphere: { radius: 1 } @@ -26,6 +29,7 @@ - sun: { dni: 1, spectrum: [{wavelength: 1, data: 1}] } - entity: name: "entity" + primary: 0 geometry: - material: { ?virtual } sphere: { radius: 1 }