schiff

Estimate the radiative properties of soft particless
git clone git://git.meso-star.com/schiff.git
Log | Files | Refs | README | LICENSE

commit d3a1ea70442dcc3fd74c3c82873263ba943e9692
parent 68e6e76a5e7bee22cb5f4046a95a5ffd036f309b
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 23 Mar 2016 12:03:56 +0100

Fix a misspelling on the characteristic length variables

Diffstat:
Msrc/schiff.c | 2+-
Msrc/schiff_args.c | 8++++----
Msrc/schiff_args.h | 2+-
Msrc/schiff_geometry.c | 4++--
Msrc/schiff_geometry.h | 2+-
5 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/schiff.c b/src/schiff.c @@ -238,7 +238,7 @@ run(const struct schiff_args* args) } res = schiff_geometry_distribution_init(&distrib, args->geoms, - sa_size(args->geoms), args->caracteristic_length, args->ran_geoms, + sa_size(args->geoms), args->characteristic_length, args->ran_geoms, args->properties); if(res != RES_OK) { fprintf(stderr, diff --git a/src/schiff_args.c b/src/schiff_args.c @@ -1116,8 +1116,8 @@ schiff_args_init res = parse_yaml(optarg, &args->geoms, &args->ran_geoms); break; case 'l': - res = cstr_to_double(optarg, &args->caracteristic_length); - if(res == RES_OK && args->caracteristic_length <= 0.0) + res = cstr_to_double(optarg, &args->characteristic_length); + if(res == RES_OK && args->characteristic_length <= 0.0) res = RES_BAD_ARG; break; case 'n': @@ -1157,9 +1157,9 @@ schiff_args_init goto error; } - if(args->caracteristic_length < 0.0) { + if(args->characteristic_length < 0.0) { fprintf(stderr, -"%s: missing the caracteristic length.\nTry '%s -h' for more informations\n", +"%s: missing the characteristic length.\nTry '%s -h' for more informations\n", argv[0], argv[0]); res = RES_BAD_ARG; goto error; diff --git a/src/schiff_args.h b/src/schiff_args.h @@ -25,7 +25,7 @@ struct schiff_args { struct schiff_optical_properties* properties; /* List of properties */ double* wavelengths; /* List of wavelengths to integrate */ - double caracteristic_length; /* Caracteristic length of the soft particles */ + double characteristic_length; /* Characteristic length of the soft particles */ /* List of parsed geometry distribution parameters and its associated random * variate */ diff --git a/src/schiff_geometry.c b/src/schiff_geometry.c @@ -505,7 +505,7 @@ schiff_geometry_distribution_init (struct sschiff_geometry_distribution* distrib, const struct schiff_geometry* geoms, const size_t ngeoms, - const double caracteristic_length, + const double characteristic_length, struct ssp_ran_discrete* ran_geoms, struct schiff_optical_properties* properties) { @@ -579,7 +579,7 @@ schiff_geometry_distribution_init distrib->material.get_property = get_material_property; distrib->material.material = properties; distrib->sample = geometry_sample; - distrib->caracteristic_length = caracteristic_length; + distrib->characteristic_length = characteristic_length; exit: return res; diff --git a/src/schiff_geometry.h b/src/schiff_geometry.h @@ -134,7 +134,7 @@ schiff_geometry_distribution_init (struct sschiff_geometry_distribution* distrib, const struct schiff_geometry* geometry, const size_t ngeoms, - const double caracteristic_length, + const double characteristic_length, struct ssp_ran_discrete* ran_geoms, struct schiff_optical_properties* properties);