1 |
C $Header$ |
C $Header$ |
2 |
C $Name$ |
C $Name$ |
3 |
|
|
4 |
#include "CPP_OPTIONS.h" |
#include "CPP_OPTIONS.h" |
5 |
|
|
6 |
CStartOfInterface |
CBOP |
7 |
|
C !ROUTINE: CPL_IMPORT_EXTERNAL_DATA |
8 |
|
C !INTERFACE: |
9 |
SUBROUTINE CPL_IMPORT_EXTERNAL_DATA( |
SUBROUTINE CPL_IMPORT_EXTERNAL_DATA( |
10 |
I myIter, myTime, myThid ) |
I myIter, myTime, myThid ) |
11 |
C /==========================================================\ |
|
12 |
C | SUBROUTINE CPL_IMPORT_EXTERNAL_DATA | |
C !DESCRIPTION: \bv |
13 |
C | o Routine for controlling import of coupling data from | |
C *==========================================================* |
14 |
C | coupler layer. | |
C | SUBROUTINE CPL_IMPORT_EXTERNAL_DATA |
15 |
C |==========================================================| |
C | o Routine for controlling import of coupling data from |
16 |
C | This version talks to the MIT Coupler. It uses the MIT | |
C | coupler layer. |
17 |
C | Coupler "checkpoint1" library calls. | |
C *==========================================================* |
18 |
C \==========================================================/ |
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 |
IMPLICIT NONE |
25 |
|
|
26 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
27 |
#include "CPL_PARAMS.h" |
#include "CPL_PARAMS.h" |
28 |
|
|
29 |
|
C !INPUT/OUTPUT PARAMETERS: |
30 |
C == Routine arguments == |
C == Routine arguments == |
31 |
C myIter - Current timestep number. |
C myIter - Current timestep number. |
32 |
C myTime - Current internal time. |
C myTime - Current internal time. |
34 |
INTEGER myIter |
INTEGER myIter |
35 |
_RL myTime |
_RL myTime |
36 |
INTEGER myThid |
INTEGER myThid |
37 |
CEndOfInterface |
CEOP |
38 |
|
|
39 |
#ifdef COMPONENT_MODULE |
#ifdef COMPONENT_MODULE |
40 |
C == Local variables == |
C == Local variables == |
41 |
|
|
42 |
C Fetch data from coupling layer. Note MIT Coupler checkpoint1 |
C Fetch data from coupling layer. Note MIT Coupler checkpoint1 |
43 |
C does not allow asynchronous extraction of data, so ordering |
C does not allow asynchronous extraction of data, so ordering |
44 |
C has to be consistent with ordering coupling layer. |
C has to be consistent with ordering coupling layer. |
45 |
|
|
46 |
IF ( (myIter/cplSendFrq_iter)*cplSendFrq_iter .EQ. myIter ) THEN |
IF ( MOD(myIter,cplSendFrq_iter).EQ.0 ) THEN |
47 |
WRITE(0,*) ' Importing oceanic fields at iteration ', myIter |
WRITE(0,*) ' Importing oceanic fields at iteration ', myIter |
48 |
CALL ATM_IMPORT_FIELDS( myThid ) |
CALL ATM_IMPORT_FIELDS( myThid ) |
49 |
ENDIF |
ENDIF |