stardis-solver

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

commit e37b41ec95bc5aae4e1887ac930a4e985351cfbb
parent 3761303e2a40eb356f85cf37a4ee463e9f87f45b
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Wed,  4 Nov 2020 11:07:02 +0100

BugFix: check Tref and fp_to_meter unchanged when reading green

Diffstat:
Msrc/sdis_green.c | 4++--
Msrc/sdis_scene.c | 2++
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/sdis_green.c b/src/sdis_green.c @@ -1004,8 +1004,8 @@ sdis_green_function_create_from_stream READ(hash1, sizeof(hash256_T)); if(!hash256_eq(hash0, hash1)) { log_err(green->scn->dev, - "%s: the submitted scene does not match scene used to estimate the green " - "function.\n", FUNC_NAME); + "%s: the submitted scene does not match the scene used to estimate the " + "green function.\n", FUNC_NAME); res = RES_BAD_ARG; goto error; } diff --git a/src/sdis_scene.c b/src/sdis_scene.c @@ -490,6 +490,8 @@ scene_compute_hash(const struct sdis_scene* scn, hash256_T hash) } else { S3D(scene_view_primitives_count(scn->s3d_view, &nprims)); } + WRITE(&scn->reference_temperature, 1); + WRITE(&scn->fp_to_meter, 1); FOR_EACH(iprim, 0, nprims) { struct sdis_interface* interf = NULL; size_t ivert;