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 279eb7e28144ca978f8563ca463dea85a0454c4d
parent ef8ff2b0190c23b9e26794958241fb7a1fb82a4f
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Fri,  2 Dec 2016 15:13:44 +0100

Fix example according to new callback types.

Diffstat:
Msrc/core/test_core_utils.c | 9++++++---
Msrc/core/test_core_utils.h | 4++++
2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/core/test_core_utils.c b/src/core/test_core_utils.c @@ -83,6 +83,7 @@ get_polygon_vertices(const size_t ivert, double position[2], void* ctx) void get_shader_normal (struct ssol_device* dev, + struct ssol_param_buffer* buf, const double wavelength, const double P[3], const double Ng[3], @@ -92,13 +93,14 @@ get_shader_normal double* val) { int i; - (void) dev, (void) wavelength, (void) P, (void) Ng, (void) uv, (void) w; + (void)dev, (void)buf, (void)wavelength, (void)P, (void)Ng, (void)uv, (void)w; FOR_EACH(i, 0, 3) val[i] = Ns[i]; } void get_shader_reflectivity (struct ssol_device* dev, + struct ssol_param_buffer* buf, const double wavelength, const double P[3], const double Ng[3], @@ -107,13 +109,14 @@ get_shader_reflectivity const double w[3], double* val) { - (void) dev, (void) wavelength, (void) P, (void) Ng, (void) Ns, (void) uv, (void) w; + (void)dev, (void)buf, (void)wavelength, (void)P, (void)Ng, (void)Ns, (void)uv, (void)w; *val = 1; } void get_shader_roughness (struct ssol_device* dev, + struct ssol_param_buffer* buf, const double wavelength, const double P[3], const double Ng[3], @@ -122,7 +125,7 @@ get_shader_roughness const double w[3], double* val) { - (void) dev, (void) wavelength, (void) P, (void) Ng, (void) Ns, (void) uv, (void) w; + (void)dev, (void)buf, (void)wavelength, (void)P, (void)Ng, (void)Ns, (void)uv, (void)w; *val = 0; } diff --git a/src/core/test_core_utils.h b/src/core/test_core_utils.h @@ -23,6 +23,7 @@ struct mem_allocator; struct ssol_device; +struct ssol_param_buffer; /******************************************************************************* * Utilities @@ -59,6 +60,7 @@ get_polygon_vertices(const size_t ivert, double position[2], void* ctx); void get_shader_normal (struct ssol_device* dev, + struct ssol_param_buffer* buf, const double wavelength, const double P[3], const double Ng[3], @@ -70,6 +72,7 @@ get_shader_normal void get_shader_reflectivity (struct ssol_device* dev, + struct ssol_param_buffer* buf, const double wavelength, const double P[3], const double Ng[3], @@ -81,6 +84,7 @@ get_shader_reflectivity void get_shader_roughness (struct ssol_device* dev, + struct ssol_param_buffer* buf, const double wavelength, const double P[3], const double Ng[3],