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

Annotation of /MITgcm/eesupp/src/exch_uv_xy_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, 2 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_xy_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     C !ROUTINE: EXCH_UV_XY_RX
8    
9     C !INTERFACE:
10 adcroft 1.2 SUBROUTINE EXCH_UV_XY_RX(
11     U Uphi, Vphi, withSigns,
12     I myThid )
13     IMPLICIT NONE
14 cnh 1.3 C !DESCRIPTION:
15     C *==========================================================*
16     C | SUBROUTINE EXCH_UV_XY_RX
17     C | o Handle exchanges for _RX, two-dimensional arrays.
18     C *==========================================================*
19     C | Driver exchange routine which branches to cube sphere or
20     C | global, simple cartesian index grid. Exchange routine is
21     C | called with two arrays that are components of a vector.
22     C | These components are rotated and interchanged on the
23     C | rotated grid during cube exchanges.
24     C *==========================================================*
25 adcroft 1.2
26 cnh 1.3 C !USES:
27 adcroft 1.2 C === Global data ===
28     #include "SIZE.h"
29     #include "EEPARAMS.h"
30     #include "EESUPPORT.h"
31 edhill 1.4 #include "EXCH.h"
32 adcroft 1.2
33 cnh 1.3 C !INPUT/OUTPUT PARAMETERS:
34 adcroft 1.2 C === Routine arguments ===
35 cnh 1.3 C Uphi :: Arrays with overlap regions are to be exchanged
36     C Vphi Note - The interface to EXCH_ assumes that
37     C the standard Fortran 77 sequence association rules
38     C apply.
39     C myThid :: My thread id.
40     C withSigns :: Flag controlling whether vector is signed.
41 adcroft 1.2 _RX Uphi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
42     _RX Vphi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
43     LOGICAL withSigns
44     INTEGER myThid
45    
46 cnh 1.3 C !LOCAL VARIABLES:
47 adcroft 1.2 C == Local variables ==
48 cnh 1.3 C OL[wens] :: Overlap extents in west, east, north, south.
49     C exchWidth[XY] :: Extent of regions that will be exchanged.
50 adcroft 1.2 INTEGER OLw, OLe, OLn, OLs, exchWidthX, exchWidthY, myNz
51 cnh 1.3 CEOP
52 adcroft 1.2
53     OLw = OLx
54     OLe = OLx
55     OLn = OLy
56     OLs = OLy
57     exchWidthX = OLx
58     exchWidthY = OLy
59     myNz = 1
60     C ** NOTE ** The exchange routine we use here does not
61     C require the preceeding and following barriers.
62     C However, the slow, simple exchange interface
63     C that is calling it here is meant to ensure
64     C that threads are synchronised before exchanges
65     C begine.
66     IF (useCubedSphereExchange) THEN
67     CALL EXCH_UV_RX_CUBE( Uphi, Vphi, withSigns,
68     I OLw, OLe, OLs, OLn, myNz,
69     I exchWidthX, exchWidthY,
70     I FORWARD_SIMULATION, EXCH_UPDATE_CORNERS, myThid )
71     ELSE
72     c CALL EXCH_RX( Uphi,
73     c I OLw, OLe, OLs, OLn, myNz,
74     c I exchWidthX, exchWidthY,
75     c I FORWARD_SIMULATION, EXCH_UPDATE_CORNERS, myThid )
76     c CALL EXCH_RX( Vphi,
77     c I OLw, OLe, OLs, OLn, myNz,
78     c I exchWidthX, exchWidthY,
79     c I FORWARD_SIMULATION, EXCH_UPDATE_CORNERS, myThid )
80     c_jmc: for JAM compatibility, replace the 2 CALLs above by the 2 CPP_MACROs:
81     _EXCH_XY_RX( Uphi, myThid )
82     _EXCH_XY_RX( Vphi, myThid )
83     ENDIF
84    
85     RETURN
86     END

  ViewVC Help
Powered by ViewVC 1.1.22