1 |
jmc |
1.2 |
C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/cpl_export_my_data.F,v 1.1 2003/12/15 02:44:48 jmc Exp $ |
2 |
|
|
C $Name: $ |
3 |
jmc |
1.1 |
|
4 |
|
|
#include "CPP_OPTIONS.h" |
5 |
|
|
|
6 |
|
|
CStartOfInterface |
7 |
|
|
SUBROUTINE CPL_EXPORT_MY_DATA( |
8 |
jmc |
1.2 |
I myIter, myTime, myThid ) |
9 |
jmc |
1.1 |
C /==========================================================\ |
10 |
|
|
C | SUBROUTINE CPL_EXPORT_MY_DATA | |
11 |
|
|
C | o Routine for controlling export of coupling data to | |
12 |
|
|
C | coupler layer. | |
13 |
|
|
C |==========================================================| |
14 |
|
|
C | This version talks to the MIT Coupler. It uses the MIT | |
15 |
|
|
C | Coupler "checkpoint1" library calls. | |
16 |
|
|
C \==========================================================/ |
17 |
|
|
IMPLICIT NONE |
18 |
|
|
|
19 |
|
|
#include "EEPARAMS.h" |
20 |
|
|
#include "CPL_PARAMS.h" |
21 |
|
|
|
22 |
|
|
C == Routine arguments == |
23 |
jmc |
1.2 |
C myIter - Current timestep number. |
24 |
|
|
C myTime - Current internal time. |
25 |
|
|
C myThid - Thread number for this instance of the routine. |
26 |
|
|
INTEGER myIter |
27 |
|
|
_RL myTime |
28 |
jmc |
1.1 |
INTEGER myThid |
29 |
|
|
CEndOfInterface |
30 |
|
|
|
31 |
jmc |
1.2 |
#ifdef COMPONENT_MODULE |
32 |
jmc |
1.1 |
C == Local variables == |
33 |
|
|
|
34 |
|
|
C Send data to coupling layer. Note MIT Coupler checkpoint1 |
35 |
|
|
C does not allow asynchronous posting of data, so ordering has to be |
36 |
|
|
C consistent with coupling layer ordering. |
37 |
jmc |
1.2 |
IF ( (myIter/cplSendFrq_iter)*cplSendFrq_iter .EQ. myIter ) THEN |
38 |
|
|
WRITE(0,*) ' Exporting atmospheric fluxes at iter. ', myIter |
39 |
|
|
CALL ATM_EXPORT_ATMSLP( myThid ) |
40 |
|
|
CALL ATM_EXPORT_HEATFLUX( myThid ) |
41 |
|
|
CALL ATM_EXPORT_QSHORTWAVE( myThid ) |
42 |
|
|
c CALL ATM_EXPORT_QLATENT( myThid ) |
43 |
|
|
c CALL ATM_EXPORT_QSENSIBLE( myThid ) |
44 |
|
|
c CALL ATM_EXPORT_QLONGWAVE( myThid ) |
45 |
|
|
c CALL ATM_EXPORT_UVELGROUND( myThid ) |
46 |
|
|
c CALL ATM_EXPORT_VVELGROUND( myThid ) |
47 |
jmc |
1.1 |
CALL ATM_EXPORT_TAUX( myThid ) |
48 |
|
|
CALL ATM_EXPORT_TAUY( myThid ) |
49 |
|
|
CALL ATM_EXPORT_EVMPR( myThid ) |
50 |
|
|
CALL ATM_EXPORT_RUNOFF( myThid ) |
51 |
jmc |
1.2 |
CALL ATM_EXPORT_ROENFX( myThid ) |
52 |
|
|
CALL ATM_EXPORT_SALTFX( myThid ) |
53 |
|
|
CALL ATM_EXPORT_SEAICE( myThid ) |
54 |
jmc |
1.1 |
ENDIF |
55 |
jmc |
1.2 |
|
56 |
|
|
#endif /* COMPONENT_MODULE */ |
57 |
jmc |
1.1 |
|
58 |
|
|
RETURN |
59 |
|
|
END |