Skip to content

Commit

Permalink
fix Tmin higher than 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunfei-Wang1993 committed Jun 30, 2022
1 parent 5dc0a82 commit a50de3e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/HT_frez.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a50de3e

Please sign in to comment.