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

Annotation of /MITgcm/eesupp/src/exch_z_3d_rx.template

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


Revision 1.4 - (hide annotations) (download)
Wed May 19 01:53:46 2010 UTC (14 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63l, checkpoint63m, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint63, checkpoint62g, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x
Changes since 1.3: +5 -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 jmc 1.4 C $Header: /u/gcmpack/MITgcm/eesupp/src/exch_z_3d_rx.template,v 1.3 2007/08/17 18:34:17 jmc Exp $
2 jmc 1.1 C $Name: $
3    
4     #include "PACKAGES_CONFIG.h"
5     #include "CPP_EEOPTIONS.h"
6    
7     CBOP
8     C !ROUTINE: EXCH_Z_3D_RX
9    
10     C !INTERFACE:
11     SUBROUTINE EXCH_Z_3D_RX(
12     U phi,
13     I myNz, myThid )
14     IMPLICIT NONE
15     C !DESCRIPTION:
16     C *==========================================================*
17     C | SUBROUTINE EXCH_Z_3D_RX
18     C | o Handle exchanges for _RX, 3-dim, zeta coord arrays.
19     C *==========================================================*
20     C | Branch to appropriate exchange routine for a zeta coord
21     C | array on the current grid scheme.
22     C *==========================================================*
23    
24     C !USES:
25     C == Global variables ==
26     #include "SIZE.h"
27     #include "EEPARAMS.h"
28    
29     C !INPUT/OUTPUT PARAMETERS:
30     C == Routine arguments ==
31     C phi :: Array with overlap regions are to be exchanged
32     C Note - The interface to EXCH_RX assumes that
33     C the standard Fortran 77 sequence association rules
34     C apply.
35     C myNz :: 3rd dimension of array to exchange
36     C myThid :: My thread id.
37     INTEGER myNz
38     _RX phi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,myNz,nSx,nSy)
39     INTEGER myThid
40    
41     C !LOCAL VARIABLES:
42 jmc 1.3 #ifndef ALLOW_EXCH2
43 jmc 1.1 C == Local variables ==
44     C OL[wens] :: Overlap extents in west, east, north, south.
45     C exchWidth[XY] :: Extent of regions that will be exchanged.
46     INTEGER OLw, OLe, OLn, OLs, exchWidthX, exchWidthY
47 jmc 1.3 #endif
48 jmc 1.1 CEOP
49    
50     #ifdef ALLOW_EXCH2
51     CALL EXCH2_Z_3D_RX(
52     U phi,
53     I myNz, myThid )
54     RETURN
55 jmc 1.3 #else /* ALLOW_EXCH2 */
56 jmc 1.1
57     OLw = OLx
58     OLe = OLx
59     OLn = OLy
60     OLs = OLy
61     exchWidthX = OLx
62     exchWidthY = OLy
63     IF (useCubedSphereExchange) THEN
64 jmc 1.4 CALL EXCH1_Z_RX_CUBE( phi, .FALSE.,
65 jmc 1.1 I OLw, OLe, OLs, OLn, myNz,
66     I exchWidthX, exchWidthY,
67 jmc 1.4 I EXCH_UPDATE_CORNERS, myThid )
68 jmc 1.1 ELSE
69 jmc 1.4 CALL EXCH1_RX( phi,
70 jmc 1.1 I OLw, OLe, OLs, OLn, myNz,
71     I exchWidthX, exchWidthY,
72 jmc 1.4 I EXCH_UPDATE_CORNERS, myThid )
73 jmc 1.1 ENDIF
74    
75     RETURN
76 jmc 1.3 #endif /* ALLOW_EXCH2 */
77 jmc 1.1 END

  ViewVC Help
Powered by ViewVC 1.1.22