/[MITgcm]/MITgcm/pkg/atm2d/exch_component_configs.F
ViewVC logotype

Contents of /MITgcm/pkg/atm2d/exch_component_configs.F

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


Revision 1.1 - (show annotations) (download)
Mon Dec 2 23:54:43 2013 UTC (10 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint65, HEAD
make similar modifs as in pkg/atm_ocn_coupler to account for changes
in pkg/compon_communic and pkg/ocn_compon_interf.

1 C $Header: $
2 C $Name: $
3
4 #include "ATM2D_OPTIONS.h"
5
6 CBOP 0
7 C !ROUTINE: EXCH_COMPONENT_CONFIGS
8
9 C !INTERFACE:
10 SUBROUTINE EXCH_COMPONENT_CONFIGS( msgUnit )
11
12 C !DESCRIPTION:
13 C *==========================================================*
14 C | SUBROUTINE EXCH_COMPONENT_CONFIGS
15 C | o Routine which controls exchange of component model
16 C | configuration information to other components.
17 C *==========================================================*
18
19 C !USES:
20 IMPLICIT NONE
21 C == Global variables ==
22 C Data on ocean grid
23 c#include "OCNSIZE.h"
24 c#include "OCNVARS.h"
25 C Data on atmos grid
26 c#include "ATMSIZE.h"
27 c#include "ATMVARS.h"
28
29 C !INPUT/OUTPUT PARAMETERS:
30 C msgUnit :: log-file I/O unit
31 INTEGER msgUnit
32
33 #ifdef ATM2D_MPI_ON
34 C !LOCAL VARIABLES:
35 LOGICAL errFlag
36 CHARACTER*70 errMsg
37 CEOP
38
39 errFlag = .FALSE.
40 errMsg = ' '
41
42 C-- 1) collect configs from all components
43
44 C Receive ocean config (OCNCONFIG) from ocean component (OCN).
45 CALL CPL_RECV_OCN_OCNCONFIG
46
47 C Receive atmos config (ATCONFIG) from atmos. component (ATM).
48 c CALL CPL_RECV_ATM_ATMCONFIG
49
50 C-- 2) send to all components the configs of the other component
51
52 C Send atmos. config (ATMCONFIG) to ocean component (OCN).
53 CALL CPL_SEND_OCN_ATMCONFIG
54
55 C Send ocean config (OCNCONFIG) to atmos. component (ATM).
56 c CALL CPL_SEND_ATM_OCNCONFIG
57
58 C-- 3) define length of the run (number of coupler time-step)
59 C and check for consistent Coupler config (vs components)
60 c CALL CPL_CHECK_CPLCONFIG(
61 c I msgUnit,
62 c U errFlag, errMsg )
63
64 C-- All procs in World check for error and stop if any
65 CALL MITCPLR_ALL_CHECK( errFlag, errMsg )
66
67 #endif /* ATM2D_MPI_ON */
68
69 RETURN
70 END

  ViewVC Help
Powered by ViewVC 1.1.22