commit 9ffbc52c3b470f8473240c7285c3d88aaac86658
parent 01ea37d3b70c0e80bbb564ddee3696edf82e9e93
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Tue, 27 Oct 2020 11:16:08 +0100
Improve logs
Diffstat:
3 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/src/stardis-app.c b/src/stardis-app.c
@@ -151,14 +151,14 @@ check_delta_and_create_solid
ratio = delta_range[1] / delta_range[0];
if(ratio > acceptance_ratio)
logger_print(stardis->logger, LOG_WARNING,
- "Solid %s is used in %u different enclosures that have different "
+ "Solid '%s' is used in %u different enclosures that have different "
"delta requirements.\n",
str_cget(&description->d.solid.name), ecount);
/* Delta needs to be substituted with actual value */
if(description->d.solid.delta == DELTA_AUTO) {
description->d.solid.delta = delta_range[0];
logger_print(stardis->logger, LOG_OUTPUT,
- "Auto delta for solid %s set to %g\n",
+ "Auto delta for solid '%s' set to %g\n",
str_cget(&description->d.solid.name), description->d.solid.delta);
} else {
int too_small
@@ -168,7 +168,7 @@ check_delta_and_create_solid
/* Check if user delta is OK */
if(too_small || too_big) {
logger_print(stardis->logger, LOG_WARNING,
- "User delta for solid %s seems too %s: %g; "
+ "User delta for solid '%s' seems too %s: %g; "
"auto delta would have set it to %g.\n",
str_cget(&description->d.solid.name), (too_big ? "big" : "small"),
description->d.solid.delta, delta_range[0]);
diff --git a/src/stardis-app.h b/src/stardis-app.h
@@ -277,7 +277,7 @@ str_print_t_boundary
{
res_T res = RES_OK;
ASSERT(str && b && DESC_IS_T(type));
- STR_APPEND_PRINTF(str, "T boundary for %s' %s': T=%g ",
+ STR_APPEND_PRINTF(str, "T boundary for %s '%s': T=%g ",
(type == DESC_BOUND_T_FOR_SOLID ? "solid" : "fluid"),
str_cget(&b->name), b->imposed_temperature);
diff --git a/src/stardis-output.c b/src/stardis-output.c
@@ -1325,12 +1325,12 @@ print_single_MC_result
case MODE_BOUNDARY_COMPUTE:
if(stardis->mode & MODE_EXTENDED_RESULTS) {
if(stardis->time_range[0] == stardis->time_range[1])
- fprintf(stream, "Temperature at boundary %s at t=%g = %g +/- %g\n",
+ fprintf(stream, "Temperature at boundary '%s' at t=%g = %g +/- %g\n",
str_cget(&stardis->solve_name), stardis->time_range[0],
result.E, /* Expected value */
result.SE); /* Standard error */
else
- fprintf(stream, "Temperature at boundary %s with t in [%g %g] = %g +/- %g\n",
+ fprintf(stream, "Temperature at boundary '%s' with t in [%g %g] = %g +/- %g\n",
str_cget(&stardis->solve_name), SPLIT2(stardis->time_range),
result.E, /* Expected value */
result.SE); /* Standard error */
@@ -1345,56 +1345,56 @@ print_single_MC_result
if(stardis->mode & MODE_EXTENDED_RESULTS) {
if(stardis->time_range[0] == stardis->time_range[1])
- fprintf(stream, "Temperature at boundary %s at t=%g = %g +/- %g\n",
+ fprintf(stream, "Temperature at boundary '%s' at t=%g = %g +/- %g\n",
str_cget(&stardis->solve_name), stardis->time_range[0],
result.E, /* Expected value */
result.SE); /* Standard error */
else
- fprintf(stream, "Temperature at boundary %s with t in [%g %g] = %g +/- %g\n",
+ fprintf(stream, "Temperature at boundary '%s' with t in [%g %g] = %g +/- %g\n",
str_cget(&stardis->solve_name), SPLIT2(stardis->time_range),
result.E, /* Expected value */
result.SE); /* Standard error */
ERR(sdis_estimator_get_convective_flux(estimator, &result));
if(stardis->time_range[0] == stardis->time_range[1])
- fprintf(stream, "Convective flux at boundary %s at t=%g = %g +/- %g\n",
+ fprintf(stream, "Convective flux at boundary '%s' at t=%g = %g +/- %g\n",
str_cget(&stardis->solve_name), stardis->time_range[0],
result.E, /* Expected value */
result.SE); /* Standard error */
else
- fprintf(stream, "Convective flux at boundary %s with t in [%g %g] = %g +/- %g\n",
+ fprintf(stream, "Convective flux at boundary '%s' with t in [%g %g] = %g +/- %g\n",
str_cget(&stardis->solve_name), SPLIT2(stardis->time_range),
result.E, /* Expected value */
result.SE); /* Standard error */
ERR(sdis_estimator_get_radiative_flux(estimator, &result));
if(stardis->time_range[0] == stardis->time_range[1])
- fprintf(stream, "Radiative flux at boundary %s at t=%g = %g +/- %g\n",
+ fprintf(stream, "Radiative flux at boundary '%s' at t=%g = %g +/- %g\n",
str_cget(&stardis->solve_name), stardis->time_range[0],
result.E, /* Expected value */
result.SE); /* Standard error */
else
- fprintf(stream, "Radiative flux at boundary %s with t in [%g %g] = %g +/- %g\n",
+ fprintf(stream, "Radiative flux at boundary '%s' with t in [%g %g] = %g +/- %g\n",
str_cget(&stardis->solve_name), SPLIT2(stardis->time_range),
result.E, /* Expected value */
result.SE); /* Standard error */
ERR(sdis_estimator_get_imposed_flux(estimator, &result));
if(stardis->time_range[0] == stardis->time_range[1])
- fprintf(stream, "Imposed flux at boundary %s at t=%g = %g +/- %g\n",
+ fprintf(stream, "Imposed flux at boundary '%s' at t=%g = %g +/- %g\n",
str_cget(&stardis->solve_name), stardis->time_range[0],
result.E, /* Expected value */
result.SE); /* Standard error */
else
- fprintf(stream, "Imposed flux at boundary %s with t in [%g %g] = %g +/- %g\n",
+ fprintf(stream, "Imposed flux at boundary '%s' with t in [%g %g] = %g +/- %g\n",
str_cget(&stardis->solve_name), SPLIT2(stardis->time_range),
result.E, /* Expected value */
result.SE); /* Standard error */
ERR(sdis_estimator_get_total_flux(estimator, &result));
if(stardis->time_range[0] == stardis->time_range[1])
- fprintf(stream, "Total flux Flux at boundary %s at t=%g = %g +/- %g\n",
+ fprintf(stream, "Total flux Flux at boundary '%s' at t=%g = %g +/- %g\n",
str_cget(&stardis->solve_name), stardis->time_range[0],
result.E, /* Expected value */
result.SE); /* Standard error */
else
- fprintf(stream, "Total flux Flux at boundary %s with t in [%g %g] = %g +/- %g\n",
+ fprintf(stream, "Total flux Flux at boundary '%s' with t in [%g %g] = %g +/- %g\n",
str_cget(&stardis->solve_name), SPLIT2(stardis->time_range),
result.E, /* Expected value */
result.SE); /* Standard error */