commit ced40c7e453a3ccba54650b8693acf1228cf4f0e parent be8d117730e57bd3be916ddbac0879a424fb1d2f Author: Vincent Forest <vincent.forest@meso-star.com> Date: Mon, 18 Jun 2018 15:58:28 +0200 Merge remote-tracking branch 'origin/test_volumic_power' into test_volumic_power Diffstat:
| M | src/sdis_solve_Xd.h | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/sdis_solve_Xd.h b/src/sdis_solve_Xd.h @@ -995,8 +995,9 @@ XD(solid_temperature) const double sin_a = h / delta_solid; /* tmp1 = sin(2a) / (PI - 2*a) */ const double tmp1 = sin_a * sqrt(1 - sin_a*sin_a)/acos(sin_a); - tmp += -(power*delta_s_in_meter*delta_s_in_meter)/(2.0*DIM*lambda) - * tmp1; + tmp += -(power*delta_s_in_meter*delta_s_in_meter)/(2.0*DIM*lambda) * tmp1; + } else if (h == delta_solid) { + tmp += -(delta_s_in_meter*delta_s_in_meter*power)/(2.0*DIM*lambda); } T->value += tmp; }