stardis

Perform coupled heat transfer calculations
git clone git://git.meso-star.fr/stardis.git
Log | Files | Refs | README | LICENSE

commit c9f8ed46442c9332732ee017585b6f4363a8f907
parent 112ef63cb8b64411150e279358481bbb3fde638c
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Wed, 15 Jul 2020 18:35:34 +0200

Fix spacing

Diffstat:
Msrc/stardis-app.c | 22+++++++++++-----------
Msrc/stardis-app.h | 1-
2 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/src/stardis-app.c b/src/stardis-app.c @@ -168,7 +168,7 @@ validate_properties switch (intface->type) { case DESC_BOUND_H_FOR_FLUID: if(!(solid_count == 0 && fluid_count == 1)) { - if(solid_count + fluid_count == 2) + if(solid_count + fluid_count == 2) *properties_conflict_status = BOUND_H_FOR_FLUID_BETWEEN_2_DEFS; else if(solid_count + fluid_count == 0) *properties_conflict_status = BOUND_H_FOR_FLUID_BETWEEN_2_UNDEFS; @@ -192,7 +192,7 @@ validate_properties break; case DESC_BOUND_T_FOR_FLUID: if(!(solid_count == 0 && fluid_count == 1)) { - if(solid_count + fluid_count == 2) + if(solid_count + fluid_count == 2) *properties_conflict_status = BOUND_T_FOR_FLUID_BETWEEN_2_DEFS; else if(solid_count + fluid_count == 0) *properties_conflict_status = BOUND_T_FOR_FLUID_BETWEEN_2_UNDEFS; @@ -204,7 +204,7 @@ validate_properties break; case DESC_BOUND_T_FOR_SOLID: if(!(solid_count == 1 && fluid_count == 0)) { - if(solid_count + fluid_count == 2) + if(solid_count + fluid_count == 2) *properties_conflict_status = BOUND_T_FOR_SOLID_BETWEEN_2_DEFS; else if(solid_count + fluid_count == 0) *properties_conflict_status = BOUND_T_FOR_SOLID_BETWEEN_2_UNDEFS; @@ -618,14 +618,14 @@ stardis_init goto error; } ERR(senc3d_scene_get_overlapping_triangles_count(stardis->senc3d_scn, &ocount)); - if(ocount) { - logger_print(stardis->logger, (is_for_compute ? LOG_ERROR : LOG_WARNING), - "Scene contains %u overlapping triangles.\n", - ocount); - if(is_for_compute) { - res = RES_BAD_ARG; - goto error; - } + if(ocount) { + logger_print(stardis->logger, (is_for_compute ? LOG_ERROR : LOG_WARNING), + "Scene contains %u overlapping triangles.\n", + ocount); + if(is_for_compute) { + res = RES_BAD_ARG; + goto error; + } } /* Create media and property holders for those found in descriptions */ diff --git a/src/stardis-app.h b/src/stardis-app.h @@ -813,7 +813,6 @@ extern LOCAL_SYM void stardis_release (struct stardis* stardis); - extern LOCAL_SYM res_T init_enclosures (struct stardis* stardis);