stardis-solver

Solve coupled heat transfers
git clone git://git.meso-star.fr/stardis-solver.git
Log | Files | Refs | README | LICENSE

commit cf3592039e6ea5f70b7029ac3f2ebcc0a9c08f72
parent c67660b013900933fe39ac61ed44f9d0a4e1bd0c
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu,  5 Dec 2024 14:30:18 +0100

Refactor the printing of a log message

Use FORMAT_VECX and SLITX macros to make the message  generic to the
scene dimension.

Diffstat:
Msrc/sdis_heat_path_boundary_Xd_c.h | 9++-------
1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/sdis_heat_path_boundary_Xd_c.h b/src/sdis_heat_path_boundary_Xd_c.h @@ -485,13 +485,8 @@ XD(find_reinjection_ray) } while(dst0 == -1 && dst1 == -1 && ++iattempt < MAX_ATTEMPTS); if(dst0 == -1 && dst1 == -1) { /* No valid reinjection */ -#if DIM == 2 - log_err(scn->dev, "%s: no valid reinjection direction at {%g, %g}.\n", - FUNC_NAME, SPLIT2(ray->org)); -#else - log_err(scn->dev, "%s: no valid reinjection direction at {%g, %g, %g}.\n", - FUNC_NAME, SPLIT3(ray->org)); -#endif + log_err(scn->dev, "%s: no valid reinjection direction at {"FORMAT_VECX"}.\n", + FUNC_NAME, SPLITX(ray->org)); res = RES_BAD_OP_IRRECOVERABLE; goto error; }