48 |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
49 |
CHARACTER*10 mon_var |
CHARACTER*10 mon_var |
50 |
CHARACTER*2 mon_sufx(0:2) |
CHARACTER*2 mon_sufx(0:2) |
51 |
|
_RS locMask(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
52 |
_RS yBand(2), locDr(1) |
_RS yBand(2), locDr(1) |
53 |
_RL theMin(2), theMax(2) |
_RL theMin(2), theMax(2) |
54 |
_RL theMean(2), theVar(2), theVol(2) |
_RL theMean(2), theVar(2), theVol(2) |
55 |
_RL theMeanG, theVolG |
_RL theMeanG, theVolG |
56 |
_RL theMean1, theMean2, theEnergy |
_RL theMean1, theMean2, theEnergy |
57 |
_RL theMin0, theMax0, theSD, theDel2 |
_RL theMin0, theMax0, theSD, theDel2 |
58 |
|
INTEGER i,j,bi,bj |
59 |
#ifdef ALLOW_MNC |
#ifdef ALLOW_MNC |
60 |
INTEGER k |
INTEGER k |
61 |
#endif |
#endif |
111 |
C-- endif master cpu io |
C-- endif master cpu io |
112 |
ENDIF |
ENDIF |
113 |
|
|
114 |
|
C-- make a local copy of iceMask into "RS" array: |
115 |
|
DO bj = myByLo(myThid), myByHi(myThid) |
116 |
|
DO bi = myBxLo(myThid), myBxHi(myThid) |
117 |
|
DO j=1-OLy,sNy+OLy |
118 |
|
DO i=1-OLx,sNx+OLx |
119 |
|
locMask(i,j,bi,bj) = iceMask(i,j,bi,bj) |
120 |
|
ENDDO |
121 |
|
ENDDO |
122 |
|
ENDDO |
123 |
|
ENDDO |
124 |
|
|
125 |
CALL MON_SET_PREF('thSI_',myThid) |
CALL MON_SET_PREF('thSI_',myThid) |
126 |
CALL MON_OUT_RL('time_sec', myTime,mon_string_none,myThid) |
CALL MON_OUT_RL('time_sec', myTime,mon_string_none,myThid) |
127 |
|
|
128 |
C-- Ice area and Ice thickness : |
C-- Ice area and Ice thickness : |
129 |
CALL MON_STATS_LATBND_RL( |
CALL MON_STATS_LATBND_RL( |
130 |
I 1, 1, 1, 2, yBand, |
I 1, 1, 1, 2, yBand, |
131 |
I iceHeight, iceMask, maskH, rA, yC, locDr, |
I iceHeight, locMask, maskH, rA, yC, locDr, |
132 |
O theMin, theMax, theMean, theVar, theVol, |
O theMin, theMax, theMean, theVar, theVol, |
133 |
I myThid ) |
I myThid ) |
134 |
theVolG= theVol(1)+theVol(2) |
theVolG= theVol(1)+theVol(2) |
150 |
C-- Snow thickness : |
C-- Snow thickness : |
151 |
CALL MON_STATS_LATBND_RL( |
CALL MON_STATS_LATBND_RL( |
152 |
I 1, 1, 1, 2, yBand, |
I 1, 1, 1, 2, yBand, |
153 |
I snowHeight, iceMask, maskH, rA, yC, locDr, |
I snowHeight, locMask, maskH, rA, yC, locDr, |
154 |
O theMin, theMax, theMean, theVar, theVol, |
O theMin, theMax, theMean, theVar, theVol, |
155 |
I myThid ) |
I myThid ) |
156 |
theVolG= theVol(1)+theVol(2) |
theVolG= theVol(1)+theVol(2) |
166 |
CALL MON_OUT_RL(mon_var, theMax(1), mon_sufx(1), myThid) |
CALL MON_OUT_RL(mon_var, theMax(1), mon_sufx(1), myThid) |
167 |
CALL MON_OUT_RL(mon_var, theMax(2), mon_sufx(2), myThid) |
CALL MON_OUT_RL(mon_var, theMax(2), mon_sufx(2), myThid) |
168 |
|
|
|
C-- Total Energy : |
|
|
CALL MON_STATS_RL( |
|
|
I 1, Qice1, iceMask, iceHeight, rA, locDr, |
|
|
O theMin0,theMax0,theMean1,theSD,theDel2,theVolG, |
|
|
I myThid ) |
|
|
CALL MON_STATS_RL( |
|
|
I 1, Qice2, iceMask, iceHeight, rA, locDr, |
|
|
O theMin0,theMax0,theMean2,theSD,theDel2,theVolG, |
|
|
I myThid ) |
|
|
theEnergy = theEnergy -rhoi*(theMean1+theMean2)*theVolG/2 |
|
|
mon_var='TotEnerg' |
|
|
CALL MON_OUT_RL(mon_var, theEnergy, mon_sufx(0), myThid) |
|
|
|
|
169 |
C-- Surface Temp. : |
C-- Surface Temp. : |
170 |
CALL MON_STATS_LATBND_RL( |
CALL MON_STATS_LATBND_RL( |
171 |
I 1, 1, 1, 2, yBand, |
I 1, 1, 1, 2, yBand, |
172 |
I Tsrf, iceMask, maskH, rA, yC, locDr, |
I Tsrf, locMask, maskH, rA, yC, locDr, |
173 |
O theMin, theMax, theMean, theVar, theVol, |
O theMin, theMax, theMean, theVar, theVol, |
174 |
I myThid ) |
I myThid ) |
175 |
theVolG= theVol(1)+theVol(2) |
theVolG= theVol(1)+theVol(2) |
187 |
CALL MON_OUT_RL(mon_var, theMax(1), mon_sufx(1), myThid) |
CALL MON_OUT_RL(mon_var, theMax(1), mon_sufx(1), myThid) |
188 |
CALL MON_OUT_RL(mon_var, theMax(2), mon_sufx(2), myThid) |
CALL MON_OUT_RL(mon_var, theMax(2), mon_sufx(2), myThid) |
189 |
|
|
190 |
|
C-- make a local copy of iceMask*iceHeight into "RS" array: |
191 |
|
DO bj = myByLo(myThid), myByHi(myThid) |
192 |
|
DO bi = myBxLo(myThid), myBxHi(myThid) |
193 |
|
DO j=1-OLy,sNy+OLy |
194 |
|
DO i=1-OLx,sNx+OLx |
195 |
|
locMask(i,j,bi,bj)=iceMask(i,j,bi,bj)*iceHeight(i,j,bi,bj) |
196 |
|
ENDDO |
197 |
|
ENDDO |
198 |
|
ENDDO |
199 |
|
ENDDO |
200 |
|
|
201 |
C-- 1rst level (volume-mean) Temp. : |
C-- 1rst level (volume-mean) Temp. : |
202 |
CALL MON_STATS_LATBND_RL( |
CALL MON_STATS_LATBND_RL( |
203 |
I 1, 1, 1, 2, yBand, |
I 1, 1, 1, 2, yBand, |
204 |
I Tice1, iceMask, iceHeight, rA, yC, locDr, |
I Tice1, locMask, maskH, rA, yC, locDr, |
205 |
O theMin, theMax, theMean, theVar, theVol, |
O theMin, theMax, theMean, theVar, theVol, |
206 |
I myThid ) |
I myThid ) |
207 |
theVolG = theVol(1)+theVol(2) |
theVolG = theVol(1)+theVol(2) |
226 |
C-- 2nd level (volume-mean) Temp. : |
C-- 2nd level (volume-mean) Temp. : |
227 |
CALL MON_STATS_LATBND_RL( |
CALL MON_STATS_LATBND_RL( |
228 |
I 1, 1, 1, 2, yBand, |
I 1, 1, 1, 2, yBand, |
229 |
I Tice2, iceMask, iceHeight, rA, yC, locDr, |
I Tice2, locMask, maskH, rA, yC, locDr, |
230 |
O theMin, theMax, theMean, theVar, theVol, |
O theMin, theMax, theMean, theVar, theVol, |
231 |
I myThid ) |
I myThid ) |
232 |
theMeanG= theMean(1)*theVol(1)+theMean(2)*theVol(2) |
theMeanG= theMean(1)*theVol(1)+theMean(2)*theVol(2) |
243 |
CALL MON_OUT_RL(mon_var, theMax(1), mon_sufx(1), myThid) |
CALL MON_OUT_RL(mon_var, theMax(1), mon_sufx(1), myThid) |
244 |
CALL MON_OUT_RL(mon_var, theMax(2), mon_sufx(2), myThid) |
CALL MON_OUT_RL(mon_var, theMax(2), mon_sufx(2), myThid) |
245 |
|
|
246 |
|
C-- Total Energy : |
247 |
|
CALL MON_STATS_RL( |
248 |
|
I 1, Qice1, locMask, maskH, rA, locDr, |
249 |
|
O theMin0,theMax0,theMean1,theSD,theDel2,theVolG, |
250 |
|
I myThid ) |
251 |
|
CALL MON_STATS_RL( |
252 |
|
I 1, Qice2, locMask, maskH, rA, locDr, |
253 |
|
O theMin0,theMax0,theMean2,theSD,theDel2,theVolG, |
254 |
|
I myThid ) |
255 |
|
theEnergy = theEnergy -rhoi*(theMean1+theMean2)*theVolG/2 |
256 |
|
mon_var='TotEnerg' |
257 |
|
CALL MON_OUT_RL(mon_var, theEnergy, mon_sufx(0), myThid) |
258 |
|
|
259 |
IF ( MASTER_CPU_IO(myThid) ) THEN |
IF ( MASTER_CPU_IO(myThid) ) THEN |
260 |
C-- only the master thread is allowed to switch On/Off mon_write_stdout |
C-- only the master thread is allowed to switch On/Off mon_write_stdout |
261 |
C & mon_write_mnc (since it's the only thread that uses those flags): |
C & mon_write_mnc (since it's the only thread that uses those flags): |