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

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

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


Revision 1.2 - (show annotations) (download)
Sun Nov 7 23:20:35 2004 UTC (19 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57t_post, checkpoint57m_post, checkpoint58e_post, checkpoint57v_post, checkpoint57g_pre, checkpoint57f_post, checkpoint57s_post, checkpoint57j_post, checkpoint58b_post, checkpoint57b_post, checkpoint57f_pre, checkpoint57g_post, checkpoint57a_post, checkpoint55j_post, checkpoint56b_post, checkpoint57h_pre, checkpoint57y_post, checkpoint58g_post, checkpoint57x_post, checkpoint58h_post, checkpoint57e_post, checkpoint56c_post, checkpoint57h_post, checkpoint57y_pre, checkpoint57c_pre, checkpoint57o_post, checkpoint57r_post, checkpoint57k_post, checkpoint57d_post, checkpoint57i_post, checkpoint58, checkpoint57a_pre, checkpoint57, checkpoint56, checkpoint57h_done, checkpoint58f_post, checkpoint57n_post, checkpoint58d_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint58a_post, checkpoint58i_post, checkpoint57q_post, checkpoint57z_post, eckpoint57e_pre, checkpoint58c_post, checkpoint57c_post, checkpoint57l_post, checkpoint56a_post
Changes since 1.1: +6 -2 lines
add a call to "setdir" (replace the non-portable mpirun option -wd)

1 C $Header: /u/gcmpack/MITgcm/verification/cpl_aim+ocn/code_cpl/initialise.F,v 1.1 2004/10/27 23:19:43 edhill Exp $
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
36 C-- Set the running directory (= rank_0 )
37 CALL SETDIR( 0 )
38
39 C Register this process as the "coupler" participant. Currently there can
40 C only be one coupler participant all others are "component" participants.
41 CALL MITCOUPLER_INIT( cplCompName, MPI_COMM_Coupler )
42
43 CALL CPL_READ_PARAMS
44
45 CALL SET_RUNOFFMAP
46
47 RETURN
48 END

  ViewVC Help
Powered by ViewVC 1.1.22