C $Header: /u/gcmpack/MITgcm/pkg/exch2/exch2_s3d_rx.template,v 1.9 2010/05/06 23:28:45 jmc Exp $ C $Name: $ #include "CPP_EEOPTIONS.h" #include "W2_OPTIONS.h" CBOP C !ROUTINE: EXCH2_S3D_RX C !INTERFACE: SUBROUTINE EXCH2_S3D_RX( U phi, I myNz, myThid ) C !DESCRIPTION: C *==========================================================* C | SUBROUTINE EXCH2_S3D_RX C | o Handle Simple exchanges (= that ignore corners) C | for _RX, 3-dim scalar arrays with overlap size = 1 C *==========================================================* C !USES: IMPLICIT NONE C === Global data === #include "SIZE.h" #include "EEPARAMS.h" c#include "W2_EXCH2_SIZE.h" c#include "W2_EXCH2_TOPOLOGY.h" C !INPUT/OUTPUT PARAMETERS: C === Routine arguments === C phi :: Array with overlap regions are to be exchanged C myNz :: 3rd dimension of array to exchange C myThid :: My thread id. INTEGER myNz _RX phi(0:sNx+1,0:sNy+1,myNz,nSx,nSy) INTEGER myThid C !LOCAL VARIABLES: C == Local variables == C OL[wens] :: Overlap extents in west, east, north, south. C exchWidth[XY] :: Extent of regions that will be exchanged. INTEGER OLw, OLe, OLn, OLs, exchWidthX, exchWidthY CEOP OLw = 1 OLe = 1 OLn = 1 OLs = 1 exchWidthX = 1 exchWidthY = 1 CALL EXCH2_RX1_CUBE( phi, .FALSE., 'T ', I OLw, OLe, OLs, OLn, myNz, I exchWidthX, exchWidthY, I EXCH_IGNORE_CORNERS, myThid ) RETURN END C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| CEH3 ;;; Local Variables: *** CEH3 ;;; mode:fortran *** CEH3 ;;; End: ***