1 |
jmc |
1.2 |
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 |
jmc |
1.1 |
|
4 |
|
|
#include "CPP_OPTIONS.h" |
5 |
|
|
|
6 |
|
|
CStartOfInterface |
7 |
|
|
SUBROUTINE CPL_IMPORT_EXTERNAL_DATA( |
8 |
jmc |
1.2 |
I myIter, myTime, myThid ) |
9 |
jmc |
1.1 |
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 |
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 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 |
jmc |
1.2 |
|
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 |
jmc |
1.1 |
ENDIF |
42 |
jmc |
1.2 |
|
43 |
|
|
#endif /* COMPONENT_MODULE */ |
44 |
jmc |
1.1 |
|
45 |
|
|
RETURN |
46 |
|
|
END |