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

Annotation of /MITgcm/pkg/atm_compon_interf/atm_store_qshortwave.F

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


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

1 jmc 1.2 C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/atm_store_qshortwave.F,v 1.1 2003/12/15 02:44:48 jmc Exp $
2     C $Name: $
3 jmc 1.1
4     #include "AIM_OPTIONS.h"
5    
6     CStartOfInterface
7     SUBROUTINE ATM_STORE_QSHORTWAVE(bi,bj,
8     I myCurrentTime,
9     I myCurrentIter,
10     I myThid )
11     C /==========================================================\
12     C | SUBROUTINE ATM_STORE_QSHORTWAVE |
13     C | o Routine for saving atmos. lower bdy shortwave heat flux|
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_physvar.h"
29    
30    
31     C == Routine arguments ==
32     C bi,bj - Tile index
33     C myThid - Thread number for this instance of the routine
34     C myCurrentIter - Current timestep number
35     C myCurrentTime - Current model time
36     INTEGER bi, bj
37     _RL myCurrentTime
38     INTEGER myCurrentIter
39     INTEGER myThid
40     CEndOfInterface
41    
42     C == Local variables ==
43     C I,J,K,II - Loop counters
44     INTEGER I,J,K,II
45     _RL cplTimeFraction
46    
47     C o Accumulate heat flux that will be exported to the coupling layer.
48     C +ve into atmos., W/m^2.
49     cplTimeFraction = 1. _d 0 / DFLOAT(cplSendFrq_iter)
50     c DO bj=myByLo(myThid),myByHi(myThid)
51     c DO bi=myBxLo(myThid),myBxHi(myThid)
52     QshortwaveTime(bi,bj) = QshortwaveTime(bi,bj) + cplTimeFraction
53     DO J=1,sNy
54     DO I=1,sNx
55     II = (sNx)*(J-1)+I
56     Qshortwave(I,J,bi,bj) =
57 jmc 1.2 & Qshortwave(I,J,bi,bj) - SSR(II,2,myThid)*cplTimeFraction
58 jmc 1.1 ENDDO
59     ENDDO
60     c ENDDO
61     c ENDDO
62    
63     RETURN
64     END

  ViewVC Help
Powered by ViewVC 1.1.22