1 |
C $Header: /u/gcmpack/MITgcm/pkg/ocn_compon_interf/cpl_import_external_data.F,v 1.3 2009/12/25 19:43:07 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 myTime, myIter, 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 "SIZE.h" |
27 |
#include "EEPARAMS.h" |
28 |
#include "PARAMS.h" |
29 |
#include "CPL_PARAMS.h" |
30 |
|
31 |
C !INPUT/OUTPUT PARAMETERS: |
32 |
C == Routine arguments == |
33 |
C myTime :: Current time in simulation. |
34 |
C myIter :: Current timestep number. |
35 |
C myThid :: Thread number for this instance of the routine. |
36 |
_RL myTime |
37 |
INTEGER myIter |
38 |
INTEGER myThid |
39 |
CEOP |
40 |
|
41 |
#ifdef COMPONENT_MODULE |
42 |
C !LOCAL VARIABLES: |
43 |
|
44 |
C- Fetch data from coupling layer. Note MIT Coupler checkpoint1 |
45 |
C does not allow asynchronous extraction of data, so ordering |
46 |
C has to be consistent with ordering coupling layer. |
47 |
CALL OCN_IMPORT_FIELDS ( myThid ) |
48 |
|
49 |
C- Modify forcing according to Imported fields from coupler |
50 |
c CALL OCN_APPLY_IMPORT( myTime, myIter, myThid ) |
51 |
|
52 |
IF ( cpl_taveFreq.GT.0. _d 0 ) THEN |
53 |
C-- note: will move this "if" inside OCN_CPL_DIAGS when other diags |
54 |
C than time-ave are computed within OCN_CPL_DIAGS. |
55 |
CALL OCN_CPL_DIAGS( myTime, myIter, myThid ) |
56 |
ENDIF |
57 |
|
58 |
#endif /* COMPONENT_MODULE */ |
59 |
|
60 |
RETURN |
61 |
END |