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

Annotation of /MITgcm/pkg/aim_ocn_coupler/initialise.F

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


Revision 1.1 - (hide annotations) (download)
Mon Dec 15 02:28:01 2003 UTC (20 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint53f_post, checkpoint54a_pre, checkpoint55c_post, checkpoint53b_pre, checkpoint52l_pre, checkpoint52e_pre, hrcube4, checkpoint52j_post, checkpoint52e_post, checkpoint53c_post, checkpoint53d_post, checkpoint55d_pre, checkpoint52j_pre, checkpoint54a_post, checkpoint55h_post, checkpoint52n_post, checkpoint54b_post, checkpoint54d_post, checkpoint54e_post, checkpoint55b_post, checkpoint52m_post, checkpoint55, checkpoint53a_post, checkpoint55a_post, hrcube5, checkpoint53b_post, checkpoint55g_post, checkpoint55f_post, checkpoint52l_post, checkpoint52k_post, checkpoint54, checkpoint53, checkpoint52d_post, checkpoint53g_post, checkpoint52f_post, checkpoint54f_post, checkpoint53d_pre, checkpoint55e_post, checkpoint54c_post, checkpoint52i_post, checkpoint55i_post, checkpoint52i_pre, checkpoint52h_pre, checkpoint52f_pre, hrcube_2, hrcube_3, checkpoint55d_post
check-in the first version of the coupler for multi-components set-up.

1 jmc 1.1 C $Header: $
2     C $Name: $
3    
4     #include "CPP_OPTIONS.h"
5    
6     CStartOfInterface
7     SUBROUTINE INITIALISE
8     C /==========================================================\
9     C | SUBROUTINE INITIALISE |
10     C | o Routine to initialise coupling component. |
11     C |==========================================================|
12     C | Initialisation involves starting up MPI and then joining |
13     C | the coupled configuration as a component with the special|
14     C | name "Coupler". With the present MIT Coupler library |
15     C | only one process can register with the name "Coupler". |
16     C | This component is the process responsible for |
17     C | coordinating the transfer of data between other |
18     C | components and for mapping data from one components |
19     C | representation to anothers representation as appropriate.|
20     C \==========================================================/
21     IMPLICIT NONE
22     C === GLobal variables ==
23     #include "CPLIDS.h"
24    
25     CEndOfInterface
26    
27     C === Local variables ===
28     C iErr - Error code
29     C MPI_COMM_Coupler - Communicatior used by this component.
30     C Stored internally by the coupling library.
31     INTEGER iErr
32     INTEGER MPI_COMM_Coupler
33    
34     CALL MPI_Init(iErr)
35     C Register this process as the "coupler" participant. Currently there can
36     C only be one coupler participant all others are "component" participants.
37     CALL MITCOUPLER_INIT( cplCompName, MPI_COMM_Coupler )
38    
39     CALL CPL_READ_PARAMS
40    
41     CALL SET_RUNOFFMAP
42    
43     RETURN
44     END

  ViewVC Help
Powered by ViewVC 1.1.22