star-schiff

Library for estimating radiative properties
git clone git://git.meso-star.com/star-schiff.git
Log | Files | Refs | README | LICENSE

commit d4e64096f5e6e2162276485537c878078c202833
parent 7f5efedb7a96d64bb5fc90829fb4c42386d3e269
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 23 Mar 2016 11:57:51 +0100

Fix misspelling on the characteristic length variable

Diffstat:
Msrc/sschiff.h | 2+-
Msrc/sschiff_estimator.c | 4++--
Msrc/test_sschiff_estimator_cylinder.c | 2+-
Msrc/test_sschiff_estimator_rhodo.c | 2+-
Msrc/test_sschiff_estimator_sphere.c | 4++--
5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/sschiff.h b/src/sschiff.h @@ -68,7 +68,7 @@ static const struct sschiff_material SSCHIFF_NULL_MATERIAL = { NULL, NULL }; * micron, i.e. 1.0f == 1 micron */ struct sschiff_geometry_distribution { struct sschiff_material material; /* Material of the geometry distribution */ - double caracteristic_length; + double characteristic_length; res_T (*sample) /* Sample a geometry i.e. a shape and its material */ (struct ssp_rng* rng, struct s3d_shape* shape, /* Sampled shape */ diff --git a/src/sschiff_estimator.c b/src/sschiff_estimator.c @@ -1026,7 +1026,7 @@ static char check_distribution(struct sschiff_geometry_distribution* distrib) { ASSERT(distrib); - return distrib->sample != NULL && distrib->caracteristic_length > 0; + return distrib->sample != NULL && distrib->characteristic_length > 0; } static void @@ -1317,7 +1317,7 @@ estimator_create RESIZE(estimator->properties, nwavelengths, "Couldn't allocate the per wavelength optical properties.\n"); - rcp_PI_Lc = 1.0 / (PI*distrib->caracteristic_length); + rcp_PI_Lc = 1.0 / (PI*distrib->characteristic_length); FOR_EACH(i, 0, nwavelengths) { double lambda_e, theta_l; double* angle; diff --git a/src/test_sschiff_estimator_cylinder.c b/src/test_sschiff_estimator_cylinder.c @@ -429,7 +429,7 @@ main(int argc, char** argv) sampler_ctx.mean_radius = (x[i] * 0.450) / (2*PI); sampler_ctx.sigma = 1.18; - distrib.caracteristic_length = sampler_ctx.mean_radius; + distrib.characteristic_length = sampler_ctx.mean_radius; distrib.material.get_property = get_material_property; distrib.material.material = &sampler_ctx; distrib.sample = sample_cylinder; diff --git a/src/test_sschiff_estimator_rhodo.c b/src/test_sschiff_estimator_rhodo.c @@ -613,7 +613,7 @@ main(int argc, char** argv) sampler_ctx.mean_radius = 0.983; sampler_ctx.sigma = 1.1374; - distrib.caracteristic_length = 0.382; + distrib.characteristic_length = 0.382; distrib.material.get_property = get_material_property; distrib.material.material = &sampler_ctx; distrib.sample = sample_cylinder; diff --git a/src/test_sschiff_estimator_sphere.c b/src/test_sschiff_estimator_sphere.c @@ -117,7 +117,7 @@ check_schiff_estimation double dst; sampler_ctx->mean_radius = results[i].mean_radius; - distrib.caracteristic_length = sampler_ctx->mean_radius * 2.0; + distrib.characteristic_length = sampler_ctx->mean_radius * 2.0; time_current(&t0); CHECK(sschiff_integrate(dev, rng, &distrib, &wavelength, 1, @@ -211,7 +211,7 @@ main(int argc, char** argv) distrib.material.get_property = get_material_property; distrib.material.material = &sampler_ctx; - distrib.caracteristic_length = 1; + distrib.characteristic_length = 1; distrib.sample = sample_sphere; distrib.context = &sampler_ctx;