| 678 |
C dont really need to pass T and S in, could use theta, salt in |
C dont really need to pass T and S in, could use theta, salt in |
| 679 |
C common block in DYNVARS.h, but this way keeps subroutine more |
C common block in DYNVARS.h, but this way keeps subroutine more |
| 680 |
C general |
C general |
| 681 |
_RL ttemp(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
_RL ttemp(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
| 682 |
_RL stemp(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
_RL stemp(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
| 683 |
INTEGER bi,bj,iMin,iMax,jMin,jMax |
INTEGER bi,bj,iMin,iMax,jMin,jMax |
| 684 |
INTEGER myThid |
INTEGER myThid |
| 685 |
CEndOfInterface |
CEndOfInterface |
| 730 |
do i=imin,imax |
do i=imin,imax |
| 731 |
do j=jmin,jmax |
do j=jmin,jmax |
| 732 |
if (hFacC(i,j,1,bi,bj).gt.0. _d 0) then |
if (hFacC(i,j,1,bi,bj).gt.0. _d 0) then |
| 733 |
t = ttemp(i,j,1,bi,bj) |
t = ttemp(i,j) |
| 734 |
s = stemp(i,j,1,bi,bj) |
s = stemp(i,j) |
| 735 |
C terms used more than once |
C terms used more than once |
| 736 |
tk = 273.15 _d 0 + t |
tk = 273.15 _d 0 + t |
| 737 |
tk100 = tk/100. _d 0 |
tk100 = tk/100. _d 0 |