/[MITgcm]/MITgcm/eesupp/src/exch_3d_rx.template
ViewVC logotype

Contents of /MITgcm/eesupp/src/exch_3d_rx.template

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


Revision 1.4 - (show annotations) (download)
Mon May 14 13:15:05 2012 UTC (12 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63n, checkpoint63o, checkpoint64, 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.3: +10 -3 lines
add new CPP option (DISCONNECTED_TILES) to disconnect tiles (no exchange
 between tiles, just fill-in edges assuming locally periodic subdomain) and
 add corresponding exchange subroutines (EXCH0);

1 C $Header: /u/gcmpack/MITgcm/eesupp/src/exch_3d_rx.template,v 1.3 2010/05/19 01:53:46 jmc Exp $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_EEOPTIONS.h"
6
7 CBOP
8 C !ROUTINE: EXCH_3D_RX
9
10 C !INTERFACE:
11 SUBROUTINE EXCH_3D_RX(
12 U phi,
13 I myNz, myThid )
14
15 C !DESCRIPTION:
16 C *==========================================================*
17 C | SUBROUTINE EXCH_3D_RX
18 C | o Handle exchanges for _RX, three-dim scalar arrays.
19 C *==========================================================*
20 C | Invoke appropriate exchange routine depending on type
21 C | of grid (cube or globally indexed) to be operated on.
22 C *==========================================================*
23
24 C !USES:
25 IMPLICIT NONE
26 C === Global data ===
27 #include "SIZE.h"
28 #include "EEPARAMS.h"
29
30 C !INPUT/OUTPUT PARAMETERS:
31 C === Routine arguments ===
32 C phi :: Array with overlap regions are to be exchanged
33 C myNz :: 3rd dimension of array to exchange
34 C myThid :: My thread id.
35 INTEGER myNz
36 _RX phi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,1:myNz,nSx,nSy)
37 INTEGER myThid
38
39 C !LOCAL VARIABLES:
40 #ifndef ALLOW_EXCH2
41 C == Local variables ==
42 C OL[wens] :: Overlap extents in west, east, north, south.
43 C exchWidth[XY] :: Extent of regions that will be exchanged.
44 INTEGER OLw, OLe, OLn, OLs, exchWidthX, exchWidthY
45 #endif
46 CEOP
47
48 #ifdef ALLOW_EXCH2
49 CALL EXCH2_3D_RX( phi, myNz, myThid )
50 #else /* ALLOW_EXCH2 */
51
52 OLw = OLx
53 OLe = OLx
54 OLn = OLy
55 OLs = OLy
56 exchWidthX = OLx
57 exchWidthY = OLy
58 IF (useCubedSphereExchange) THEN
59 CALL EXCH1_RX_CUBE( phi, .FALSE.,
60 I OLw, OLe, OLs, OLn, myNz,
61 I exchWidthX, exchWidthY,
62 I EXCH_UPDATE_CORNERS, myThid )
63 ELSE
64 #ifdef DISCONNECTED_TILES
65 CALL EXCH0_RX( phi,
66 I OLw, OLe, OLs, OLn, myNz,
67 I exchWidthX, exchWidthY,
68 I EXCH_UPDATE_CORNERS, myThid )
69 #else /* DISCONNECTED_TILES */
70 CALL EXCH1_RX( phi,
71 I OLw, OLe, OLs, OLn, myNz,
72 I exchWidthX, exchWidthY,
73 I EXCH_UPDATE_CORNERS, myThid )
74 #endif /* DISCONNECTED_TILES */
75 ENDIF
76
77 #endif /* ALLOW_EXCH2 */
78
79 RETURN
80 END

  ViewVC Help
Powered by ViewVC 1.1.22