/[MITgcm]/MITgcm/pkg/atm2d/norm_ocn_fluxes.F
ViewVC logotype

Contents of /MITgcm/pkg/atm2d/norm_ocn_fluxes.F

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


Revision 1.7 - (show annotations) (download)
Thu May 2 20:58:47 2013 UTC (11 years ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, HEAD
Changes since 1.6: +3 -3 lines
forgot this one (move snow-precip array (snowPrc) from THSICE_VARS.h to ATM2D_VARS.h)

1 C $Header: /u/gcmpack/MITgcm/pkg/atm2d/norm_ocn_fluxes.F,v 1.6 2011/06/09 18:37:32 jscott Exp $
2 C $Name: $
3
4 #include "ctrparam.h"
5 #include "ATM2D_OPTIONS.h"
6
7 C !INTERFACE:
8 SUBROUTINE NORM_OCN_FLUXES( myThid )
9 C *==========================================================*
10 C | Converts non-seaice quantities to MITGCM ocn sign/units. |
11 c | Seaice quantities put into seaice model sign/units. |
12 C *==========================================================*
13 IMPLICIT NONE
14
15 #include "ATMSIZE.h"
16 #include "SIZE.h"
17 #include "GRID.h"
18 #include "EEPARAMS.h"
19 #include "FFIELDS.h"
20
21 C === Global SeaIce Variables ===
22 #include "THSICE_VARS.h"
23
24 C === Atmos/Ocean/Seaice Interface Variables ===
25 #include "ATM2D_VARS.h"
26
27
28 C !INPUT/OUTPUT PARAMETERS:
29 C === Routine arguments ===
30 C myThid - Thread no. that called this routine.
31 INTEGER myThid
32
33 C LOCAL VARIABLES:
34 INTEGER i,j
35 _RS nper ! number of atm steps in a coupled period
36
37 nper= dtcouplo/dtatmo
38
39 DO j=1, sNy
40 DO i=1, sNx
41
42 IF (maskC(i,j,1,1,1) .EQ. 1.) THEN
43
44 pass_runoff(i,j)= sum_runoff(i,j)/nper
45 pass_precip(i,j)= sum_precip(i,j)/nper
46 pass_evap(i,j)= -sum_evap(i,j)/nper !convert sign convention here
47 pass_qnet(i,j)= sum_qnet(i,j)/nper
48 pass_fu(i,j)= sum_fu(i,j)/nper
49 pass_fv(i,j)= sum_fv(i,j)/nper
50 pass_wspeed(i,j)= sum_wspeed(i,j)/nper
51 pass_solarnet(i,j)= -sum_solarnet(i,j)/nper !change sign
52 pass_slp(i,j)= sum_slp(i,j)/nper*100. _d 0 !convert to Pa
53 pass_pCO2(i,j)= sum_pCO2(i,j)*1. _d -6/nper
54
55 sHeating(i,j,1,1) = sum_sHeat(i,j)/nper ! from temp-solve step
56 flxCndBt(i,j,1,1)= sum_flxCnB(i,j)/nper ! from temp-solve step
57 pass_PrcAtm(i,j)= sum_prcIce(i,j)/nper
58 icFrwAtm(i,j,1,1)= sum_evapIce(i,j)/nper
59
60 C pass_sIceLoad(i,j)=sIceLoad(i,j,1,1) !do this in thsice_step_fwd
61
62 C Load the following directly into the seaice common block
63 snowPrc(i,j)= sum_snowPrc(i,j)/nper
64
65 C Double check that wspeed>0 (unlikely, but possible given anomaly coupling)
66 IF ( pass_wspeed(i,j) .LT. 0. _d 0)
67 & pass_wspeed(i,j) = 0. _d 0
68
69 C Seaice diagnostics - tally at end of coupled period
70 sum_iceMask(i,j)=sum_iceMask(i,j) +
71 & iceMask(i,j,1,1)*dtcouplo
72 sum_iceHeight(i,j)= sum_iceHeight(i,j) +
73 & iceHeight(i,j,1,1)*dtcouplo
74 IF (iceMask(i,j,1,1) .NE. 0. _d 0)
75 & sum_iceTime(i,j)= sum_iceTime(i,j) + dtcouplo
76 sum_oceMxLT(i,j)=sum_oceMxLT(i,j) +
77 & tOceMxL(i,j,1,1)*dtcouplo
78 sum_oceMxLS(i,j)=sum_oceMxLS(i,j) +
79 & sOceMxL(i,j,1,1)*dtcouplo
80
81 ENDIF
82
83 ENDDO
84 ENDDO
85
86 CALL INIT_SUMVARS( myThid)
87
88 RETURN
89 END

  ViewVC Help
Powered by ViewVC 1.1.22