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

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

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


Revision 1.4 - (hide annotations) (download)
Sat Apr 3 04:46:34 2004 UTC (20 years, 3 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint54d_post, checkpoint54e_post, checkpoint55, checkpoint54, checkpoint53, checkpoint54f_post, checkpoint55i_post, checkpoint55c_post, checkpoint53d_post, checkpoint54b_post, checkpoint52m_post, checkpoint55g_post, checkpoint55d_post, checkpoint54a_pre, checkpoint53c_post, checkpoint55d_pre, checkpoint55j_post, checkpoint54a_post, checkpoint55h_post, checkpoint55b_post, checkpoint53a_post, checkpoint55f_post, checkpoint53g_post, checkpoint53f_post, checkpoint52n_post, checkpoint53b_pre, checkpoint55a_post, checkpoint53b_post, checkpoint53d_pre, checkpoint55e_post, checkpoint54c_post
Changes since 1.3: +2 -1 lines
 o fix the broken _R[48] items checked in to eesupp earlier today

1 edhill 1.4 C $Header: /u/gcmpack/MITgcm/eesupp/src/exch_uv_xyz_rx.template,v 1.3 2001/09/21 03:55:50 cnh Exp $
2 cnh 1.3 C $Name: $
3 adcroft 1.2
4     #include "CPP_EEOPTIONS.h"
5    
6 cnh 1.3 CBOP
7    
8     C !ROUTINE: EXCH_UV_XYZ_RX
9    
10     C !INTERFACE:
11 adcroft 1.2 SUBROUTINE EXCH_UV_XYZ_RX(
12     U Uphi, Vphi, withSigns,
13     I myThid )
14     IMPLICIT NONE
15 cnh 1.3 C !DESCRIPTION:
16     C *==========================================================*
17     C | SUBROUTINE EXCH_UV_XYZ_RX
18     C | o Handle exchanges for _RX, 3-dimensional vector arrays.
19     C *==========================================================*
20     C | Vector arrays need to be rotated and interchaged for
21     C | exchange operations on some grids. This driver routine
22     C | branches to support this.
23     C *==========================================================*
24 adcroft 1.2
25 cnh 1.3 C !USES:
26 adcroft 1.2 C === Global data ===
27     #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 adcroft 1.2 C === Routine arguments ===
34 cnh 1.3 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 Uphi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
40     _RX Vphi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
41     LOGICAL withSigns
42     INTEGER myThid
43    
44 cnh 1.3 C !LOCAL VARIABLES:
45 adcroft 1.2 C == Local variables ==
46 cnh 1.3 C OL[wens] :: Overlap extents in west, east, north, south.
47     C exchWidth[XY] :: Extent of regions that will be exchanged.
48 adcroft 1.2 INTEGER OLw, OLe, OLn, OLs, exchWidthX, exchWidthY, myNz
49 cnh 1.3
50     CEOP
51 adcroft 1.2
52     OLw = OLx
53     OLe = OLx
54     OLn = OLy
55     OLs = OLy
56     exchWidthX = OLx
57     exchWidthY = OLy
58     myNz = Nr
59     C ** NOTE ** The exchange routine we use here does not
60     C require the preceeding and following barriers.
61     C However, the slow, simple exchange interface
62     C that is calling it here is meant to ensure
63     C that threads are synchronised before exchanges
64     C begine.
65     IF (useCubedSphereExchange) THEN
66     CALL EXCH_UV_RX_CUBE( Uphi, Vphi, withSigns,
67     I OLw, OLe, OLs, OLn, myNz,
68     I exchWidthX, exchWidthY,
69     I FORWARD_SIMULATION, EXCH_UPDATE_CORNERS, myThid )
70     ELSE
71     c CALL EXCH_RX( Uphi,
72     c I OLw, OLe, OLs, OLn, myNz,
73     c I exchWidthX, exchWidthY,
74     c I FORWARD_SIMULATION, EXCH_UPDATE_CORNERS, myThid )
75     c CALL EXCH_RX( Vphi,
76     c I OLw, OLe, OLs, OLn, myNz,
77     c I exchWidthX, exchWidthY,
78     c I FORWARD_SIMULATION, EXCH_UPDATE_CORNERS, myThid )
79     c_jmc: for JAM compatibility, replace the 2 CALLs above by the 2 CPP_MACROs:
80     _EXCH_XYZ_RX( Uphi, myThid )
81     _EXCH_XYZ_RX( Vphi, myThid )
82     ENDIF
83    
84     RETURN
85     END

  ViewVC Help
Powered by ViewVC 1.1.22