/[MITgcm]/MITgcm/pkg/compon_communic/CPLR_SIG.h
ViewVC logotype

Contents of /MITgcm/pkg/compon_communic/CPLR_SIG.h

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


Revision 1.3 - (show annotations) (download)
Wed Nov 27 21:48:30 2013 UTC (10 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, HEAD
Changes since 1.2: +3 -4 lines
File MIME type: text/plain
- move declaration of local array "ibuf" out of header file "CPLR_SIG.h"
  to each S/R that needs it; remove un-used variables.

1 C $Header: /u/gcmpack/MITgcm/pkg/compon_communic/CPLR_SIG.h,v 1.2 2007/10/08 23:58:20 jmc Exp $
2 C $Name: $
3
4 ! Special meanings/handles
5 integer MITCPLR_COUPLER
6 parameter(MITCPLR_COUPLER=59)
7
8 logical DEBUG
9 parameter (DEBUG=.TRUE.)
10 logical VERB
11 c parameter (VERB=.TRUE.)
12 parameter (VERB=.FALSE.)
13
14 ! Parameters for fixed length declarations
15 integer MAX_PROCS
16 parameter(MAX_PROCS=128)
17
18 integer MAX_IBUF
19 parameter(MAX_IBUF=1024)
20
21 integer MAXLEN_COMP_NAME
22 parameter( MAXLEN_COMP_NAME=32 )
23
24 integer MAX_COMPONENTS
25 parameter( MAX_COMPONENTS=10 )
26
27 integer MAX_TILES
28 parameter( MAX_TILES=16 )
29
30 integer HEADER_SIZE
31 parameter( HEADER_SIZE=8+MAXLEN_COMP_NAME )
32
33 integer MAX_R4_BUFLEN
34 parameter( MAX_R4_BUFLEN=HEADER_SIZE+256*256 )
35
36 integer MAX_R8_BUFLEN
37 parameter( MAX_R8_BUFLEN=HEADER_SIZE+256*256 )
38
39 integer LogUnit
40 parameter( LogUnit=99 )
41
42 ! Temporary arrays for local use: now declared locally where needed
43 c integer ibuf(MAX_IBUF)
44
45 ! The list of components
46 integer num_components
47 character*(MAXLEN_COMP_NAME) component_List(MAX_COMPONENTS)
48 common /CPLR_COMP_LIST/
49 & num_components,
50 & component_List
51
52 ! Coupler has duplicate copy of details
53 integer num_coupler_procs
54 integer rank_coupler_procs(MAX_PROCS)
55 character*(MAXLEN_COMP_NAME) coupler_Name
56 common /CPLR_COUPLER/
57 & num_coupler_procs,
58 & rank_coupler_procs,
59 & coupler_Name
60
61 ! Buffers
62 real*4 r4buf(MAX_R4_BUFLEN)
63 real*8 r8buf(MAX_R8_BUFLEN)
64 common /CPLR_BUFFERS/
65 & r4buf,r8buf
66
67 ! Information for communicating with my two communicators
68 integer my_component_ind
69 integer my_rank_in_world
70 integer MPI_COMM_mylocal
71 integer num_procs_in_local
72 integer my_rank_in_local
73 integer MPI_COMM_myglobal
74 integer num_procs_in_global
75 integer my_rank_in_global
76 integer my_coupler_rank
77 integer my_num_tiles
78 integer my_tile_nx(MAX_TILES)
79 integer my_tile_ny(MAX_TILES)
80 integer my_tile_i0(MAX_TILES)
81 integer my_tile_j0(MAX_TILES)
82 integer my_tile_bi(MAX_TILES)
83 integer my_tile_bj(MAX_TILES)
84 character*(MAXLEN_COMP_NAME) my_component_name
85 common /CPLR_IDENT/
86 & my_component_ind,
87 & my_rank_in_world,
88 & MPI_COMM_mylocal,
89 & num_procs_in_local,
90 & my_rank_in_local,
91 & MPI_COMM_myglobal,
92 & num_procs_in_global,
93 a my_rank_in_global,
94 & my_coupler_rank,
95 & my_num_tiles,
96 & my_tile_nx,
97 & my_tile_ny,
98 & my_tile_i0,
99 & my_tile_j0,
100 & my_tile_bi,
101 & my_tile_bj,
102 & my_component_name
103
104 ! The components details
105 integer num_component_procs(MAX_COMPONENTS)
106 integer rank_component_procs(MAX_PROCS,MAX_COMPONENTS)
107 integer num_compcplr_procs(MAX_COMPONENTS)
108 integer rank_compcplr_procs(MAX_PROCS,MAX_COMPONENTS)
109 integer MPI_COMM_component(MAX_COMPONENTS)
110 integer MPI_COMM_compcplr(MAX_COMPONENTS)
111 integer component_num_tiles(MAX_PROCS,MAX_COMPONENTS)
112 integer component_tile_nx(MAX_TILES,MAX_PROCS,MAX_COMPONENTS)
113 integer component_tile_ny(MAX_TILES,MAX_PROCS,MAX_COMPONENTS)
114 integer component_tile_i0(MAX_TILES,MAX_PROCS,MAX_COMPONENTS)
115 integer component_tile_j0(MAX_TILES,MAX_PROCS,MAX_COMPONENTS)
116 character*(MAXLEN_COMP_NAME) component_Name(MAX_COMPONENTS)
117 common /CPLR_COMPONENTS/
118 & num_component_procs,
119 & rank_component_procs,
120 & num_compcplr_procs,
121 & rank_compcplr_procs,
122 & MPI_COMM_component,
123 & MPI_COMM_compcplr,
124 & component_num_tiles,
125 & component_tile_nx,
126 & component_tile_ny,
127 & component_tile_i0,
128 & component_tile_j0,
129 & component_Name

  ViewVC Help
Powered by ViewVC 1.1.22