commit 4163547be0d54752613c42feac7eb23c0435fb27
parent 9a354dedfa48c30dac0c89522883c9b13c300559
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 29 Mar 2024 15:32:01 +0100
Fix heat path registration in WoS algorithm
The path vertices were saved only at the boundary and in the initial
state, whereas they should have been saved at each conduction step.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/sdis_heat_path_conductive_wos_Xd.h b/src/sdis_heat_path_conductive_wos_Xd.h
@@ -627,19 +627,19 @@ XD(conductive_path_wos)
res = XD(handle_volumic_power_wos)(scn, &props, dst, &power_term, T);
if(res != RES_OK) goto error;
+ REGISTER_HEAT_VERTEX;
+
/* Accumulate the power term */
if(green) green_power_term += power_term;
/* The path reaches the initial condition */
if(T->done) {
- REGISTER_HEAT_VERTEX;
T->func = NULL;
break;
}
/* The path reaches a boundary */
if(!SXD_HIT_NONE(&rwalk->hit)) {
- REGISTER_HEAT_VERTEX;
T->func = XD(boundary_path);
rwalk->mdm = NULL;
break;