/[MITgcm]/MITgcm/pkg/atm_compon_interf/atm_store_heatflux.F
ViewVC logotype

Contents of /MITgcm/pkg/atm_compon_interf/atm_store_heatflux.F

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


Revision 1.2 - (show annotations) (download)
Sun Apr 18 15:38:45 2004 UTC (20 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint53b_pre, checkpoint52n_post, checkpoint52m_post, checkpoint53a_post, checkpoint53b_post, checkpoint53
Changes since 1.1: +4 -4 lines
updated after changes in pkg/aim_v23

1 C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/atm_store_heatflux.F,v 1.1 2003/12/15 02:44:48 jmc Exp $
2 C $Name: $
3
4 #include "AIM_OPTIONS.h"
5
6 CStartOfInterface
7 SUBROUTINE ATM_STORE_HEATFLUX( bi,bj,
8 I myCurrentTime,
9 I myCurrentIter,
10 I myThid )
11 C /==========================================================\
12 C | SUBROUTINE ATM_STORE_HEATFLUX |
13 C | o Routine for saving atmos. lower boundary heat flux for |
14 C | export to coupling layer. |
15 C |==========================================================|
16 C | This version interfaces to the MITgcm AIMPHYS package. |
17 C \==========================================================/
18 IMPLICIT NONE
19
20 C == Global variables ==
21 #include "AIM_SIZE.h"
22 #include "EEPARAMS.h"
23 #include "PARAMS.h"
24 #include "CPL_PARAMS.h"
25 C == Global variables for coupling interface ==
26 #include "ATMCPL.h"
27 C == AIMPHYS specific global data ==
28 #include "com_physcon.h"
29 #include "com_physvar.h"
30
31
32 C == Routine arguments ==
33 C bi,bj - Tile index
34 C myThid - Thread number for this instance of the routine
35 C myCurrentIter - Current timestep number
36 C myCurrentTime - Current model time
37 INTEGER bi, bj
38 _RL myCurrentTime
39 INTEGER myCurrentIter
40 INTEGER myThid
41 CEndOfInterface
42
43 C == Local variables ==
44 C I,J,K,II - Loop counters
45 INTEGER I,J,K,II
46 _RL cplTimeFraction
47
48 C o Accumulate heat flux that will be exported to the coupling layer.
49 C Heat flux at lower boundary is sum of the upward long-wave radiation
50 C (variable SLR in COMMON/FLUXES/, com_physvar.h), downward short-wave
51 C radiation (variable SSR in COMMON/FLUXES/, com_physvar.h), downward
52 C sensible heat flux (variable SHF in COMMON/FLUXES/, com_physvar.h)
53 C and latent heat flux due to evaporation (variable EVAP in
54 C COMMON/FLUXES/, com_physvar.h). Index 2 of SHF and EVAP give fluxes
55 C over sea. SLR is the flux that is radiated by the ocean/land. SSR
56 C is the incoming short-wave radiation that is absorbed by the ocean/land.
57 C Variable ALHC is the latent heat of evaporation/condensation (see
58 C COMMON/PHYCON/, com_phycon.h).
59 C HeatFlux is defined with positive into the atmosphere, units are W/m^2
60 C (* deltaTtracer).
61 cplTimeFraction = 1. _d 0 / DFLOAT(cplSendFrq_iter)
62 c DO bj=myByLo(myThid),myByHi(myThid)
63 c DO bi=myBxLo(myThid),myBxHi(myThid)
64 HeatFluxTime(bi,bj) = HeatFluxTime(bi,bj) + cplTimeFraction
65 DO J=1,sNy
66 DO I=1,sNx
67 II = (sNx)*(J-1)+I
68 HeatFlux(I,J,bi,bj) =
69 & HeatFlux(I,J,bi,bj) +
70 & ( EVAP(II,2,myThid)*ALHC
71 & + SHF(II,2,myThid)
72 & + SLR(II,2,myThid)
73 & - SSR(II,2,myThid) )*cplTimeFraction
74 ENDDO
75 ENDDO
76 c ENDDO
77 c ENDDO
78
79 RETURN
80 END

  ViewVC Help
Powered by ViewVC 1.1.22