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

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

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


Revision 1.3 - (show annotations) (download)
Thu Jun 15 23:29:17 2006 UTC (17 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint64q, checkpoint64p, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint58u_post, checkpoint58w_post, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint58r_post, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58q_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint59, checkpoint58o_post, 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, checkpoint58y_post, checkpoint58k_post, checkpoint58v_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint58m_post
Changes since 1.2: +1 -1 lines
check-in those files again (deleted accidentally)

1 C $Header: /u/gcmpack/MITgcm/pkg/aim_ocn_coupler/coupler.F,v 1.2 2004/05/21 19:31:50 jmc Exp $
2 C $Name: $
3
4 PROGRAM COUPLER
5 C /==========================================================\
6 C | PROGRAM COUPLER |
7 C | o Main routine for 'Coupler' component. 'Coupler' |
8 C | component coordiantes the exchange of data between |
9 C | component models in a coupled model experiment. |
10 C |==========================================================|
11 C | This version uses the MIT Coupler "checkpoint1" library |
12 C | calls. |
13 C \==========================================================/
14 IMPLICIT NONE
15 #include "mpif.h"
16 #include "CPL_PARAMS.h"
17
18 C == Local variables ==
19 C I - Loop counter
20 C MPI_COMM_Coupler
21 C rc - MPI return code
22 INTEGER I
23 INTEGER rc
24
25 C Initialise the coupler component
26 CALL INITIALISE
27
28 C Perform registration with other components
29 CALL ACCEPT_COMPONENT_REGISTRATIONS
30
31 C Coordinate the transfer configuration information
32 C between components
33 CALL RECEIVE_COMPONENT_CONFIGS
34 CALL SENDOUT_COMPONENT_CONFIGS
35
36 DO I=1,nCouplingSteps
37
38 C Receive updated state
39 CALL CPL_RECV_OCN_FIELDS
40 CALL CPL_RECV_ATM_FIELDS
41
42 C Send out fields
43 CALL CPL_SEND_ATM_FIELDS
44 CALL CPL_SEND_OCN_FIELDS
45
46 ENDDO
47
48 C o Finalize MPI
49 C First wait for everybody to finish. Nobody should call
50 C MPI_Finalize before all the component modules are
51 C ready to finish. On some systems once one participant
52 C gets to MPI_Finalize then its unclear what will
53 C happen after that. If everybody does on MPI_Barrier
54 C on COMM_WORLD then we will be OK.
55 CALL MPI_BARRIER( MPI_COMM_WORLD, rc )
56 CALL MPI_FINALIZE(rc)
57
58 STOP
59 END

  ViewVC Help
Powered by ViewVC 1.1.22