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 |
_RL rad, rD, Tfreezing |
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 |
|
|
103 |
|
C-- Check that there are no values of temperature below freezing point. |
104 |
|
Tfreezing=-1.9 |
105 |
|
IF ( allowFreezing ) THEN |
106 |
|
DO bj = myByLo(myThid), myByHi(myThid) |
107 |
|
DO bi = myBxLo(myThid), myBxHi(myThid) |
108 |
|
DO K=1,Nr |
109 |
|
DO J=1-Oly,sNy+Oly |
110 |
|
DO I=1-Olx,sNx+Olx |
111 |
|
IF (theta(I,J,k,bi,bj) .LT. Tfreezing) THEN |
112 |
|
theta(I,J,K,bi,bj) = Tfreezing |
113 |
|
ENDIF |
114 |
|
ENDDO |
115 |
|
ENDDO |
116 |
|
ENDDO |
117 |
|
ENDDO |
118 |
|
ENDDO |
119 |
|
ENDIF |
120 |
|
|
121 |
CALL PLOT_FIELD_XYZRL( theta, 'Initial Temperature' , |
CALL PLOT_FIELD_XYZRL( theta, 'Initial Temperature' , |
122 |
& Nr, 1, myThid ) |
& Nr, 1, myThid ) |
123 |
|
|