1 |
C $Header: /u/gcmpack/MITgcm/pkg/ocn_compon_interf/cpl_import_external_data.F,v 1.1 2003/12/15 02:49:09 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "CPP_OPTIONS.h" |
5 |
|
6 |
CStartOfInterface |
7 |
SUBROUTINE CPL_IMPORT_EXTERNAL_DATA( |
8 |
I myIter, myTime, 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 "SIZE.h" |
20 |
#include "EEPARAMS.h" |
21 |
#include "PARAMS.h" |
22 |
|
23 |
C == Routine arguments == |
24 |
C myIter - Current timestep number. |
25 |
C myTime - Current internal time. |
26 |
C myThid - Thread number for this instance of the routine. |
27 |
INTEGER myIter |
28 |
_RL myTime |
29 |
INTEGER myThid |
30 |
CEndOfInterface |
31 |
|
32 |
C == Local variables == |
33 |
INTEGER bi,bj |
34 |
|
35 |
C- Fetch data from coupling layer. Note MIT Coupler checkpoint1 |
36 |
C does not allow asynchronous extraction of data, so ordering |
37 |
C has to be consistent with ordering coupling layer. |
38 |
CALL OCN_IMPORT_FIELDS ( myThid ) |
39 |
|
40 |
C- Modify forcing according to Imported fields from coupler |
41 |
c CALL OCN_APPLY_IMPORT( myTime, myIter, myThid ) |
42 |
|
43 |
DO bj=myByLo(myThid),myByHi(myThid) |
44 |
DO bi=myBxLo(myThid),myBxHi(myThid) |
45 |
CALL OCN_CPL_DIAGS( bi, bj, myTime, myThid ) |
46 |
ENDDO |
47 |
ENDDO |
48 |
|
49 |
RETURN |
50 |
END |