rnsf

Define and load a phase function data format
git clone git://git.meso-star.fr/rnsf.git
Log | Files | Refs | README | LICENSE

commit c6c4d0529c617d7c136e084879edde1a68aba176
parent ed36ba240667c115450705aac062cf43a6b3a319
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 22 Jun 2022 09:01:44 +0200

Update the loading test of the phase function per band

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

diff --git a/src/test_rnsf_bands.c b/src/test_rnsf_bands.c @@ -87,7 +87,7 @@ test_load2(struct rnsf* rnsf) fprintf(fp, " %.9g 0.3\n", PI/2.0); fprintf(fp, " %.9g 0.3\n", 3*PI/4.0); fprintf(fp, " PI 0.3\n"); - fprintf(fp, "900 1000 hg -0.1\n"); + fprintf(fp, "900 900 hg -0.1\n"); rewind(fp); CHK(rnsf_load_stream(rnsf, fp, NULL) == RES_OK); @@ -135,7 +135,7 @@ test_load2(struct rnsf* rnsf) CHK(phase = rnsf_get_phase_fn(rnsf, 4)); CHK(rnsf_phase_fn_get_type(phase) == RNSF_PHASE_FN_HG); CHK(rnsf_phase_fn_get_hg(phase, &hg) == RES_OK); - CHK(hg.wavelengths[0] == 900 && hg.wavelengths[1] == 1000); + CHK(hg.wavelengths[0] == 900 && hg.wavelengths[1] == 900); CHK(hg.g == -0.1); CHK(fclose(fp) == 0);