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

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

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


Revision 1.10 - (show annotations) (download)
Wed May 19 01:53:46 2010 UTC (14 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62g, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62w, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint63g, checkpoint63, checkpoint63l, checkpoint63m, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63a, checkpoint63b, checkpoint63c
Changes since 1.9: +6 -13 lines
- change all exch_*_rx.template to call new exch1_rx S/R ;
- update Makefile and .cvsignore
- replace call to exch2_xy_rx S/R with exch2_*3d_rx(Nr=1) (will remove
  exch2_xy_rx later)

1 C $Header: /u/gcmpack/MITgcm/eesupp/src/exch_xyz_rx.template,v 1.9 2007/08/17 18:34:17 jmc Exp $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_EEOPTIONS.h"
6
7 CBOP
8 C !ROUTINE: EXCH_XYZ_RX
9
10 C !INTERFACE:
11 SUBROUTINE EXCH_XYZ_RX(
12 U phi,
13 I myThid )
14
15 C !DESCRIPTION:
16 C *==========================================================*
17 C | SUBROUTINE EXCH_XYZ_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
27 C === Global data ===
28 #include "SIZE.h"
29 #include "EEPARAMS.h"
30
31 C !INPUT/OUTPUT PARAMETERS:
32 C === Routine arguments ===
33 C phi :: Array with overlap regions are to be exchanged
34 C myThid :: My thread id.
35 _RX phi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,1:Nr,nSx,nSy)
36 INTEGER myThid
37
38 C !LOCAL VARIABLES:
39 #ifndef ALLOW_EXCH2
40 C == Local variables ==
41 C OL[wens] :: Overlap extents in west, east, north, south.
42 C exchWidth[XY] :: Extent of regions that will be exchanged.
43 INTEGER OLw, OLe, OLn, OLs, exchWidthX, exchWidthY, myNz
44 #endif
45 CEOP
46
47 #ifdef ALLOW_EXCH2
48 CALL EXCH2_3D_RX( phi, Nr, myThid )
49 RETURN
50 #else /* ALLOW_EXCH2 */
51
52 OLw = OLx
53 OLe = OLx
54 OLn = OLy
55 OLs = OLy
56 exchWidthX = OLx
57 exchWidthY = OLy
58 myNz = Nr
59 IF (useCubedSphereExchange) THEN
60 CALL EXCH1_RX_CUBE( phi, .FALSE.,
61 I OLw, OLe, OLs, OLn, myNz,
62 I exchWidthX, exchWidthY,
63 I EXCH_UPDATE_CORNERS, myThid )
64 ELSE
65 CALL EXCH1_RX( phi,
66 I OLw, OLe, OLs, OLn, myNz,
67 I exchWidthX, exchWidthY,
68 I EXCH_UPDATE_CORNERS, myThid )
69 ENDIF
70
71 RETURN
72 #endif /* ALLOW_EXCH2 */
73 END

  ViewVC Help
Powered by ViewVC 1.1.22