/[MITgcm]/MITgcm/pkg/atm_ocn_coupler/initialise.F
ViewVC logotype

Contents of /MITgcm/pkg/atm_ocn_coupler/initialise.F

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


Revision 1.5 - (show annotations) (download)
Mon Oct 26 13:11:32 2015 UTC (8 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, HEAD
Changes since 1.4: +5 -1 lines
initialise to zero ATMVARS.h & OCNVARS.h arrays

1 C $Header: /u/gcmpack/MITgcm/pkg/atm_ocn_coupler/initialise.F,v 1.4 2013/12/02 21:55:06 jmc Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CBOP 0
7 C !ROUTINE: INITIALISE
8
9 C !INTERFACE:
10 SUBROUTINE INITIALISE(
11 O msgUnit )
12
13 C !DESCRIPTION:
14 C *==========================================================*
15 C | SUBROUTINE INITIALISE
16 C | o Routine to initialise coupling component.
17 C *==========================================================*
18 C | Initialisation involves starting up MPI and then joining
19 C | the coupled configuration as a component with the special
20 C | name "Coupler". With the present MIT Coupler library
21 C | only one process can register with the name "Coupler".
22 C | This component is the process responsible for
23 C | coordinating the transfer of data between other
24 C | components and for mapping data from one components
25 C | representation to anothers representation as appropriate.
26 C *==========================================================*
27
28 C !USES:
29 IMPLICIT NONE
30 C === GLobal variables ==
31 #include "CPLIDS.h"
32
33 C !INPUT/OUTPUT PARAMETERS:
34 C msgUnit :: log-file I/O unit
35 INTEGER msgUnit
36
37 C !LOCAL VARIABLES:
38 C iErr :: Error code
39 C MPI_COMM_Coupler :: Communicatior used by this component.
40 C Stored internally by the coupling library.
41 INTEGER iErr
42 INTEGER MPI_COMM_Coupler
43 CEOP
44
45 CALL MPI_Init(iErr)
46
47 C-- Set the running directory (= rank_0 )
48 CALL SETDIR( 0 )
49
50 C Register this process as the "coupler" participant. Currently there can
51 C only be one coupler participant all others are "component" participants.
52 CALL MITCOUPLER_INIT(
53 I cplCompName,
54 O MPI_COMM_Coupler, msgUnit )
55
56 CALL CPL_READ_PARAMS( msgUnit )
57
58 CALL SET_RUNOFFMAP( msgUnit )
59
60 C-- Initialise Coupler field arrays
61 CALL CPL_INIT_ATM_VARS( msgUnit )
62 CALL CPL_INIT_OCN_VARS( msgUnit )
63
64 RETURN
65 END

  ViewVC Help
Powered by ViewVC 1.1.22