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

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

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


Revision 1.2 - (show annotations) (download)
Mon Jan 5 15:19:17 2009 UTC (15 years, 4 months ago) by dfer
Branch: MAIN
CVS Tags: checkpoint64a, checkpoint64c, checkpoint64b, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint62, checkpoint63, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.1: +17 -9 lines
Add well-mixed CO2 box in Aim

1 C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/atm_store_airco2.F,v 1.1 2007/06/18 21:28:52 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, ij
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 ij = i + (j-1)*sNx
71 airCO2(i,j,bi,bj) = airCO2(i,j,bi,bj)
72 & + aim_CO2(ij,myThid)*cplTimeFraction
73 ENDDO
74 ENDDO
75
76 #endif
77 #endif /* ALLOW_AIM */
78
79 RETURN
80 END

  ViewVC Help
Powered by ViewVC 1.1.22