/[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.4 - (hide annotations) (download)
Wed Sep 11 20:20:34 2013 UTC (10 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
- regroup per field origin (model & pkgs) the coupling storage routines
   (which accumalate in time each coupling field)

1 jmc 1.4 C $Header: /u/gcmpack/MITgcm/pkg/atm_compon_interf/atm_store_qshortwave.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_QSHORTWAVE(bi,bj,
8 jmc 1.3 I myTime,
9     I myIter,
10 jmc 1.1 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 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 jmc 1.3 C +ve into atmos., W/m2.
50    
51     cplTimeFraction = 1. _d 0 / DFLOAT(cplSendFrq_iter)
52     qShortWaveTime(bi,bj) = qShortWaveTime(bi,bj) + cplTimeFraction
53     DO j=1,sNy
54     DO i=1,sNx
55     qShortWave(i,j,bi,bj) = qShortWave(i,j,bi,bj)
56     & + Qsw(i,j,bi,bj)*cplTimeFraction
57 jmc 1.1 ENDDO
58 jmc 1.3 ENDDO
59    
60     #endif /* COMPONENT_MODULE */
61 jmc 1.1
62     RETURN
63     END

  ViewVC Help
Powered by ViewVC 1.1.22