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

Diff of /MITgcm/eesupp/src/exch_z_xyz_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_Z_XYZ_RX
8    
9    C     !INTERFACE:
10        SUBROUTINE EXCH_Z_XYZ_RX(        SUBROUTINE EXCH_Z_XYZ_RX(
11       U                       phi,       U                       phi,
12       I                       myThid )       I                       myThid )
 C     /==========================================================\  
 C     | SUBROUTINE EXCH_Z_XYZ_RX                                 |  
 C     | o Handle exchanges for _RX,      3-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_Z_XYZ_RX                                  
17    C     | o Handle exchanges for _RX, 3-dim, zeta coord arrays.    
18    C     *==========================================================*
19    C     | Branch to appropriate exchange routine for a zeta coord
20    C     | array on the current grid scheme.
21    C     *==========================================================*
22    
23  C     === Global data ===  C     !USES:
24    C     == Global variables ==
25  #include "SIZE.h"  #include "SIZE.h"
26  #include "EEPARAMS.h"  #include "EEPARAMS.h"
27  #include "EESUPPORT.h"  #include "EESUPPORT.h"
28    
29  C     === Routine arguments ===  C     !INPUT/OUTPUT PARAMETERS:
30  C     phi    - Array with overlap regions are to be exchanged  C     == Routine arguments ==
31  C              Note - The interface to EXCH_RX assumes that  C     phi    :: Array with overlap regions are to be exchanged
32  C              the standard Fortran 77 sequence association rules  C               Note - The interface to EXCH_RX assumes that
33  C              apply.  C               the standard Fortran 77 sequence association rules
34  C     myThid - My thread id.  C               apply.
35    C     myThid :: My thread id.
36        _RX phi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)        _RX phi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
37        INTEGER myThid        INTEGER myThid
 CEndOfInterface  
38    
39    C     !LOCAL VARIABLES:
40  C     == Local variables ==  C     == Local variables ==
41  C     OL[wens]       - Overlap extents in west, east, north, south.  C     OL[wens]       :: Overlap extents in west, east, north, south.
42  C     exchWidth[XY]  - Extent of regions that will be exchanged.  C     exchWidth[XY]  :: Extent of regions that will be exchanged.
43        INTEGER OLw, OLe, OLn, OLs, exchWidthX, exchWidthY, myNz        INTEGER OLw, OLe, OLn, OLs, exchWidthX, exchWidthY, myNz
44    CEOP
45    
46        OLw        = OLx        OLw        = OLx
47        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