51 |
INTEGER iG, jG |
INTEGER iG, jG |
52 |
INTEGER bi, bj |
INTEGER bi, bj |
53 |
INTEGER I, J, K, localWarnings |
INTEGER I, J, K, localWarnings |
54 |
_RL rad, rD, Tfreezing |
_RL rad, rD |
55 |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
56 |
CEOP |
CEOP |
57 |
|
|
75 |
_EXCH_XYZ_R8(theta,myThid) |
_EXCH_XYZ_R8(theta,myThid) |
76 |
ENDIF |
ENDIF |
77 |
|
|
78 |
C-- Apply mask and test consistancy |
C Apply mask and test consistancy |
79 |
localWarnings=0 |
localWarnings=0 |
80 |
DO bj = myByLo(myThid), myByHi(myThid) |
DO bj = myByLo(myThid), myByHi(myThid) |
81 |
DO bi = myBxLo(myThid), myBxHi(myThid) |
DO bi = myBxLo(myThid), myBxHi(myThid) |
100 |
STOP 'ABNORMAL END: S/R INI_THETA' |
STOP 'ABNORMAL END: S/R INI_THETA' |
101 |
ENDIF |
ENDIF |
102 |
|
|
|
C-- Check that there are no values of temperature below freezing point. |
|
|
Tfreezing=-1.9 |
|
|
IF ( allowFreezing ) THEN |
|
|
DO bj = myByLo(myThid), myByHi(myThid) |
|
|
DO bi = myBxLo(myThid), myBxHi(myThid) |
|
|
DO K=1,Nr |
|
|
DO J=1-Oly,sNy+Oly |
|
|
DO I=1-Olx,sNx+Olx |
|
|
IF (theta(I,J,k,bi,bj) .LT. Tfreezing) THEN |
|
|
theta(I,J,K,bi,bj) = Tfreezing |
|
|
ENDIF |
|
|
ENDDO |
|
|
ENDDO |
|
|
ENDDO |
|
|
ENDDO |
|
|
ENDDO |
|
|
ENDIF |
|
|
|
|
103 |
CALL PLOT_FIELD_XYZRL( theta, 'Initial Temperature' , |
CALL PLOT_FIELD_XYZRL( theta, 'Initial Temperature' , |
104 |
& Nr, 1, myThid ) |
& Nr, 1, myThid ) |
105 |
|
|