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

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

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


Revision 1.8 - (hide annotations) (download)
Fri Aug 17 18:23:35 2007 UTC (16 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
remove unused templates

1 jmc 1.8 C $Header: /u/gcmpack/MITgcm/eesupp/src/exch_z_xy_rx.template,v 1.7 2006/11/17 22:35:03 heimbach Exp $
2 cnh 1.3 C $Name: $
3 adcroft 1.2
4 jmc 1.5 #include "PACKAGES_CONFIG.h"
5 adcroft 1.2 #include "CPP_EEOPTIONS.h"
6    
7 cnh 1.3 CBOP
8     C !ROUTINE: EXCH_Z_XY_RX
9    
10     C !INTERFACE:
11 adcroft 1.2 SUBROUTINE EXCH_Z_XY_RX(
12     U phi,
13     I myThid )
14     IMPLICIT NONE
15    
16 cnh 1.3 C !DESCRIPTION:
17     C *==========================================================*
18 jmc 1.6 C | SUBROUTINE EXCH_Z_XY_RX
19     C | o Handle exchanges for _RX, 2-dim zeta coord array.
20 cnh 1.3 C *==========================================================*
21     C | Branch to correct exchange for particular grid operating
22     C | on a zeta coord array.
23     C *==========================================================*
24    
25     C !USES:
26     C == Global variables ==
27 adcroft 1.2 #include "SIZE.h"
28     #include "EEPARAMS.h"
29     #include "EESUPPORT.h"
30 edhill 1.4 #include "EXCH.h"
31 adcroft 1.2
32 cnh 1.3 C !INPUT/OUTPUT PARAMETERS:
33     C == Routine arguments ==
34     C phi :: Array with overlap regions are to be exchanged
35     C Note - The interface to EXCH_RL assumes that
36     C the standard Fortran 77 sequence association rules
37     C apply.
38     C myThid :: My thread id.
39 adcroft 1.2 _RX phi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
40     INTEGER myThid
41    
42 cnh 1.3 C !LOCAL VARIABLES:
43 adcroft 1.2 C == Local variables ==
44 cnh 1.3 C OL[wens] :: Overlap extents in west, east, north, south.
45     C exchWidth[XY] :: Extent of regions that will be exchanged.
46 adcroft 1.2 INTEGER OLw, OLe, OLn, OLs, exchWidthX, exchWidthY, myNz
47 cnh 1.3 CEOP
48 adcroft 1.2
49 jmc 1.5 #ifdef ALLOW_EXCH2
50 jmc 1.6 CALL EXCH2_Z_3D_RX( phi, 1, myThid )
51 jmc 1.5 RETURN
52 heimbach 1.7 #else
53 jmc 1.5
54 adcroft 1.2 OLw = OLx
55     OLe = OLx
56     OLn = OLy
57     OLs = OLy
58     exchWidthX = OLx
59     exchWidthY = OLy
60     myNz = 1
61     C ** NOTE ** The exchange routine we use here does not
62     C require the preceeding and following barriers.
63     C However, the slow, simple exchange interface
64     C that is calling it here is meant to ensure
65     C that threads are synchronised before exchanges
66     C begine.
67     IF (useCubedSphereExchange) THEN
68     CALL EXCH_Z_RX_CUBE( phi,
69     I OLw, OLe, OLs, OLn, myNz,
70     I exchWidthX, exchWidthY,
71     I FORWARD_SIMULATION, EXCH_UPDATE_CORNERS, myThid )
72     ELSE
73     CALL EXCH_RX( phi,
74     I OLw, OLe, OLs, OLn, myNz,
75     I exchWidthX, exchWidthY,
76     I FORWARD_SIMULATION, EXCH_UPDATE_CORNERS, myThid )
77     ENDIF
78    
79     RETURN
80 heimbach 1.7 #endif
81 adcroft 1.2 END

  ViewVC Help
Powered by ViewVC 1.1.22