stardis

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

commit 296a9a03ad8da31a089527482371ad3834bc059d
parent 35110420bc1943be37e0e63180b5279ea6528e5e
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Wed, 23 Sep 2020 10:32:46 +0200

BugFix: medium VS description ID mismatch

Diffstat:
Msrc/stardis-output.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/stardis-output.c b/src/stardis-output.c @@ -130,10 +130,10 @@ merge_power_terms case SDIS_SOLID: { struct solid* d__ = sdis_data_get(data); double* w; - unsigned mid = d__->solid_id; - w = htable_weigth_find(&w_ctx->pw, &mid); + unsigned id = d__->desc_id; + w = htable_weigth_find(&w_ctx->pw, &id); if(w) *w += power_term; - else ERR(htable_weigth_set(&w_ctx->pw, &mid, &power_term)); + else ERR(htable_weigth_set(&w_ctx->pw, &id, &power_term)); break; } default: FATAL("Unreachable code.\n"); break;