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

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

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


Revision 1.4 - (show annotations) (download)
Mon Jun 18 21:28:52 2007 UTC (16 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint60, checkpoint61, checkpoint62, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.3: +17 -2 lines
import/export fields needed for DIC from/to Coupler interface

1 C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/cpl_export_my_data.F,v 1.3 2006/07/02 22:47:19 jmc Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: CPL_EXPORT_MY_DATA
8 C !INTERFACE:
9 SUBROUTINE CPL_EXPORT_MY_DATA(
10 I myIter, myTime, myThid )
11
12 C !DESCRIPTION: \bv
13 C *==========================================================*
14 C | SUBROUTINE CPL_EXPORT_MY_DATA
15 C | o Routine for controlling export of coupling data to
16 C | coupler layer.
17 C *==========================================================*
18 C | This version talks to the MIT Coupler. It uses the MIT
19 C | Coupler "checkpoint1" library calls.
20 C *==========================================================*
21 C \ev
22
23 C !USES:
24 IMPLICIT NONE
25
26 C == Global variables ==
27 #include "SIZE.h"
28 #include "EEPARAMS.h"
29 #include "CPL_PARAMS.h"
30 #include "ATMCPL.h"
31 #include "ATMIDS.h"
32
33 C !INPUT/OUTPUT PARAMETERS:
34 C == Routine arguments ==
35 C myTime :: Current internal time.
36 C myIter :: Current timestep number.
37 C myThid :: my Thread Id number
38 _RL myTime
39 INTEGER myIter
40 INTEGER myThid
41 CEOP
42
43 #ifdef COMPONENT_MODULE
44 C == Local variables ==
45
46 C Send data to coupling layer. Note MIT Coupler checkpoint1
47 C does not allow asynchronous posting of data, so ordering has to be
48 C consistent with coupling layer ordering.
49 IF ( MOD(myIter,cplSendFrq_iter).EQ.0 ) THEN
50 WRITE(0,*) ' Exporting atmospheric fluxes at iter. ', myIter
51
52 C- export Sea-Level pressure:
53 CALL ATM_EXPORT_FLD( atmSLPrName,
54 U atmSLPr, atmSLPrTime, myThid )
55 C- export Net surface heat flux:
56 CALL ATM_EXPORT_FLD( atmHeatFluxName,
57 U heatFlux, HeatFluxTime, myThid )
58 C- export Net Short-Wave surface heat flux:
59 CALL ATM_EXPORT_FLD( atmQshortWaveName,
60 U qShortWave, qShortWaveTime, myThid )
61 C- export surface wind stress, Zonal & Meridional components:
62 CALL ATM_EXPORT_FLD( atmTauXName,
63 U tauX, tauXTime, myThid )
64 CALL ATM_EXPORT_FLD( atmTauYName,
65 U tauY, tauYTime, myThid )
66 C- export Net fresh water flux (Evap - Precip):
67 CALL ATM_EXPORT_FLD( atmEvMPrName,
68 U EvMPrFlux, EvMPrTime, myThid )
69 C- export Run Off fresh water flux:
70 CALL ATM_EXPORT_FLD( atmRunOffName,
71 U RunOffFlux, RunOffTime, myThid )
72 C- export Energy flux associated with Run Off:
73 CALL ATM_EXPORT_FLD( atmROEnFxName,
74 U RunOffEnFx, ROEnFxTime, myThid )
75 C- export Salt flux (related to sea-ice melting/freezing):
76 CALL ATM_EXPORT_FLD( atmSaltFxName,
77 U iceSaltFlx, saltFxTime, myThid )
78 C- export Sea-Ice Mass:
79 CALL ATM_EXPORT_FLD( atmSeaIceName,
80 U seaIceMass, seaIceTime, myThid )
81
82 IF ( atmCpl_exchange_DIC ) THEN
83 C- export atmospheric CO2:
84 CALL ATM_EXPORT_FLD( atmAirCO2Name,
85 U airCO2, airCO2Time, myThid )
86
87 C- export surface wind speed:
88 CALL ATM_EXPORT_FLD( atmWSpdName,
89 U sWSpeed, sWSpeedTime, myThid )
90
91 C- export seaice fraction:
92 CALL ATM_EXPORT_FLD( atmFIceName,
93 U fracIce, fracIceTime, myThid )
94 ENDIF
95
96 ENDIF
97
98 #endif /* COMPONENT_MODULE */
99
100 RETURN
101 END

  ViewVC Help
Powered by ViewVC 1.1.22