70 |
c The prefix 'a_' means available, the prefix 'd_' means delta |
c The prefix 'a_' means available, the prefix 'd_' means delta |
71 |
c (i.e. increment), and the prefix 'r_' means residual. |
c (i.e. increment), and the prefix 'r_' means residual. |
72 |
c The suffix '_cover' denotes a value for the ice covered fraction |
c The suffix '_cover' denotes a value for the ice covered fraction |
73 |
c of the grid cell, whereas '_cover' is for the open water fraction. |
c of the grid cell, whereas '_open' is for the open water fraction. |
74 |
c The main part of the name states what ice/snow stock is concerned |
c The main part of the name states what ice/snow stock is concerned |
75 |
c (e.g. QbyATM or HEFF), and how it is affected (e.g. d_HEFFbyATMonOCN |
c (e.g. QbyATM or HEFF), and how it is affected (e.g. d_HEFFbyATMonOCN |
76 |
c is the increment of HEFF due to the ATMosphere extracting heat from the |
c is the increment of HEFF due to the ATMosphere extracting heat from the |
724 |
tmpscal2 = MAX(-HEFF(I,J,bi,bj),r_QbyATM_cover(I,J)) |
tmpscal2 = MAX(-HEFF(I,J,bi,bj),r_QbyATM_cover(I,J)) |
725 |
d_HEFFbyATMonOCN(I,J)=d_HEFFbyATMonOCN(I,J)+tmpscal2 |
d_HEFFbyATMonOCN(I,J)=d_HEFFbyATMonOCN(I,J)+tmpscal2 |
726 |
r_QbyATM_cover(I,J)=r_QbyATM_cover(I,J)-tmpscal2 |
r_QbyATM_cover(I,J)=r_QbyATM_cover(I,J)-tmpscal2 |
|
c The following line is what I referred to as the 'vintage bug' |
|
|
c If I mistook a desirable feature for a bug, then we will un-comment |
|
|
c this line. Otherwise we may want to delete the comment at some point. |
|
|
c & *AREApreTH(I,J) |
|
727 |
HEFF(I,J,bi,bj) = HEFF(I,J,bi,bj) + tmpscal2 |
HEFF(I,J,bi,bj) = HEFF(I,J,bi,bj) + tmpscal2 |
728 |
ENDDO |
ENDDO |
729 |
ENDDO |
ENDDO |
1094 |
AREA(I,J,bi,bj) = AREA(I,J,bi,bj)*HEFFM(I,J,bi,bj) |
AREA(I,J,bi,bj) = AREA(I,J,bi,bj)*HEFFM(I,J,bi,bj) |
1095 |
HEFF(I,J,bi,bj) = HEFF(I,J,bi,bj)*HEFFM(I,J,bi,bj) |
HEFF(I,J,bi,bj) = HEFF(I,J,bi,bj)*HEFFM(I,J,bi,bj) |
1096 |
#ifdef SEAICE_CAP_HEFF |
#ifdef SEAICE_CAP_HEFF |
1097 |
HEFF(I,J,bi,bj)=MIN(MAX_HEFF,HEFF(I,J,bi,bj)) |
C This is not energy conserving, but at least it conserves fresh water |
1098 |
|
tmpscal0 = MAX(HEFF(I,J,bi,bj)-MAX_HEFF,0. _d 0) |
1099 |
|
HEFF(I,J,bi,bj) = HEFF(I,J,bi,bj) - tmpscal0 |
1100 |
|
EmPmR(I,J,bi,bj) = EmPmR(I,J,bi,bj) |
1101 |
|
& - tmpscal0*SEAICE_rhoIce/SEAICE_deltaTtherm |
1102 |
#endif /* SEAICE_CAP_HEFF */ |
#endif /* SEAICE_CAP_HEFF */ |
1103 |
HSNOW(I,J,bi,bj) = HSNOW(I,J,bi,bj)*HEFFM(I,J,bi,bj) |
HSNOW(I,J,bi,bj) = HSNOW(I,J,bi,bj)*HEFFM(I,J,bi,bj) |
1104 |
ENDDO |
ENDDO |