1 |
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 |
|
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 |
C == Global variables == |
26 |
#include "SIZE.h" |
27 |
#include "EEPARAMS.h" |
28 |
#include "CPL_PARAMS.h" |
29 |
#include "ATMCPL.h" |
30 |
#include "ATMIDS.h" |
31 |
|
32 |
C !INPUT/OUTPUT PARAMETERS: |
33 |
C == Routine arguments == |
34 |
C myTime :: Current internal time. |
35 |
C myIter :: Current timestep number. |
36 |
C myThid :: my Thread Id number |
37 |
_RL myTime |
38 |
INTEGER myIter |
39 |
INTEGER myThid |
40 |
CEOP |
41 |
|
42 |
#ifdef COMPONENT_MODULE |
43 |
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 |
IF ( (myIter/cplSendFrq_iter)*cplSendFrq_iter .EQ. myIter ) THEN |
49 |
WRITE(0,*) ' Exporting atmospheric fluxes at iter. ', myIter |
50 |
|
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 |
ENDIF |
82 |
|
83 |
#endif /* COMPONENT_MODULE */ |
84 |
|
85 |
RETURN |
86 |
END |