/[MITgcm]/MITgcm/pkg/atm_compon_interf/cpl_import_external_data.F
ViewVC logotype

Contents of /MITgcm/pkg/atm_compon_interf/cpl_import_external_data.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download)
Mon Oct 26 22:36:45 2015 UTC (8 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
- combine into 1 (new) S/R CPL_EXPORT_IMPORT_DATA the two previous S/R
  CPL_EXPORT_MY_DATA & CPL_IMPORT_EXTERNAL_DATA

1 C $Header: /u/gcmpack/MITgcm/pkg/atm_compon_interf/cpl_import_external_data.F,v 1.5 2013/09/24 23:13:54 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 "EEPARAMS.h"
27 #include "CPL_PARAMS.h"
28
29 C !INPUT/OUTPUT PARAMETERS:
30 C == Routine arguments ==
31 C myTime :: Current time in simulation.
32 C myIter :: Current timestep number.
33 C myThid :: Thread number for this instance of the routine.
34 _RL myTime
35 INTEGER myIter
36 INTEGER myThid
37 CEOP
38
39 #ifdef COMPONENT_MODULE
40 C !LOCAL VARIABLES:
41 C == Local variables ==
42 C msgBuf :: Informational/error message buffer
43 CHARACTER*(MAX_LEN_MBUF) msgBuf
44
45 C Fetch data from coupling layer. Note MIT Coupler checkpoint1
46 C does not allow asynchronous extraction of data, so ordering
47 C has to be consistent with ordering coupling layer.
48
49 IF ( MOD(myIter,cplSendFrq_iter).EQ.0 ) THEN
50 _BEGIN_MASTER( myThid )
51 IF ( debugMode .OR. countPrtImp.LT.maxNumberPrint ) THEN
52 c WRITE(0,'(A,I5,A,I10)') ' Importing (pid=', myProcId,
53 c & ' ) oceanic fields at iteration', myIter
54 WRITE(msgBuf,'(A,I10)')
55 & ' Importing oceanic fields at iteration', myIter
56 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
57 & SQUEEZE_RIGHT, myThid )
58 countPrtImp = countPrtImp + 1
59 ENDIF
60 _END_MASTER( myThid )
61 CALL ATM_IMPORT_FIELDS( myThid )
62 ENDIF
63
64 #endif /* COMPONENT_MODULE */
65
66 RETURN
67 END

  ViewVC Help
Powered by ViewVC 1.1.22