1 |
C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/cpl_import_external_data.F,v 1.2 2004/05/21 20:00:48 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "CPP_OPTIONS.h" |
5 |
|
6 |
CBOP |
7 |
C !ROUTINE: CPL_IMPORT_EXTERNAL_DATA |
8 |
C !INTERFACE: |
9 |
SUBROUTINE CPL_IMPORT_EXTERNAL_DATA( |
10 |
I myIter, myTime, myThid ) |
11 |
|
12 |
C !DESCRIPTION: \bv |
13 |
C *==========================================================* |
14 |
C | SUBROUTINE CPL_IMPORT_EXTERNAL_DATA |
15 |
C | o Routine for controlling import of coupling data from |
16 |
C | coupler layer. |
17 |
C *==========================================================* |
18 |
C | This version talks to the MIT Coupler. It uses the MIT |
19 |
C | Coupler "checkpoint1" library calls. |
20 |
C *==========================================================* |
21 |
C \ev |
22 |
|
23 |
C !USES |
24 |
IMPLICIT NONE |
25 |
|
26 |
#include "EEPARAMS.h" |
27 |
#include "CPL_PARAMS.h" |
28 |
|
29 |
C !INPUT/OUTPUT PARAMETERS: |
30 |
C == Routine arguments == |
31 |
C myIter - Current timestep number. |
32 |
C myTime - Current internal time. |
33 |
C myThid - Thread number for this instance of the routine. |
34 |
INTEGER myIter |
35 |
_RL myTime |
36 |
INTEGER myThid |
37 |
CEOP |
38 |
|
39 |
#ifdef COMPONENT_MODULE |
40 |
C == Local variables == |
41 |
|
42 |
C Fetch data from coupling layer. Note MIT Coupler checkpoint1 |
43 |
C does not allow asynchronous extraction of data, so ordering |
44 |
C has to be consistent with ordering coupling layer. |
45 |
|
46 |
IF ( MOD(myIter,cplSendFrq_iter).EQ.0 ) THEN |
47 |
WRITE(0,*) ' Importing oceanic fields at iteration ', myIter |
48 |
CALL ATM_IMPORT_FIELDS( myThid ) |
49 |
ENDIF |
50 |
|
51 |
#endif /* COMPONENT_MODULE */ |
52 |
|
53 |
RETURN |
54 |
END |