commit 229be95364ab5d6b9766c89b0e5ef0fde1876047 parent a42461fd0e24dbe31e1e396032321123f6464af2 Author: Christophe Coustet <christophe.coustet@meso-star.com> Date: Wed, 15 Apr 2026 16:38:36 +0200 Update Copyright notice Diffstat:
74 files changed, 92 insertions(+), 92 deletions(-)
diff --git a/README.md b/README.md @@ -45,7 +45,7 @@ state. ### Version 0.7.3 -- Update the version of the RSys and StarSP dependencies. +- Update the version of the RSys and StarSP dependencies. - Fix a compilation warning with GCC7 and above. ### Version 0.7.2 @@ -136,7 +136,7 @@ Fix the creation of a glossy BSDF that uses a pillbox microfacet distribution. ## License -Copyright (C) 2018, 2019, 2021 |Meso|Star> (<contact@meso-star.com>). +Copyright (C) 2018-2026 |Meso|Star> (<contact@meso-star.com>). Copyright (C) 2016, 2018 CNRS. Solstice-Solver is free software released under the GPL v3+ license: GNU GPL diff --git a/src/ssol.h b/src/ssol.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_atmosphere.c b/src/ssol_atmosphere.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_atmosphere_c.h b/src/ssol_atmosphere_c.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_c.h b/src/ssol_c.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_camera.c b/src/ssol_camera.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_camera.h b/src/ssol_camera.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_data.c b/src/ssol_data.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_device.c b/src/ssol_device.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_device_c.h b/src/ssol_device_c.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_draw.c b/src/ssol_draw.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_draw.h b/src/ssol_draw.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_draw_draft.c b/src/ssol_draw_draft.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_draw_pt.c b/src/ssol_draw_pt.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_estimator.c b/src/ssol_estimator.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_estimator_c.h b/src/ssol_estimator_c.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_image.c b/src/ssol_image.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_image_c.h b/src/ssol_image_c.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_instance.c b/src/ssol_instance.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_instance_c.h b/src/ssol_instance_c.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_material.c b/src/ssol_material.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_material_c.h b/src/ssol_material_c.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_mc_receiver.c b/src/ssol_mc_receiver.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_object.c b/src/ssol_object.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_object_c.h b/src/ssol_object_c.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_param_buffer.c b/src/ssol_param_buffer.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_ranst_sun_dir.c b/src/ssol_ranst_sun_dir.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_ranst_sun_dir.h b/src/ssol_ranst_sun_dir.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_ranst_sun_wl.c b/src/ssol_ranst_sun_wl.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_ranst_sun_wl.h b/src/ssol_ranst_sun_wl.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_scene.c b/src/ssol_scene.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify @@ -475,7 +475,7 @@ hit_filter_function switch(sshape->shape->type) { case SHAPE_MESH: if(hit->distance <= 1.e-6 /* FIXME hack */ - || hit->distance <= rangef[0] + || hit->distance <= rangef[0] || S3D_PRIMITIVE_EQ(&hit->prim, &rdata->prim_from)) { /* Discard self intersection for mesh, i.e. when the intersected * primitive is the primitive from which the ray starts */ diff --git a/src/ssol_scene_c.h b/src/ssol_scene_c.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_shape.c b/src/ssol_shape.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_shape_c.h b/src/ssol_shape_c.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_solver.c b/src/ssol_solver.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_spectrum.c b/src/ssol_spectrum.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_spectrum_c.h b/src/ssol_spectrum_c.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/ssol_sun.c b/src/ssol_sun.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify @@ -255,7 +255,7 @@ sun_create_wavelength_distribution (struct ssol_sun* sun, struct ranst_sun_wl** out_ran_wl) { struct ranst_sun_wl* ran_wl = NULL; - res_T res = RES_OK; + res_T res = RES_OK; ASSERT(sun && out_ran_wl); res = ranst_sun_wl_create(sun->dev->allocator, &ran_wl); diff --git a/src/ssol_sun_c.h b/src/ssol_sun_c.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify @@ -32,7 +32,7 @@ enum sun_type { SUN_TYPES_COUNT__ }; -struct pillbox { +struct pillbox { double half_angle; }; diff --git a/src/test_ssol_atmosphere.c b/src/test_ssol_atmosphere.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify @@ -72,7 +72,7 @@ main(int argc, char** argv) CHK(ssol_atmosphere_set_extinction(atm, &extinction) == RES_BAD_ARG); CHK(ssol_spectrum_setup(spectrum, get_wlen, 3, NULL) == RES_OK); CHK(ssol_atmosphere_set_extinction(atm, &extinction2) == RES_BAD_ARG); - + CHK(ssol_spectrum_ref_put(extinction2.value.spectrum) == RES_OK); CHK(ssol_device_ref_put(dev) == RES_OK); CHK(ssol_atmosphere_ref_put(atm) == RES_OK); diff --git a/src/test_ssol_by_receiver_integration.c b/src/test_ssol_by_receiver_integration.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_camera.c b/src/test_ssol_camera.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_circ2D_geometry.h b/src/test_ssol_circ2D_geometry.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_cube_geometry.h b/src/test_ssol_cube_geometry.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_data.c b/src/test_ssol_data.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_device.c b/src/test_ssol_device.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_draw.c b/src/test_ssol_draw.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_geometries.h b/src/test_ssol_geometries.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_image.c b/src/test_ssol_image.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_instance.c b/src/test_ssol_instance.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_material.c b/src/test_ssol_material.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify @@ -55,7 +55,7 @@ test_mirror(struct ssol_device* dev) == RES_BAD_ARG); CHK(ssol_mirror_setup(NULL, &mirror, SSOL_MICROFACET_DISTRIBUTIONS_COUNT__) == RES_BAD_ARG); - CHK(ssol_mirror_setup(material, &mirror, SSOL_MICROFACET_DISTRIBUTIONS_COUNT__) + CHK(ssol_mirror_setup(material, &mirror, SSOL_MICROFACET_DISTRIBUTIONS_COUNT__) == RES_BAD_ARG); CHK(ssol_mirror_setup(NULL, NULL, SSOL_MICROFACET_BECKMANN) == RES_BAD_ARG); CHK(ssol_mirror_setup(material, NULL, SSOL_MICROFACET_BECKMANN) == RES_BAD_ARG); @@ -68,7 +68,7 @@ test_mirror(struct ssol_device* dev) CHK(ssol_material_set_param_buffer(material, pbuf) == RES_OK); mirror.normal = NULL; - CHK(ssol_mirror_setup(material, &mirror, SSOL_MICROFACET_BECKMANN) + CHK(ssol_mirror_setup(material, &mirror, SSOL_MICROFACET_BECKMANN) == RES_BAD_ARG); mirror.normal = get_shader_normal; diff --git a/src/test_ssol_materials.h b/src/test_ssol_materials.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify @@ -46,7 +46,7 @@ get_shader_reflectivity *val = 1; } -#ifdef REFLECTIVITY +#ifdef REFLECTIVITY static INLINE void get_shader_reflectivity_2 (struct ssol_device* dev, diff --git a/src/test_ssol_object.c b/src/test_ssol_object.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_param_buffer.c b/src/test_ssol_param_buffer.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_rect2D_geometry.h b/src/test_ssol_rect2D_geometry.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_rect_geometry.h b/src/test_ssol_rect_geometry.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_scene.c b/src/test_ssol_scene.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify @@ -235,7 +235,7 @@ main(int argc, char** argv) CHK(lower[0] > upper[0]); CHK(lower[1] > upper[1]); CHK(lower[2] > upper[2]); - + CHK(ssol_scene_attach_instance(scene, instance) == RES_OK); CHK(ssol_scene_compute_aabb(scene, lower, upper) == RES_OK); CHK(f3_eq_eps(lower, f3(tmp, 265.f, 247.f, 0.f), 1.e-6f) == 1); diff --git a/src/test_ssol_shape.c b/src/test_ssol_shape.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify @@ -152,7 +152,7 @@ main(int argc, char** argv) CHK(ssol_shape_create_punched_surface(dev, NULL) == RES_BAD_ARG); CHK(ssol_shape_create_punched_surface(NULL, &shape) == RES_BAD_ARG); CHK(ssol_shape_create_punched_surface(dev, &shape) == RES_OK); - + carving.get = get_polygon_vertices; carving.operation = SSOL_AND; carving.nb_vertices = npolygon_verts; @@ -194,7 +194,7 @@ main(int argc, char** argv) punched_surface.nb_carvings = 0; CHK(ssol_punched_surface_setup(shape, &punched_surface) == RES_BAD_ARG); punched_surface.nb_carvings = 1; - + quadric.data.parabol.focal = 0; CHK(ssol_punched_surface_setup(shape, &punched_surface) == RES_BAD_ARG); quadric.data.parabol.focal = 1; @@ -239,7 +239,7 @@ main(int argc, char** argv) quadric.data.hemisphere.radius = 0; CHK(ssol_punched_surface_setup(shape, &punched_surface) == RES_BAD_ARG); quadric.data.hemisphere.radius = 10; - + CHK(ssol_shape_ref_put(shape) == RES_OK); CHK(ssol_device_ref_put(dev) == RES_OK); diff --git a/src/test_ssol_solver1.c b/src/test_ssol_solver1.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_solver10.c b/src/test_ssol_solver10.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_solver11.c b/src/test_ssol_solver11.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_solver12.c b/src/test_ssol_solver12.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_solver2.c b/src/test_ssol_solver2.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_solver2b.c b/src/test_ssol_solver2b.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_solver3.c b/src/test_ssol_solver3.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify @@ -79,7 +79,7 @@ main(int argc, char** argv) d3_splat(transform + 9, 0); d33_rotation_pitch(transform, PI); /* flip faces: invert normal */ transform[11] = 2; /* +2 offset along Z axis */ - + mem_init_proxy_allocator(&allocator, &mem_default_allocator); CHK(ssol_device_create @@ -153,7 +153,7 @@ main(int argc, char** argv) CHK(eq_eps(mc_global.cos_factor.E, COS, 1e-4) == 1); CHK(ssol_estimator_get_mc_receiver (estimator, target, SSOL_FRONT, &mc_rcv) == RES_OK); - printf("Ir(target) = %g +/- %g\n", + printf("Ir(target) = %g +/- %g\n", mc_rcv.incoming_flux.E, mc_rcv.incoming_flux.SE); CHK(eq_eps(mc_rcv.incoming_flux.E, m, 2 * std) == 1); CHK(eq_eps(mc_rcv.incoming_flux.SE, std, 10) == 1); diff --git a/src/test_ssol_solver4.c b/src/test_ssol_solver4.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_solver5.c b/src/test_ssol_solver5.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_solver6.c b/src/test_ssol_solver6.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_solver7.c b/src/test_ssol_solver7.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify @@ -201,12 +201,12 @@ main(int argc, char** argv) CHK(GET_MC_RCV(estimator, target, SSOL_FRONT, &mc_rcv) == RES_OK); printf("Abs(target1) = %g +/- %g\n", - mc_rcv.absorbed_flux.E, + mc_rcv.absorbed_flux.E, mc_rcv.absorbed_flux.SE); printf("Ir(target1) = %g +/- %g\n", mc_rcv.incoming_flux.E, mc_rcv.incoming_flux.SE); CHK(eq_eps(mc_rcv.incoming_flux.E, TOTAL, TOTAL * 1e-4)); - CHK(eq_eps(mc_rcv.absorbed_flux.E, + CHK(eq_eps(mc_rcv.absorbed_flux.E, (1 - REFLECTIVITY) * TOTAL, (1 - REFLECTIVITY) *TOTAL * 1e-4)); CHK(eq_eps(mc_rcv.incoming_flux.SE, 0, 1e-2) == 1); diff --git a/src/test_ssol_solver8.c b/src/test_ssol_solver8.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify @@ -151,7 +151,7 @@ main(int argc, char** argv) printf("Shadows = %g +/- %g\n", mc_global.shadowed.E, mc_global.shadowed.SE); printf("Missing = %g +/- %g\n", mc_global.missing.E, mc_global.missing.SE); CHK(eq_eps(mc_global.shadowed.E, 0, 1e-4) == 1); - CHK(eq_eps(mc_global.missing.E, S * DNI, + CHK(eq_eps(mc_global.missing.E, S * DNI, 3 * mc_global.missing.SE)); /* nothing absorbed */ CHK(GET_MC_RCV(estimator, target, SSOL_FRONT, &mc_rcv) == RES_OK); printf("Ir(target1) = %g +/- %g\n", diff --git a/src/test_ssol_solver9.c b/src/test_ssol_solver9.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify @@ -145,7 +145,7 @@ main(int argc, char** argv) print_global(&mc_global); CHK(eq_eps(mc_global.cos_factor.E, 1./3., 3 * mc_global.cos_factor.SE)); CHK(eq_eps(mc_global.shadowed.E, DNI_S, 3 * mc_global.shadowed.SE)); - CHK(eq_eps(mc_global.missing.E, MMAX(DNI_S, DNI_TGT_S), + CHK(eq_eps(mc_global.missing.E, MMAX(DNI_S, DNI_TGT_S), 3 * mc_global.missing.SE)); CHK(GET_MC_RCV(estimator, target, SSOL_FRONT, &mc_rcv) == RES_OK); printf("Ir(target1) = %g +/- %g\n", diff --git a/src/test_ssol_spectrum.c b/src/test_ssol_spectrum.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_sun.c b/src/test_ssol_sun.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify diff --git a/src/test_ssol_utils.h b/src/test_ssol_utils.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018, 2019, 2021 |Meso|Star> (contact@meso-star.com) +/* Copyright (C) 2018-2026 |Meso|Star> (contact@meso-star.com) * Copyright (C) 2016, 2018 CNRS * * This program is free software: you can redistribute it and/or modify