5 |
|
|
6 |
CStartOfInterface |
CStartOfInterface |
7 |
SUBROUTINE CPL_IMPORT_EXTERNAL_DATA( |
SUBROUTINE CPL_IMPORT_EXTERNAL_DATA( |
8 |
I myCurrentIter, myCurrentTime, myThid ) |
I myIter, myTime, myThid ) |
9 |
C /==========================================================\ |
C /==========================================================\ |
10 |
C | SUBROUTINE CPL_IMPORT_EXTERNAL_DATA | |
C | SUBROUTINE CPL_IMPORT_EXTERNAL_DATA | |
11 |
C | o Routine for controlling import of coupling data from | |
C | o Routine for controlling import of coupling data from | |
20 |
#include "CPL_PARAMS.h" |
#include "CPL_PARAMS.h" |
21 |
|
|
22 |
C == Routine arguments == |
C == Routine arguments == |
23 |
C myCurrentIter - Current timestep number. |
C myIter - Current timestep number. |
24 |
C myCurrentTime - Current internal time. |
C myTime - Current internal time. |
25 |
C myThid - Thread number for this instance |
C myThid - Thread number for this instance of the routine. |
26 |
C of the routine. |
INTEGER myIter |
27 |
INTEGER myCurrentIter |
_RL myTime |
|
_RL myCurrentTime |
|
28 |
INTEGER myThid |
INTEGER myThid |
29 |
CEndOfInterface |
CEndOfInterface |
30 |
|
|
31 |
|
#ifdef COMPONENT_MODULE |
32 |
C == Local variables == |
C == Local variables == |
33 |
|
|
34 |
C Fetch data from coupling layer. Note MIT Coupler checkpoint1 |
C Fetch data from coupling layer. Note MIT Coupler checkpoint1 |
35 |
C does not allow asynchronous extraction of data, so ordering |
C does not allow asynchronous extraction of data, so ordering |
36 |
C has to be consistent with ordering coupling layer. |
C has to be consistent with ordering coupling layer. |
37 |
c IF ( (myCurrentIter/96)*96 .EQ. myCurrentIter ) THEN |
|
38 |
IF ( (myCurrentIter/cplSendFrq_iter)*cplSendFrq_iter |
IF ( (myIter/cplSendFrq_iter)*cplSendFrq_iter .EQ. myIter ) THEN |
39 |
& .EQ. myCurrentIter ) THEN |
WRITE(0,*) ' Importing oceanic fields at iteration ', myIter |
40 |
WRITE(0,*) ' Importing fluxes at iteration ', myCurrentIter |
CALL ATM_IMPORT_FIELDS( myThid ) |
|
CALL ATM_IMPORT_SST ( myThid ) |
|
41 |
ENDIF |
ENDIF |
42 |
|
|
43 |
|
#endif /* COMPONENT_MODULE */ |
44 |
|
|
45 |
RETURN |
RETURN |
46 |
END |
END |