commit 47d1debedbcdff637fde53217199f06e493a0af7
parent 9bb7e5d12f5677ca474e603b13b63d5e21671aef
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 1 Mar 2019 11:19:36 +0100
Cosmetic modification of the conductive heat path
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/sdis_heat_path_conductive_Xd.h b/src/sdis_heat_path_conductive_Xd.h
@@ -195,7 +195,7 @@ XD(conductive_path)
}
/* Sample the time */
- if(rwalk->vtx.time != INF) {
+ if(!IS_INF(rwalk->vtx.time)) {
double tau, mu, t0;
mu = (2*DIM*lambda) / (rho*cp*delta*fp_to_meter*delta*fp_to_meter);
tau = ssp_ran_exp(rng, mu);
@@ -292,7 +292,7 @@ XD(conductive_path)
/* Register the power term for the green function */
if(ctx->green_path && power_ref != SDIS_VOLUMIC_POWER_NONE) {
res = green_path_add_power_term
- (ctx->green_path, mdm, &rwalk->vtx, green_power_factor);
+ (ctx->green_path, rwalk->mdm, &rwalk->vtx, green_power_factor);
if(res != RES_OK) goto error;
}