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

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

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


Revision 1.2 - (hide annotations) (download)
Mon Oct 8 23:48:28 2007 UTC (16 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64q, checkpoint64p, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59k, checkpoint59j, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.1: +3 -0 lines
add missing cvs $Header:$ or $Name:$

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

  ViewVC Help
Powered by ViewVC 1.1.22