stardis-solver

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

commit b0c47badfb9912de9b30acad133ffff213eab30a
parent 6389937a6eaa279d45175b0d9ee5ba9852247218
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 25 Oct 2021 10:01:54 +0200

Fix a compilation warning

Diffstat:
Msrc/sdis_heat_path_boundary_Xd_c.h | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

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