star-schiff

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

commit 60c23cce2e3d1a847cd65fec2f08e1ec3fbf9e7a
parent e7bc965790eabc4fcc1fa31c6d260b70740e75c6
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 24 Feb 2016 10:08:49 +0100

Update the parameters of the estimator tests

Diffstat:
Msrc/test_sschiff_estimator_cylinder.c | 6+++---
Msrc/test_sschiff_estimator_sphere.c | 6+++---
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/test_sschiff_estimator_cylinder.c b/src/test_sschiff_estimator_cylinder.c @@ -554,7 +554,7 @@ main(int argc, char** argv) }; const size_t nx = sizeof(x)/sizeof(double); const size_t nscatt_angles = 1000; - const size_t ngeoms = 10000; + const size_t ngeoms = 1000; const size_t ndirs = 100; size_t i; (void)argc, (void)argv; @@ -563,11 +563,11 @@ main(int argc, char** argv) CHECK(ssp_rng_create(&allocator, &ssp_rng_threefry, &rng), RES_OK); CHECK(sschiff_device_create - (NULL, &allocator, SSCHIFF_NTHREADS_DEFAULT, 0, NULL, &dev), RES_OK); + (NULL, &allocator, SSCHIFF_NTHREADS_DEFAULT, 1, NULL, &dev), RES_OK); cylinder_init(&sampler_ctx.geometry, 64); - FOR_EACH(i, 10, nx) { + FOR_EACH(i, 0, nx) { const double wavelength = 0.6; /* In micron */ struct sschiff_cross_section cross_section; double interval[2]; diff --git a/src/test_sschiff_estimator_sphere.c b/src/test_sschiff_estimator_sphere.c @@ -241,8 +241,8 @@ check_schiff_estimation struct time t0, t1; size_t i; - const size_t nscatt_angles = 3; - const size_t ngeoms = 100; + const size_t nscatt_angles = 1000; + const size_t ngeoms = 1000; const size_t ndirs = 100; const double wavelength = sampler_ctx->wavelength; @@ -345,7 +345,7 @@ main(int argc, char** argv) CHECK(ssp_rng_create(&allocator, &ssp_rng_threefry, &rng), RES_OK); CHECK(sschiff_device_create - (NULL, &allocator, SSCHIFF_NTHREADS_DEFAULT, 0, NULL, &dev), RES_OK); + (NULL, &allocator, SSCHIFF_NTHREADS_DEFAULT, 1, NULL, &dev), RES_OK); sphere_init(&sampler_ctx.geometry, 64);