/[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.3 - (hide annotations) (download)
Sun Jul 2 22:47:19 2006 UTC (17 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint58u_post, checkpoint58r_post, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58w_post, checkpoint58q_post, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59, checkpoint58o_post, checkpoint58y_post, checkpoint58k_post, checkpoint58v_post, checkpoint58s_post, checkpoint58p_post, checkpoint58m_post
Changes since 1.2: +60 -33 lines
simplify the "export" step using the generic S/R: ATM_EXPORT_FLD

1 jmc 1.3 C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/cpl_export_my_data.F,v 1.2 2004/05/21 20:00:48 jmc Exp $
2     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.3 C == Global variables ==
26     #include "SIZE.h"
27 jmc 1.1 #include "EEPARAMS.h"
28     #include "CPL_PARAMS.h"
29 jmc 1.3 #include "ATMCPL.h"
30     #include "ATMIDS.h"
31 jmc 1.1
32 jmc 1.3 C !INPUT/OUTPUT PARAMETERS:
33 jmc 1.1 C == Routine arguments ==
34 jmc 1.3 C myTime :: Current internal time.
35     C myIter :: Current timestep number.
36     C myThid :: my Thread Id number
37     _RL myTime
38 jmc 1.2 INTEGER myIter
39 jmc 1.1 INTEGER myThid
40 jmc 1.3 CEOP
41 jmc 1.1
42 jmc 1.2 #ifdef COMPONENT_MODULE
43 jmc 1.1 C == Local variables ==
44    
45     C Send data to coupling layer. Note MIT Coupler checkpoint1
46     C does not allow asynchronous posting of data, so ordering has to be
47     C consistent with coupling layer ordering.
48 jmc 1.2 IF ( (myIter/cplSendFrq_iter)*cplSendFrq_iter .EQ. myIter ) THEN
49     WRITE(0,*) ' Exporting atmospheric fluxes at iter. ', myIter
50 jmc 1.3
51     C- export Sea-Level pressure:
52     CALL ATM_EXPORT_FLD( atmSLPrName,
53     U atmSLPr, atmSLPrTime, myThid )
54     C- export Net surface heat flux:
55     CALL ATM_EXPORT_FLD( atmHeatFluxName,
56     U heatFlux, HeatFluxTime, myThid )
57     C- export Net Short-Wave surface heat flux:
58     CALL ATM_EXPORT_FLD( atmQshortWaveName,
59     U qShortWave, qShortWaveTime, myThid )
60     C- export surface wind stress, Zonal & Meridional components:
61     CALL ATM_EXPORT_FLD( atmTauXName,
62     U tauX, tauXTime, myThid )
63     CALL ATM_EXPORT_FLD( atmTauYName,
64     U tauY, tauYTime, myThid )
65     C- export Net fresh water flux (Evap - Precip):
66     CALL ATM_EXPORT_FLD( atmEvMPrName,
67     U EvMPrFlux, EvMPrTime, myThid )
68     C- export Run Off fresh water flux:
69     CALL ATM_EXPORT_FLD( atmRunOffName,
70     U RunOffFlux, RunOffTime, myThid )
71     C- export Energy flux associated with Run Off:
72     CALL ATM_EXPORT_FLD( atmROEnFxName,
73     U RunOffEnFx, ROEnFxTime, myThid )
74     C- export Salt flux (related to sea-ice melting/freezing):
75     CALL ATM_EXPORT_FLD( atmSaltFxName,
76     U iceSaltFlx, saltFxTime, myThid )
77     C- export Sea-Ice Mass:
78     CALL ATM_EXPORT_FLD( atmSeaIceName,
79     U seaIceMass, seaIceTime, myThid )
80    
81 jmc 1.1 ENDIF
82 jmc 1.2
83     #endif /* COMPONENT_MODULE */
84 jmc 1.1
85     RETURN
86     END

  ViewVC Help
Powered by ViewVC 1.1.22