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

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

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


Revision 1.4 - (show 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 C $Header: /u/gcmpack/MITgcm/pkg/atm_compon_interf/atm_store_airco2.F,v 1.3 2013/01/21 21:52:03 jmc Exp $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_OPTIONS.h"
6 #ifdef ALLOW_AIM
7 # include "AIM_OPTIONS.h"
8 #endif
9
10 CBOP
11 C !ROUTINE: ATM_STORE_AIRCO2
12 C !INTERFACE:
13 SUBROUTINE ATM_STORE_AIRCO2( bi,bj,
14 I myTime, myIter, myThid )
15
16 C !DESCRIPTION: \bv
17 C *==========================================================*
18 C | SUBROUTINE ATM_STORE_AIRCO2
19 C | o Routine for saving atmos. CO2 concentration from ??? pkg
20 C | for export to coupling layer.
21 C *==========================================================*
22 C | This version interfaces to the ??? package.
23 C *==========================================================*
24 C \ev
25
26 C !USES:
27 IMPLICIT NONE
28
29 C == Global variables ==
30 #ifdef ALLOW_AIM
31 # include "AIM_SIZE.h"
32 #else
33 # include "SIZE.h"
34 #endif
35
36 #include "EEPARAMS.h"
37 #include "PARAMS.h"
38 #include "CPL_PARAMS.h"
39 #ifdef ALLOW_AIM
40 #include "AIM_CO2.h"
41 #endif
42 C == Global variables for coupling interface ==
43 #include "ATMCPL.h"
44
45 C !INPUT/OUTPUT PARAMETERS:
46 C == Routine arguments ==
47 C bi,bj :: Tile indices
48 C myTime :: Current model time
49 C myIter :: Current timestep number
50 C myThid :: my Thread Id number
51 INTEGER bi, bj
52 _RL myTime
53 INTEGER myIter
54 INTEGER myThid
55 CEOP
56
57 #ifdef ALLOW_AIM
58 #ifdef ALLOW_AIM_CO2
59 C == Local variables ==
60 C i,j :: Loop counters
61 INTEGER i,j
62 _RL cplTimeFraction
63
64 C o Accumulate atmospheric CO2 from Aim pkg that will be exported
65 C to the coupling layer.
66 cplTimeFraction = 1. _d 0 / DFLOAT(cplSendFrq_iter)
67 airCO2Time(bi,bj) = airCO2Time(bi,bj) + cplTimeFraction
68 DO j=1,sNy
69 DO i=1,sNx
70 airCO2(i,j,bi,bj) = airCO2(i,j,bi,bj)
71 & + aim_CO2(i,j,bi,bj)*cplTimeFraction
72 ENDDO
73 ENDDO
74
75 #endif
76 #endif /* ALLOW_AIM */
77
78 RETURN
79 END

  ViewVC Help
Powered by ViewVC 1.1.22