1 |
C $Header: $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "CPP_OPTIONS.h" |
5 |
|
6 |
CStartOfInterface |
7 |
SUBROUTINE CPL_IMPORT_EXTERNAL_DATA( |
8 |
I myCurrentIter, myCurrentTime, 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 myCurrentIter - Current timestep number. |
24 |
C myCurrentTime - Current internal time. |
25 |
C myThid - Thread number for this instance |
26 |
C of the routine. |
27 |
INTEGER myCurrentIter |
28 |
_RL myCurrentTime |
29 |
INTEGER myThid |
30 |
CEndOfInterface |
31 |
|
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 |
c IF ( (myCurrentIter/96)*96 .EQ. myCurrentIter ) THEN |
38 |
IF ( (myCurrentIter/cplSendFrq_iter)*cplSendFrq_iter |
39 |
& .EQ. myCurrentIter ) THEN |
40 |
WRITE(0,*) ' Importing fluxes at iteration ', myCurrentIter |
41 |
CALL ATM_IMPORT_SST ( myThid ) |
42 |
ENDIF |
43 |
|
44 |
RETURN |
45 |
END |