stardis-solver

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

commit af980c9cfed26cb301dcde99da5eb6ac9a9a2bce
parent 03f85bc1805d6e31723f06492186861603045614
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Sat, 21 Mar 2020 12:57:12 +0100

Change some error logs to warning

Diffstat:
Msrc/sdis_heat_path_boundary_Xd.h | 10+++++-----
Msrc/sdis_heat_path_conductive_Xd.h | 10+++++-----
Msrc/sdis_heat_path_radiative_Xd.h | 2+-
3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/sdis_heat_path_boundary_Xd.h b/src/sdis_heat_path_boundary_Xd.h @@ -300,7 +300,7 @@ XD(select_reinjection_dir) } while(dst0 == -1 && dst1 == -1 && ++iattempt < MAX_ATTEMPTS); if(dst0 == -1 && dst1 == -1) { /* No valid reinjection */ - log_err(scn->dev, "%s: no valid reinjection direction at {%g, %g, %g}.\n", + log_warn(scn->dev, "%s: no valid reinjection direction at {%g, %g, %g}.\n", FUNC_NAME, SPLIT3(rwalk->vtx.P)); res = RES_BAD_OP_IRRECOVERABLE; goto error; @@ -554,8 +554,8 @@ XD(solid_solid_boundary_path) /* Could not find a valid reinjection */ if(iattempt >= MAX_ATTEMPTS) { *rwalk = rwalk_saved; - log_err(scn->dev, - "%s: could not find a valid soid/solid reinjection at {%g, %g, %g}.\n", + log_warn(scn->dev, + "%s: could not find a valid solid/solid reinjection at {%g, %g, %g}.\n", FUNC_NAME, SPLIT3(rwalk->vtx.P)); res = RES_BAD_OP_IRRECOVERABLE; goto error; @@ -718,7 +718,7 @@ XD(solid_fluid_boundary_path) /* Could not find a valid reinjecton */ if(iattempt >= MAX_ATTEMPTS) { *rwalk = rwalk_saved; - log_err(scn->dev, + log_warn(scn->dev, "%s: could not find a valid solid/fluid reinjection at {%g, %g %g}.\n", FUNC_NAME, SPLIT3(rwalk->vtx.P)); res = RES_BAD_OP_IRRECOVERABLE; @@ -867,7 +867,7 @@ XD(solid_boundary_with_flux_path) /* Could not find a valid reinjecton */ if(iattempt >= MAX_ATTEMPTS) { *rwalk = rwalk_saved; - log_err(scn->dev, + log_warn(scn->dev, "%s: could not find a valid solid/fluid with flux reinjection " "at {%g, %g, %g}.\n", FUNC_NAME, SPLIT3(rwalk->vtx.P)); res = RES_BAD_OP_IRRECOVERABLE; diff --git a/src/sdis_heat_path_conductive_Xd.h b/src/sdis_heat_path_conductive_Xd.h @@ -158,11 +158,11 @@ XD(sample_next_step_robust) if(current_mdm != mdm) { #if 0 #if DIM == 2 - log_err(scn->dev, + log_warn(scn->dev, "%s: inconsistent medium during the solid random walk at {%g, %g}.\n", FUNC_NAME, SPLIT2(pos)); #else - log_err(scn->dev, + log_warn(scn->dev, "%s: inconsistent medium during the solid random walk at {%g, %g, %g}.\n", FUNC_NAME, SPLIT3(pos)); #endif @@ -173,11 +173,11 @@ XD(sample_next_step_robust) /* Handle error */ if(iattempt >= MAX_ATTEMPTS) { #if DIM == 2 - log_err(scn->dev, + log_warn(scn->dev, "%s: could not find a next valid conductive step at {%g, %g}.\n", FUNC_NAME, SPLIT2(pos)); #else - log_err(scn->dev, + log_warn(scn->dev, "%s: could not find a next valid conductive step at {%g, %g, %g}.\n", FUNC_NAME, SPLIT3(pos)); #endif @@ -218,7 +218,7 @@ XD(conductive_path) /* Check the random walk consistency */ res = scene_get_medium_in_closed_boundaries(scn, rwalk->vtx.P, &mdm); if(res != RES_OK || mdm != rwalk->mdm) { - log_err(scn->dev, "%s: invalid solid random walk. " + log_warn(scn->dev, "%s: invalid solid random walk. " "Unexpected medium at {%g, %g, %g}.\n", FUNC_NAME, SPLIT3(rwalk->vtx.P)); res = RES_BAD_OP_IRRECOVERABLE; goto error; diff --git a/src/sdis_heat_path_radiative_Xd.h b/src/sdis_heat_path_radiative_Xd.h @@ -167,7 +167,7 @@ XD(trace_radiative_path) if(outside && chk_mdm->type == SDIS_FLUID) { rwalk->mdm = chk_mdm; } else { - log_err(scn->dev, "%s: inconsistent medium definition at `%g %g %g'.\n", + log_warn(scn->dev, "%s: inconsistent medium definition at `%g %g %g'.\n", FUNC_NAME, SPLIT3(rwalk->vtx.P)); res = RES_BAD_OP; goto error;