1 |
C $Header: /u/gcmpack/MITgcm/pkg/ocn_compon_interf/cpl_export_my_data.F,v 1.2 2004/05/21 19:42:26 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "CPP_OPTIONS.h" |
5 |
|
6 |
CBOP |
7 |
C !ROUTINE: CPL_EXPORT_MY_DATA |
8 |
|
9 |
C !INTERFACE: |
10 |
SUBROUTINE CPL_EXPORT_MY_DATA( |
11 |
I myTime, myIter, myThid ) |
12 |
|
13 |
C !DESCRIPTION: \bv |
14 |
C *==========================================================* |
15 |
C | SUBROUTINE CPL_EXPORT_MY_DATA |
16 |
C | o Routine for controlling export of coupling data to |
17 |
C | coupler layer. |
18 |
C *==========================================================* |
19 |
C | This version talks to the MIT Coupler. It uses the MIT |
20 |
C | Coupler "checkpoint1" library calls. |
21 |
C *==========================================================* |
22 |
C \ev |
23 |
|
24 |
C !USES |
25 |
IMPLICIT NONE |
26 |
C == GLobal variables == |
27 |
#include "EEPARAMS.h" |
28 |
|
29 |
C !INPUT/OUTPUT PARAMETERS: |
30 |
C == Routine arguments == |
31 |
C myTime :: Current time in simulation. |
32 |
C myIter :: Current timestep number. |
33 |
C myThid :: Thread number for this instance of the routine. |
34 |
_RL myTime |
35 |
INTEGER myIter |
36 |
INTEGER myThid |
37 |
CEOP |
38 |
|
39 |
#ifdef COMPONENT_MODULE |
40 |
C !LOCAL VARIABLES: |
41 |
C == Local variables == |
42 |
INTEGER bi,bj |
43 |
|
44 |
DO bj = myByLo(myThid), myByHi(myThid) |
45 |
DO bi = myBxLo(myThid), myBxHi(myThid) |
46 |
CALL OCN_STORE_MY_DATA( |
47 |
I myTime, myIter, bi,bj, myThid ) |
48 |
ENDDO |
49 |
ENDDO |
50 |
|
51 |
C Send data to coupling layer. Note MIT Coupler checkpoint1 |
52 |
C does not allow asynchronous posting of data, so ordering |
53 |
C has to be consistent with coupling layer ordering. |
54 |
CALL OCN_EXPORT_FIELDS ( myThid ) |
55 |
|
56 |
#endif /* COMPONENT_MODULE */ |
57 |
|
58 |
RETURN |
59 |
END |