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 aa07d446218975dbb9241e7330794d959868f6e2
parent e0f5c6ce3778a29d5f8a40ece704e91a0a4d5afa
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 18 Jan 2017 14:11:36 +0100

Fix the un-managed anchors hash table

Diffstat:
Msrc/solstice.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/solstice.c b/src/solstice.c @@ -263,6 +263,7 @@ solstice_init memset(solstice, 0, sizeof(struct solstice)); htable_material_init(allocator, &solstice->materials); htable_object_init(allocator, &solstice->objects); + htable_anchor_init(allocator, &solstice->anchors); darray_nodes_init(allocator, &solstice->roots); darray_nodes_init(allocator, &solstice->pivots); darray_double_init(allocator, &solstice->sun_dirs); @@ -336,6 +337,7 @@ solstice_release(struct solstice* solstice) if(solstice->output && solstice->output != stdout) fclose(solstice->output); htable_material_release(&solstice->materials); htable_object_release(&solstice->objects); + htable_anchor_release(&solstice->anchors); darray_nodes_release(&solstice->roots); darray_nodes_release(&solstice->pivots); darray_double_release(&solstice->sun_dirs);