29 |
INTEGER myThid |
INTEGER myThid |
30 |
CEndOfInterface |
CEndOfInterface |
31 |
|
|
32 |
|
C == Local variables in common == |
33 |
|
C tmpfld - Temporary array used to compute & write Total Depth |
34 |
|
C has to be in common for multi threading |
35 |
|
COMMON / LOCAL_INI_MASKS_ETC / tmpfld |
36 |
|
_RS tmpfld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
37 |
|
|
38 |
C == Local variables == |
C == Local variables == |
39 |
C bi,bj - Loop counters |
C bi,bj - Loop counters |
40 |
C I,J,K |
C I,J,K |
46 |
#endif |
#endif |
47 |
_RL hFacCtmp |
_RL hFacCtmp |
48 |
_RL hFacMnSz |
_RL hFacMnSz |
|
_RS tmpfld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
|
49 |
|
|
50 |
C- Calculate lopping factor hFacC : over-estimate the part inside of the domain |
C- Calculate lopping factor hFacC : over-estimate the part inside of the domain |
51 |
C taking into account the lower_R Boundary (Bathymetrie / Top of Atmos) |
C taking into account the lower_R Boundary (Bathymetrie / Top of Atmos) |
162 |
ENDDO |
ENDDO |
163 |
ENDDO |
ENDDO |
164 |
C _EXCH_XY_R4( recip_Rcol, myThid ) |
C _EXCH_XY_R4( recip_Rcol, myThid ) |
|
CALL WRITE_FLD_XY_RS( 'Depth',' ',tmpfld,0,myThid) |
|
|
CALL WRITE_FLD_XYZ_RS( 'hFacC',' ',hFacC,0,myThid) |
|
|
C CALL MDSWRITEFIELD( 'Depth', writeBinaryPrec, .TRUE., |
|
|
C & 'RS', 1, tmpfld, 1, -1, myThid ) |
|
165 |
|
|
166 |
C hFacW and hFacS (at U and V points) |
C hFacW and hFacS (at U and V points) |
167 |
DO bj=myByLo(myThid), myByHi(myThid) |
DO bj=myByLo(myThid), myByHi(myThid) |
195 |
ENDDO |
ENDDO |
196 |
ENDDO |
ENDDO |
197 |
|
|
198 |
|
C- Write to disk: Total Column Thickness & hFac(C,W,S): |
199 |
|
_BARRIER |
200 |
|
_BEGIN_MASTER( myThid ) |
201 |
|
C CALL MDSWRITEFIELD( 'Depth', writeBinaryPrec, .TRUE., |
202 |
|
C & 'RS', 1, tmpfld, 1, -1, myThid ) |
203 |
|
CALL WRITE_FLD_XY_RS( 'Depth',' ',tmpfld,0,myThid) |
204 |
|
CALL WRITE_FLD_XYZ_RS( 'hFacC',' ',hFacC,0,myThid) |
205 |
|
CALL WRITE_FLD_XYZ_RS( 'hFacW',' ',hFacW,0,myThid) |
206 |
|
CALL WRITE_FLD_XYZ_RS( 'hFacS',' ',hFacS,0,myThid) |
207 |
|
_END_MASTER(myThid) |
208 |
|
|
209 |
CALL PLOT_FIELD_XYZRS( hFacC, 'hFacC' , Nr, 1, myThid ) |
CALL PLOT_FIELD_XYZRS( hFacC, 'hFacC' , Nr, 1, myThid ) |
210 |
CALL PLOT_FIELD_XYZRS( hFacW, 'hFacW' , Nr, 1, myThid ) |
CALL PLOT_FIELD_XYZRS( hFacW, 'hFacW' , Nr, 1, myThid ) |
211 |
CALL PLOT_FIELD_XYZRS( hFacS, 'hFacS' , Nr, 1, myThid ) |
CALL PLOT_FIELD_XYZRS( hFacS, 'hFacS' , Nr, 1, myThid ) |