/[MITgcm]/MITgcm_contrib/jscott/pkg_atm2d/norm_ocn_fluxes.F
ViewVC logotype

Annotation of /MITgcm_contrib/jscott/pkg_atm2d/norm_ocn_fluxes.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Tue Aug 22 20:21:39 2006 UTC (19 years, 6 months ago) by jscott
Branch: MAIN
Changes since 1.1: +15 -3 lines
new revision of atm2d package

1 jscott 1.1 #include "ctrparam.h"
2     #include "ATM2D_OPTIONS.h"
3    
4     C !INTERFACE:
5     SUBROUTINE NORM_OCN_FLUXES( myThid )
6     C *==========================================================*
7     C | Converts non-seaice quantities to MITGCM ocn sign/units. |
8     c | Seaice quantities put into seaice model sign/units. |
9     C *==========================================================*
10     IMPLICIT NONE
11    
12     #include "ATMSIZE.h"
13     #include "SIZE.h"
14     #include "GRID.h"
15     #include "EEPARAMS.h"
16    
17     C === Global SeaIce Variables ===
18     #include "THSICE_VARS.h"
19    
20     C === Atmos/Ocean/Seaice Interface Variables ===
21     #include "ATM2D_VARS.h"
22    
23    
24     C !INPUT/OUTPUT PARAMETERS:
25     C === Routine arguments ===
26     C myThid - Thread no. that called this routine.
27     INTEGER myThid
28    
29     C LOCAL VARIABLES:
30     INTEGER i,j
31     _RS nper
32    
33     nper= dtcouplo/dtatmo
34    
35     DO j=1, sNy
36     DO i=1, sNx
37    
38 jscott 1.2 IF (maskC(i,j,1,1,1) .EQ. 1.) THEN
39 jscott 1.1
40     pass_runoff(i,j)= sum_runoff(i,j)/nper
41     pass_precip(i,j)= sum_precip(i,j)/nper
42     pass_evap(i,j)= -sum_evap(i,j)/nper !convert sign convention here
43     pass_qnet(i,j)= sum_qnet(i,j)/nper
44     pass_fu(i,j)= sum_fu(i,j)/nper
45     pass_fv(i,j)= sum_fv(i,j)/nper
46     pass_wspeed(i,j)= sum_wspeed(i,j)/nper
47     pass_solarnet(i,j)= -sum_solarnet(i,j)/nper !change sign
48 jscott 1.2 pass_slp(i,j)= sum_slp(i,j)/nper*100. _d 0 !convert to Pa
49 jscott 1.1 pass_pCO2(i,j)= sum_pCO2(i,j)/nper
50    
51     sHeating(i,j,1,1) = sum_sHeat(i,j)/nper ! from temp-solve step
52     flxCndBt(i,j,1,1)= sum_flxCnB(i,j)/nper ! from temp-solve step
53     pass_PrcAtm(i,j)= sum_prcIce(i,j)/nper
54     icFrwAtm(i,j,1,1)= sum_evapIce(i,j)/nper
55    
56     C Load the following directly into the seaice common block
57     snowPrc(i,j,1,1)= sum_snowPrc(i,j)/nper
58    
59 jscott 1.2 C Seaice diagnostics - tally at end of coupled period
60     sum_iceMask(i,j)=sum_iceMask(i,j) +
61     & iceMask(i,j,1,1)*dtcouplo
62     sum_iceHeight(i,j)= sum_iceHeight(i,j) +
63     & iceHeight(i,j,1,1)*dtcouplo
64     IF (iceMask(i,j,1,1) .NE. 0. _d 0)
65     & sum_iceTime(i,j)= sum_iceTime(i,j) + dtcouplo
66     sum_oceMxLT(i,j)=sum_oceMxLT(i,j) +
67     & tOceMxL(i,j,1,1)*dtcouplo
68     sum_oceMxLS(i,j)=sum_oceMxLS(i,j) +
69     & sOceMxL(i,j,1,1)*dtcouplo
70    
71     C IF (iceMask(i,j,1,1) .NE. 0. _d 0) THEN
72 jscott 1.1 C PRINT *,'Ice at ',i,j
73     C PRINT *,'sHeat',sHeating(i,j,1,1)
74     C PRINT *,'flxCnB',flxCndBt(i,j,1,1)
75     C PRINT *,'PrcAtm',pass_PrcAtm(i,j)
76     C PRINT *,'snowPrc',snowPrc(i,j,1,1)
77     C PRINT *,'sum_nowPrc',sum_snowPrc(i,j)
78     C ENDIF
79    
80     ENDIF
81    
82     ENDDO
83     ENDDO
84    
85     PRINT *,'***Bottom Norm Fluxes'
86     PRINT *,'pass_runoff:',pass_runoff(JBUGI,JBUGJ)
87     PRINT *,'pass_precip:',pass_precip(JBUGI,JBUGJ)
88     PRINT *,'pass_evap:', pass_evap(JBUGI,JBUGJ)
89     PRINT *,'pass_qnet:',pass_qnet(JBUGI,JBUGJ)
90     PRINT *,'pass_fu:',pass_fu(JBUGI,JBUGJ)
91     PRINT *,'Icemask: ',icemask(JBUGI,JBUGJ,1,1)
92     PRINT *,'Iceheight: ',iceheight(JBUGI,JBUGJ,1,1)
93     PRINT *,'sHeat: ',sHeating(JBUGI,JBUGJ,1,1)
94     PRINT *,'snowPrc: ',snowPrc(JBUGI,JBUGJ,1,1)
95     PRINT *,'icFrwAtm: ',icFrwAtm(JBUGI,JBUGJ,1,1)
96    
97     CALL INIT_SUMVARS( myThid)
98    
99     RETURN
100     END

  ViewVC Help
Powered by ViewVC 1.1.22