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

Contents of /MITgcm/eesupp/src/exch_xy_rx.template

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


Revision 1.5 - (show annotations) (download)
Tue Nov 16 17:21:40 2004 UTC (19 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57m_post, checkpoint57g_pre, checkpoint57s_post, checkpoint58b_post, checkpoint57b_post, checkpoint57g_post, checkpoint56b_post, checkpoint57y_post, checkpoint57r_post, checkpoint57d_post, checkpoint57i_post, checkpoint58, checkpoint57, checkpoint56, checkpoint58f_post, checkpoint57n_post, checkpoint58d_post, checkpoint58a_post, checkpoint57z_post, checkpoint58m_post, checkpoint57l_post, checkpoint57t_post, checkpoint57v_post, checkpoint57f_post, checkpoint57a_post, checkpoint57h_pre, checkpoint57h_post, checkpoint57y_pre, checkpoint58o_post, checkpoint57c_post, checkpoint58p_post, checkpoint58q_post, checkpoint58e_post, checkpoint57c_pre, checkpoint58r_post, checkpoint58n_post, checkpoint57e_post, checkpoint57p_post, checkpint57u_post, checkpoint57q_post, eckpoint57e_pre, checkpoint58k_post, checkpoint56a_post, checkpoint58l_post, checkpoint57h_done, checkpoint57j_post, checkpoint57f_pre, checkpoint58g_post, checkpoint58h_post, checkpoint56c_post, checkpoint58j_post, checkpoint57a_pre, checkpoint57o_post, checkpoint57k_post, checkpoint57w_post, checkpoint58i_post, checkpoint57x_post, checkpoint58c_post
Changes since 1.4: +13 -1 lines
call exch2 equivalent (within #ifdef ALLOW_EXCH2 / #endif)

1 C $Header: /u/gcmpack/MITgcm/pkg/exch2/exch_xy_rx.template,v 1.2 2004/04/05 15:27:06 edhill Exp $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_EEOPTIONS.h"
6
7 CBOP
8
9 C !ROUTINE: EXCH_XY_RX
10
11 C !INTERFACE:
12 SUBROUTINE EXCH_XY_RX(
13 U phi,
14 I myThid )
15 IMPLICIT NONE
16 C !DESCRIPTION:
17 C *==========================================================*
18 C | SUBROUTINE EXCH_XY_RX
19 C | o Handle exchanges for _RX two-dimensional scalar arrays.
20 C *==========================================================*
21 C | Invoke appropriate exchange for a scalar array for either
22 C | global grid, or cube sphere grid.
23 C *==========================================================*
24
25 C !USES:
26 C === Global data ===
27 #include "SIZE.h"
28 #include "EEPARAMS.h"
29 #include "EESUPPORT.h"
30 #include "EXCH.h"
31
32 C !INPUT/OUTPUT PARAMETERS:
33 C === Routine arguments ===
34 C phi :: Array with overlap regions are to be exchanged
35 C myThid :: My thread id.
36 _RX phi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
37 INTEGER myThid
38
39 C !LOCAL VARIABLES:
40 C == Local variables ==
41 C OL[wens] :: Overlap extents in west, east, north, south.
42 C exchWidth[XY] :: Extent of regions that will be exchanged.
43 INTEGER OLw, OLe, OLn, OLs, exchWidthX, exchWidthY, myNz
44 CEOP
45
46 #ifdef ALLOW_EXCH2
47 CALL EXCH2_XY_RX( phi, myThid )
48 RETURN
49 #endif
50
51 OLw = OLx
52 OLe = OLx
53 OLn = OLy
54 OLs = OLy
55 exchWidthX = OLx
56 exchWidthY = OLy
57 myNz = 1
58 C ** NOTE ** The exchange routine we use here does not
59 C require the preceeding and following barriers.
60 C However, the slow, simple exchange interface
61 C that is calling it here is meant to ensure
62 C that threads are synchronised before exchanges
63 C begine.
64 IF (useCubedSphereExchange) THEN
65 CALL EXCH_RX_CUBE( phi,
66 I OLw, OLe, OLs, OLn, myNz,
67 I exchWidthX, exchWidthY,
68 I FORWARD_SIMULATION, EXCH_UPDATE_CORNERS, myThid )
69 ELSE
70 CALL EXCH_RX( phi,
71 I OLw, OLe, OLs, OLn, myNz,
72 I exchWidthX, exchWidthY,
73 I FORWARD_SIMULATION, EXCH_UPDATE_CORNERS, myThid )
74 ENDIF
75
76 RETURN
77 END
78
79 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
80
81 CEH3 ;;; Local Variables: ***
82 CEH3 ;;; mode:fortran ***
83 CEH3 ;;; End: ***

  ViewVC Help
Powered by ViewVC 1.1.22