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

Annotation of /MITgcm/pkg/aim_compon_interf/cpl_export_my_data.F

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


Revision 1.4 - (hide 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 jmc 1.4 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 jmc 1.3 C $Name: $
3 jmc 1.1
4     #include "CPP_OPTIONS.h"
5    
6 jmc 1.3 CBOP
7     C !ROUTINE: CPL_EXPORT_MY_DATA
8     C !INTERFACE:
9     SUBROUTINE CPL_EXPORT_MY_DATA(
10 jmc 1.2 I myIter, myTime, myThid )
11 jmc 1.3
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 jmc 1.1 IMPLICIT NONE
25 jmc 1.4
26 jmc 1.3 C == Global variables ==
27     #include "SIZE.h"
28 jmc 1.1 #include "EEPARAMS.h"
29     #include "CPL_PARAMS.h"
30 jmc 1.3 #include "ATMCPL.h"
31     #include "ATMIDS.h"
32 jmc 1.1
33 jmc 1.3 C !INPUT/OUTPUT PARAMETERS:
34 jmc 1.1 C == Routine arguments ==
35 jmc 1.3 C myTime :: Current internal time.
36     C myIter :: Current timestep number.
37     C myThid :: my Thread Id number
38     _RL myTime
39 jmc 1.2 INTEGER myIter
40 jmc 1.1 INTEGER myThid
41 jmc 1.3 CEOP
42 jmc 1.1
43 jmc 1.2 #ifdef COMPONENT_MODULE
44 jmc 1.1 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 jmc 1.4 IF ( MOD(myIter,cplSendFrq_iter).EQ.0 ) THEN
50 jmc 1.2 WRITE(0,*) ' Exporting atmospheric fluxes at iter. ', myIter
51 jmc 1.3
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 jmc 1.4 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 jmc 1.1 ENDIF
97 jmc 1.2
98     #endif /* COMPONENT_MODULE */
99 jmc 1.1
100     RETURN
101     END

  ViewVC Help
Powered by ViewVC 1.1.22