/[MITgcm]/MITgcm/model/src/do_gterm_blocking_exchanges.F
ViewVC logotype

Contents of /MITgcm/model/src/do_gterm_blocking_exchanges.F

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


Revision 1.17 - (show annotations) (download)
Fri Apr 15 14:06:15 2005 UTC (19 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57m_post, checkpoint57s_post, checkpoint58b_post, checkpoint57g_post, checkpoint57y_post, checkpoint57r_post, checkpoint57i_post, checkpoint59, checkpoint58, checkpoint58f_post, checkpoint57n_post, checkpoint58d_post, checkpoint58a_post, checkpoint57z_post, checkpoint58y_post, checkpoint58t_post, checkpoint57l_post, checkpoint57h_post, checkpoint57t_post, checkpoint57v_post, checkpoint60, checkpoint61, checkpoint57h_pre, checkpoint57x_post, checkpoint58w_post, checkpoint57y_pre, checkpoint58o_post, checkpoint58p_post, checkpoint58q_post, checkpoint58e_post, mitgcm_mapl_00, checkpoint58m_post, checkpoint58r_post, checkpoint58n_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint57p_post, checkpint57u_post, checkpoint57q_post, checkpoint58k_post, checkpoint58v_post, checkpoint58l_post, checkpoint57h_done, checkpoint57j_post, checkpoint61f, checkpoint58g_post, checkpoint58x_post, checkpoint59j, checkpoint58h_post, checkpoint58j_post, checkpoint57o_post, checkpoint57k_post, checkpoint57w_post, checkpoint61e, checkpoint58i_post, checkpoint58c_post, checkpoint58u_post, checkpoint58s_post, checkpoint61g, checkpoint61d, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61l, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i
Changes since 1.16: +16 -6 lines
do not refer to gxNm1 if unnecessary (to work also with AB-3)

1 C $Header: /u/gcmpack/MITgcm/model/src/do_gterm_blocking_exchanges.F,v 1.16 2004/11/02 19:09:55 edhill Exp $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_OPTIONS.h"
6
7 CBOP
8 C !ROUTINE: DO_GTERM_BLOCKING_EXCHANGES
9 C !INTERFACE:
10 SUBROUTINE DO_GTERM_BLOCKING_EXCHANGES(myThid)
11 C !DESCRIPTION: \bv
12 C *==========================================================*
13 C | SUBROUTINE DO_GTERM_BLOCKING_EXCHANGES
14 C | o Controlling routine for exchanging edge info.
15 C *==========================================================*
16 C | One key trick used in UV us that we over-compute and
17 C | arrange our time-stepping loop so that we only need one
18 C | edge exchange for the explicit code per timestep.
19 C *==========================================================*
20 C \ev
21 C !USES:
22 IMPLICIT NONE
23 C == Global variables ===
24 #include "SIZE.h"
25 #include "EEPARAMS.h"
26 #include "DYNVARS.h"
27
28 C !INPUT/OUTPUT PARAMETERS:
29 C == Routine arguments ==
30 C myThid - Thread number for this instance of the routine.
31 INTEGER myThid
32 CEOP
33
34 c _EXCH_XYZ_R8( Gu , myThid )
35 c _EXCH_XYZ_R8( Gv , myThid )
36 c _EXCH_XYZ_R8( Gt , myThid )
37 c _EXCH_XYZ_R8( Gs , myThid )
38 #ifdef ALLOW_ADAMSBASHFORTH_3
39 C_jmc: requires to pass "myIter" as argument !!!
40 C_jmc: leave it commented since this S/R is never called
41 c m1 = 1 + mod(myIter+1,2)
42 c CALL EXCH_UV_XYZ_RL(guNm(1-Olx,1-Oly,1,1,1,m1),
43 c & gvNm(1-Olx,1-Oly,1,1,1,m1),.TRUE.,myThid)
44 c _EXCH_XYZ_R8( gtNm(1-Olx,1-Oly,1,1,1,m1), myThid )
45 c _EXCH_XYZ_R8( gsNm(1-Olx,1-Oly,1,1,1,m1), myThid )
46 #else /* ALLOW_ADAMSBASHFORTH_3 */
47 CALL EXCH_UV_XYZ_RL(guNm1,gvNm1,.TRUE.,myThid)
48 c _EXCH_XYZ_R8( guNm1 , myThid )
49 c _EXCH_XYZ_R8( gvNm1 , myThid )
50 _EXCH_XYZ_R8( gtNm1 , myThid )
51 _EXCH_XYZ_R8( gsNm1 , myThid )
52 #endif /* ALLOW_ADAMSBASHFORTH_3 */
53 c _EXCH_XYZ_R8( uVel , myThid )
54 c _EXCH_XYZ_R8( vVel , myThid )
55 c _EXCH_XYZ_R8( theta , myThid )
56 c _EXCH_XYZ_R8( salt , myThid )
57
58 #ifdef ALLOW_PTRACERS
59 ceh3 add an IF ( usePTRACERS ) THEN
60 CALL PTRACERS_GTERM_BLOCKING_EXCH(myThid)
61 #endif /* ALLOW PTRACERS */
62
63 RETURN
64 END

  ViewVC Help
Powered by ViewVC 1.1.22