commit cd70899545ed6e4c73a0e29d5f9d488b94f1945e
parent ddbce29dd7dc80b1e9b23a2267a551250710de3a
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 19 Feb 2024 16:36:22 +0100
Fix the invocation of a probe boundary calculation
An argument submitted to Stardis-Solver was poorly defined
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/stardis-compute-probe-boundary.c b/src/stardis-compute-probe-boundary.c
@@ -816,6 +816,14 @@ compute_probe_on_interface(struct stardis* stardis, struct time* start)
args.side = probe_side;
args.register_paths = stardis->dump_paths;
+ /* The solver does not accept that the side of the interface on which the
+ * probe is placed is invalid. Below, the side is arbitrarily defined because
+ * at this point, Stardis has already arbitrated that this side does not
+ * matter (i.e. there is no thermal contact resistance) */
+ if(args.side == SDIS_SIDE_NULL__) {
+ args.side = SDIS_FRONT;
+ }
+
/* Run the calculation */
if(stardis->mode & (MODE_GREEN | MODE_BIN_GREEN)) {
ERR(solve_green(stardis, start, &args));