| 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 |
jscott |
1.3 |
_RS nper ! number of atm steps in a coupled period |
| 32 |
jscott |
1.1 |
|
| 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 |
jscott |
1.1 |
ENDIF |
| 72 |
|
|
|
| 73 |
|
|
ENDDO |
| 74 |
|
|
ENDDO |
| 75 |
|
|
|
| 76 |
jscott |
1.3 |
C PRINT *,'***Bottom Norm Fluxes' |
| 77 |
|
|
C PRINT *,'pass_runoff:',pass_runoff(JBUGI,JBUGJ) |
| 78 |
|
|
C PRINT *,'pass_precip:',pass_precip(JBUGI,JBUGJ) |
| 79 |
|
|
C PRINT *,'pass_evap:', pass_evap(JBUGI,JBUGJ) |
| 80 |
|
|
C PRINT *,'pass_qnet:',pass_qnet(JBUGI,JBUGJ) |
| 81 |
|
|
C PRINT *,'pass_fu:',pass_fu(JBUGI,JBUGJ) |
| 82 |
|
|
C PRINT *,'Icemask: ',icemask(JBUGI,JBUGJ,1,1) |
| 83 |
|
|
C PRINT *,'Iceheight: ',iceheight(JBUGI,JBUGJ,1,1) |
| 84 |
|
|
C PRINT *,'sHeat: ',sHeating(JBUGI,JBUGJ,1,1) |
| 85 |
|
|
C PRINT *,'snowPrc: ',snowPrc(JBUGI,JBUGJ,1,1) |
| 86 |
|
|
C PRINT *,'icFrwAtm: ',icFrwAtm(JBUGI,JBUGJ,1,1) |
| 87 |
jscott |
1.1 |
|
| 88 |
|
|
CALL INIT_SUMVARS( myThid) |
| 89 |
|
|
|
| 90 |
|
|
RETURN |
| 91 |
|
|
END |