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

Diff of /MITgcm/eesupp/src/exch_uv_xy_rx.template

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

revision 1.2 by adcroft, Tue May 29 14:01:36 2001 UTC revision 1.3 by cnh, Fri Sep 21 03:55:50 2001 UTC
# Line 3  C $Name$ Line 3  C $Name$
3    
4  #include "CPP_EEOPTIONS.h"  #include "CPP_EEOPTIONS.h"
5    
6    CBOP
7    C     !ROUTINE: EXCH_UV_XY_RX
8    
9    C     !INTERFACE:
10        SUBROUTINE EXCH_UV_XY_RX(        SUBROUTINE EXCH_UV_XY_RX(
11       U                       Uphi, Vphi, withSigns,       U                       Uphi, Vphi, withSigns,
12       I                       myThid )       I                       myThid )
 C     /==========================================================\  
 C     | SUBROUTINE EXCH_UV_XY_RX                                 |  
 C     | o Handle exchanges for _RX,    two-dimensional arrays.   |  
 C     |==========================================================|  
 C     | Do true shared-memory data transfers and "messaging"     |  
 C     | tranfers for blocking case of data transfers.            |  
 C     | Applications call this routine using                     |  
 C     |  CALL EXCH..( x, myThid )                                |  
 C     | where x is a two-dimensional array with overlaps.        |  
 C     | This routine does true-shared-memory copies for blocks   |  
 C     | within a thread. It will also do MPI meesaging between   |  
 C     | different processes.                                     |  
 C     | Note:                                                    |  
 C     | =====                                                    |  
 C     | This routine is a default mode interface to the more     |  
 C     | general exchange routine. Under default mode the         |  
 C     | exchange is for an edge width of OLx, and OLy and        |  
 C     | updates corner points as well as edges ( slightly more   |  
 C     | synchronisation required).                               |  
 C     \==========================================================/  
13        IMPLICIT NONE        IMPLICIT NONE
14    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    
26    C     !USES:
27  C     === Global data ===  C     === Global data ===
28  #include "SIZE.h"  #include "SIZE.h"
29  #include "EEPARAMS.h"  #include "EEPARAMS.h"
30  #include "EESUPPORT.h"  #include "EESUPPORT.h"
31    
32    C     !INPUT/OUTPUT PARAMETERS:
33  C     === Routine arguments ===  C     === Routine arguments ===
34  C     phi    - Array with overlap regions are to be exchanged  C     Uphi      :: Arrays with overlap regions are to be exchanged
35  C              Note - The interface to EXCH_RL assumes that  C     Vphi         Note - The interface to EXCH_ assumes that
36  C              the standard Fortran 77 sequence association rules  C                  the standard Fortran 77 sequence association rules
37  C              apply.  C                  apply.
38  C     myThid - My thread id.  C     myThid    :: My thread id.
39    C     withSigns :: Flag controlling whether vector is signed.
40        _RX Uphi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RX Uphi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
41        _RX Vphi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)        _RX Vphi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
42        LOGICAL withSigns        LOGICAL withSigns
43        INTEGER myThid        INTEGER myThid
 CEndOfInterface  
44    
45    C     !LOCAL VARIABLES:
46  C     == Local variables ==  C     == Local variables ==
47  C     OL[wens]       - Overlap extents in west, east, north, south.  C     OL[wens]       :: Overlap extents in west, east, north, south.
48  C     exchWidth[XY]  - Extent of regions that will be exchanged.  C     exchWidth[XY]  :: Extent of regions that will be exchanged.
49        INTEGER OLw, OLe, OLn, OLs, exchWidthX, exchWidthY, myNz        INTEGER OLw, OLe, OLn, OLs, exchWidthX, exchWidthY, myNz
50    CEOP
51    
52        OLw        = OLx        OLw        = OLx
53        OLe        = OLx        OLe        = OLx

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.22