/[MITgcm]/MITgcm/pkg/exch2/exch2_get_send_bounds.F
ViewVC logotype

Contents of /MITgcm/pkg/exch2/exch2_get_send_bounds.F

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


Revision 1.1 - (show annotations) (download)
Fri Jan 9 20:46:09 2004 UTC (20 years, 4 months ago) by afe
Branch: MAIN
CVS Tags: checkpoint57t_post, checkpoint58l_post, checkpoint53f_post, checkpoint54a_pre, checkpoint55c_post, checkpoint53b_pre, checkpoint57o_post, checkpoint57m_post, checkpoint57i_post, hrcube4, checkpoint58e_post, checkpoint57v_post, checkpoint52n_post, checkpoint52j_post, checkpoint57f_post, checkpoint57s_post, checkpoint57j_post, checkpoint58b_post, checkpoint58m_post, checkpoint57b_post, checkpoint53c_post, checkpoint53d_post, checkpoint57f_pre, checkpoint57k_post, checkpoint55d_pre, checkpoint57d_post, checkpoint57g_post, checkpoint57c_pre, checkpoint58r_post, checkpoint55j_post, checkpoint56b_post, checkpoint57h_pre, checkpoint57y_post, checkpoint58g_post, checkpoint57x_post, checkpoint52j_pre, checkpoint54a_post, checkpoint52l_post, checkpoint55h_post, checkpoint58n_post, checkpoint58x_post, checkpoint52k_post, checkpoint57g_pre, checkpoint54b_post, checkpoint58h_post, checkpoint57e_post, checkpoint58w_post, checkpoint54d_post, checkpoint52l_pre, checkpoint56c_post, checkpoint54e_post, checkpoint58j_post, checkpoint55b_post, checkpoint57h_post, checkpoint52m_post, checkpoint57y_pre, checkpoint55, checkpoint53a_post, checkpoint55a_post, checkpoint57a_post, hrcube5, mitgcm_mapl_00, checkpoint55g_post, checkpoint59e, checkpoint59d, checkpoint59a, checkpoint55f_post, checkpoint59c, checkpoint59b, checkpoint57r_post, checkpoint59, checkpoint58, checkpoint57a_pre, checkpoint54, checkpoint57, checkpoint56, checkpoint53, checkpoint57h_done, checkpoint58f_post, checkpoint53g_post, checkpoint52f_post, checkpoint57n_post, checkpoint58d_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint58a_post, checkpoint58i_post, checkpoint57q_post, checkpoint58o_post, checkpoint57z_post, checkpoint54f_post, checkpoint55e_post, eckpoint57e_pre, checkpoint58c_post, checkpoint58k_post, checkpoint57c_post, checkpoint58u_post, checkpoint58y_post, checkpoint53b_post, checkpoint52i_post, checkpoint58v_post, checkpoint53d_pre, checkpoint58s_post, checkpoint58p_post, checkpoint58t_post, checkpoint58q_post, checkpoint55i_post, checkpoint54c_post, checkpoint57l_post, checkpoint52i_pre, checkpoint52h_pre, hrcube_2, hrcube_3, checkpoint56a_post, checkpoint55d_post
Added exch2 routines and pointed hs94.cs-32x32x5 at them

1 C$Header: /u/u0/gcmpack/MITgcm_contrib/high_res_cube/code-mods/exch2_get_send_bounds.F,v 1.1.1.1 2003/11/11 18:08:07 cnh Exp $
2
3 SUBROUTINE EXCH2_GET_SEND_BOUNDS(
4 I fCode, eWdth,
5 O tiStride, tjStride,
6 U tIlo, tIhi, tJlo, tJhi )
7 C
8 IMPLICIT NONE
9 C
10 CHARACTER*2 fCode
11 INTEGER eWdth
12 INTEGER tiStride, tjStride
13 INTEGER tIlo, tIhi, tJlo, tJhi
14 C
15 IF ( tIlo .EQ. tIhi .AND. tIlo .EQ. 0 ) THEN
16 C Sending to a west edge
17 tIlo=1-eWdth
18 tIhi=0
19 tistride=1
20 IF ( tJlo .LE. tJhi ) THEN
21 tJlo=tJlo-eWdth+1
22 tJhi=tJhi+eWdth-1
23 tjstride=1
24 ELSE
25 tJlo=tJlo+eWdth-1
26 tJhi=tJhi-eWdth+1
27 tjstride=-1
28 ENDIF
29 ENDIF
30 IF ( tIlo .EQ. tIhi .AND. tIlo .GT. 1 ) THEN
31 C Sending to an east edge
32 tIhi=tIhi+eWdth-1
33 tistride=1
34 IF ( tJlo .LE. tJhi ) THEN
35 tJlo=tJlo-eWdth+1
36 tJhi=tJhi+eWdth-1
37 tjstride=1
38 ELSE
39 tJlo=tJlo+eWdth-1
40 tJhi=tJhi-eWdth+1
41 tjstride=-1
42 ENDIF
43 ENDIF
44 IF ( tJlo .EQ. tJhi .AND. tJlo .EQ. 0 ) THEN
45 C Sending to a south edge
46 tJlo=1-eWdth
47 tJhi=0
48 tjstride=1
49 IF ( tIlo .LE. tIhi ) THEN
50 tIlo=tIlo-eWdth+1
51 tIhi=tIhi+eWdth-1
52 tistride=1
53 ELSE
54 tIlo=tIlo+eWdth-1
55 tIhi=tIhi-eWdth+1
56 tistride=-1
57 ENDIF
58 ENDIF
59 IF ( tJlo .EQ. tJhi .AND. tJlo .GT. 1 ) THEN
60 C Sending to an north edge
61 tJhi=tJhi+eWdth-1
62 tjstride=1
63 IF ( tIlo .LE. tIhi ) THEN
64 tIlo=tIlo-eWdth+1
65 tIhi=tIhi+eWdth-1
66 tistride=1
67 ELSE
68 tIlo=tIlo+eWdth-1
69 tIhi=tIhi-eWdth+1
70 tistride=-1
71 ENDIF
72 ENDIF
73
74 RETURN
75 END

  ViewVC Help
Powered by ViewVC 1.1.22