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

Annotation of /MITgcm/pkg/aim_compon_interf/atm_store_heatflux.F

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


Revision 1.4 - (hide annotations) (download)
Sat Dec 4 00:13:48 2004 UTC (19 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57t_post, checkpoint58l_post, checkpoint57b_post, checkpoint64a, checkpoint57o_post, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint58e_post, checkpoint57v_post, checkpoint58u_post, checkpoint57f_post, checkpoint57s_post, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint57k_post, checkpoint57d_post, checkpoint57g_post, checkpoint64, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint57c_pre, checkpoint58r_post, checkpoint57i_post, checkpoint57y_post, checkpoint58g_post, checkpoint57x_post, checkpoint57m_post, checkpoint58n_post, checkpoint58x_post, checkpoint57g_pre, checkpoint58t_post, checkpoint58h_post, checkpoint57e_post, checkpoint58w_post, checkpoint58j_post, checkpoint57h_post, checkpoint57y_pre, checkpoint57f_pre, checkpoint57a_post, checkpoint58q_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint57r_post, checkpoint59, checkpoint58, checkpoint57a_pre, checkpoint57, eckpoint57e_pre, checkpoint57h_done, checkpoint58f_post, checkpoint57n_post, checkpoint58d_post, checkpoint58c_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint58a_post, checkpoint58i_post, checkpoint57q_post, checkpoint58o_post, checkpoint57z_post, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint57c_post, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint58y_post, checkpoint58k_post, checkpoint58v_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint57j_post, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint58b_post, checkpoint57h_pre, checkpoint58m_post, checkpoint57l_post
Changes since 1.3: +1 -2 lines
update comments

1 jmc 1.4 C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/atm_store_heatflux.F,v 1.3 2004/05/21 20:00:48 jmc Exp $
2 jmc 1.2 C $Name: $
3 jmc 1.1
4 jmc 1.3 #include "CPP_OPTIONS.h"
5 jmc 1.1
6     CStartOfInterface
7     SUBROUTINE ATM_STORE_HEATFLUX( bi,bj,
8 jmc 1.3 I myTime,
9     I myIter,
10 jmc 1.1 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 jmc 1.3 #include "SIZE.h"
22 jmc 1.1 #include "EEPARAMS.h"
23     #include "PARAMS.h"
24     #include "CPL_PARAMS.h"
25 jmc 1.3 C == Global variables (main model)
26     #include "FFIELDS.h"
27 jmc 1.1 C == Global variables for coupling interface ==
28     #include "ATMCPL.h"
29    
30    
31     C == Routine arguments ==
32 jmc 1.3 C bi,bj - Tile index
33     C myThid - Thread number for this instance of the routine
34     C myIter - Current timestep number
35     C myTime - Current model time
36 jmc 1.1 INTEGER bi, bj
37 jmc 1.3 _RL myTime
38     INTEGER myIter
39 jmc 1.1 INTEGER myThid
40     CEndOfInterface
41    
42 jmc 1.3 #ifdef COMPONENT_MODULE
43 jmc 1.1 C == Local variables ==
44 jmc 1.3 C i,j - Loop counters
45     INTEGER i,j
46 jmc 1.1 _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 jmc 1.3
61     cplTimeFraction = 1. _d 0 / DFLOAT(cplSendFrq_iter)
62     HeatFluxTime(bi,bj) = HeatFluxTime(bi,bj) + cplTimeFraction
63     DO j=1,sNy
64     DO i=1,sNx
65     HeatFlux(i,j,bi,bj) = HeatFlux(i,j,bi,bj)
66     & + Qnet(i,j,bi,bj)*cplTimeFraction
67 jmc 1.1 ENDDO
68 jmc 1.3 ENDDO
69    
70     #endif /* COMPONENT_MODULE */
71 jmc 1.1
72     RETURN
73     END

  ViewVC Help
Powered by ViewVC 1.1.22