From a50de3e5416c8e739e8c23178e843fd07cb33f07 Mon Sep 17 00:00:00 2001 From: Yunfei-Wang1993 Date: Thu, 30 Jun 2022 13:13:27 +0200 Subject: [PATCH] fix Tmin higher than 0 --- src/HT_frez.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/HT_frez.m b/src/HT_frez.m index 90dea143..5bd8430f 100644 --- a/src/HT_frez.m +++ b/src/HT_frez.m @@ -8,8 +8,13 @@ else TT_CRIT(MN)=T0+g*T0*HHH(MN)/L_f/1e4/2; end - if TT_CRIT(MN)<=T0+Tmin - TT_CRIT(MN)=T0+Tmin; % unit K + if Tmin>0 + TTmin=0; + else + TTmin=Tmin; + end + if TT_CRIT(MN)<=T0+TTmin + TT_CRIT(MN)=T0+TTmin; % unit K elseif TT_CRIT(MN)>=T0 TT_CRIT(MN)=T0; else