1 |
C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/cpl_import_external_data.F,v 1.1 2003/12/15 02:44:48 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "CPP_OPTIONS.h" |
5 |
|
6 |
CStartOfInterface |
7 |
SUBROUTINE CPL_IMPORT_EXTERNAL_DATA( |
8 |
I myIter, myTime, myThid ) |
9 |
C /==========================================================\ |
10 |
C | SUBROUTINE CPL_IMPORT_EXTERNAL_DATA | |
11 |
C | o Routine for controlling import of coupling data from | |
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 |
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 |
INTEGER myThid |
29 |
CEndOfInterface |
30 |
|
31 |
#ifdef COMPONENT_MODULE |
32 |
C == Local variables == |
33 |
|
34 |
C Fetch data from coupling layer. Note MIT Coupler checkpoint1 |
35 |
C does not allow asynchronous extraction of data, so ordering |
36 |
C has to be consistent with ordering coupling layer. |
37 |
|
38 |
IF ( (myIter/cplSendFrq_iter)*cplSendFrq_iter .EQ. myIter ) THEN |
39 |
WRITE(0,*) ' Importing oceanic fields at iteration ', myIter |
40 |
CALL ATM_IMPORT_FIELDS( myThid ) |
41 |
ENDIF |
42 |
|
43 |
#endif /* COMPONENT_MODULE */ |
44 |
|
45 |
RETURN |
46 |
END |