38 |
C === Local variables === |
C === Local variables === |
39 |
C i,j,bi,bj - Loop counters |
C i,j,bi,bj - Loop counters |
40 |
|
|
41 |
INTEGER i, j, k, bi, bj |
INTEGER i, j, bi, bj |
42 |
_RL fac, tempFrz |
_RL fac, tempFrz |
43 |
|
CHARACTER*(MAX_LEN_MBUF) msgBuf |
44 |
|
|
45 |
|
WRITE(msgBuf,'(2A)') 'SEAICE_FAKE:', |
46 |
|
& ' forward code is not meant to be used (adj only)' |
47 |
|
CALL PRINT_ERROR( msgBuf, myThid ) |
48 |
|
STOP 'ABNORMAL END: S/R SEAICE_FAKE' |
49 |
|
|
50 |
DO bj=myByLo(myThid),myByHi(myThid) |
DO bj=myByLo(myThid),myByHi(myThid) |
51 |
DO bi=myBxLo(myThid),myBxHi(myThid) |
DO bi=myBxLo(myThid),myBxHi(myThid) |
71 |
fac=MIN(1. _d 0, MAX(0. _d 0 , area(i,j,bi,bj))) |
fac=MIN(1. _d 0, MAX(0. _d 0 , area(i,j,bi,bj))) |
72 |
tempFrz = SEAICE_tempFrz0 + |
tempFrz = SEAICE_tempFrz0 + |
73 |
& SEAICE_dTempFrz_dS *salt(i,j,1,bi,bj) |
& SEAICE_dTempFrz_dS *salt(i,j,1,bi,bj) |
74 |
theta(i,j,k,bi,bj)=theta(i,j,k,bi,bj) + fac * |
theta(i,j,1,bi,bj)=theta(i,j,1,bi,bj) + fac * |
75 |
& ( tempFrz-theta(i,j,k,bi,bj) ) * |
& ( tempFrz-theta(i,j,1,bi,bj) ) * |
76 |
& SEAICE_mcPheePiston/drF(1)*SEAICE_deltaTtherm |
& SEAICE_mcPheePiston/drF(1)*SEAICE_deltaTtherm |
77 |
ENDDO |
ENDDO |
78 |
ENDDO |
ENDDO |