1 |
C $Header: /u/gcmpack/MITgcm/pkg/ocn_compon_interf/cpl_export_my_data.F,v 1.1 2003/12/15 02:49:09 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "CPP_OPTIONS.h" |
5 |
|
6 |
CStartOfInterface |
7 |
SUBROUTINE CPL_EXPORT_MY_DATA( |
8 |
I myCurrentIter, myCurrentTime, myThid ) |
9 |
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 |
C == GLobal variables == |
20 |
#include "EEPARAMS.h" |
21 |
|
22 |
C == Routine arguments == |
23 |
C myCurrentIter - Current timestep number. |
24 |
C myCurrentTime - Current internal time. |
25 |
C myThid - Thread number for this instance |
26 |
C of the routine. |
27 |
INTEGER myCurrentIter |
28 |
_RL myCurrentTime |
29 |
INTEGER myThid |
30 |
CEndOfInterface |
31 |
|
32 |
C == Local variables == |
33 |
INTEGER bi,bj |
34 |
|
35 |
DO bj = myByLo(myThid), myByHi(myThid) |
36 |
DO bi = myBxLo(myThid), myBxHi(myThid) |
37 |
CALL OCN_STORE_MY_DATA( |
38 |
I myCurrentTime, myCurrentIter, bi,bj, myThid ) |
39 |
ENDDO |
40 |
ENDDO |
41 |
|
42 |
C Send data to coupling layer. Note MIT Coupler checkpoint1 |
43 |
C does not allow asynchronous posting of data, so ordering has to be |
44 |
C consistent with coupling layer ordering. |
45 |
CALL OCN_EXPORT_FIELDS ( myThid ) |
46 |
|
47 |
RETURN |
48 |
END |