/[MITgcm]/MITgcm/pkg/rbcs/rbcs_init_fixed.F
ViewVC logotype

Contents of /MITgcm/pkg/rbcs/rbcs_init_fixed.F

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


Revision 1.2 - (show annotations) (download)
Mon Dec 19 19:14:34 2005 UTC (18 years, 5 months ago) by stephd
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint58e_post, checkpoint58u_post, checkpoint58w_post, checkpoint58r_post, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58h_post, checkpoint58q_post, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59h, checkpoint59, checkpoint58, checkpoint58f_post, checkpoint58d_post, checkpoint58c_post, checkpoint58a_post, checkpoint58i_post, checkpoint58g_post, checkpoint58o_post, checkpoint57z_post, checkpoint58y_post, checkpoint58k_post, checkpoint58v_post, checkpoint58s_post, checkpoint58p_post, checkpoint58b_post, checkpoint58m_post
Changes since 1.1: +17 -13 lines
o changes to rbcs to include T/S relaxing, and to have different
  tau's and different relaxing masks for T/S/PTRACERS

1 #include "CPP_OPTIONS.h"
2 #include "PACKAGES_CONFIG.h"
3
4 C !INTERFACE: ==========================================================
5 SUBROUTINE RBCS_INIT_FIXED(myThid )
6
7 C !DESCRIPTION:
8 C calls subroutines that initialized fixed variables for relaxed
9 c boundary conditions
10
11 C !USES: ===============================================================
12 IMPLICIT NONE
13 #include "SIZE.h"
14 #include "GRID.h"
15 #include "DYNVARS.h"
16 #include "EEPARAMS.h"
17 #include "PARAMS.h"
18 #ifdef ALLOW_PTRACERS
19 #include "PTRACERS_SIZE.h"
20 #endif
21 #include "RBCS.h"
22
23 C !INPUT PARAMETERS: ===================================================
24 C myThid :: thread number
25 INTEGER myThid
26 CEOP
27
28 #ifdef ALLOW_RBCS
29
30
31 C !LOCAL VARIABLES:
32 C i,j,k,bi,bj,iTracer :: loop indices
33 INTEGER i,j,k,bi,bj
34 INTEGER irbc
35 #ifdef ALLOW_PTRACERS
36 INTEGER iTracer
37 #endif
38
39 C Loop over tiles
40 DO bj = myByLo(myThid), myByHi(myThid)
41 DO bi = myBxLo(myThid), myBxHi(myThid)
42
43 C Initialize arrays in common blocks :
44 DO k=1,Nr
45 DO j=1-Oly,sNy+OLy
46 DO i=1-Olx,sNx+Olx
47 DO irbc=1,maskLEN
48 RBC_mask(i,j,k,bi,bj,irbc) = 0. _d 0
49 ENDDO
50 RBCtemp(i,j,k,bi,bj) = 0. _d 0
51 RBCsalt(i,j,k,bi,bj) = 0. _d 0
52 ENDDO
53 ENDDO
54 ENDDO
55 ENDDO
56 ENDDO
57 #ifdef ALLOW_PTRACERS
58 C Loop over tracers
59 DO iTracer = 1, PTRACERS_num
60
61 C Loop over tiles
62 DO bj = myByLo(myThid), myByHi(myThid)
63 DO bi = myBxLo(myThid), myBxHi(myThid)
64
65 C Initialize arrays in common blocks :
66 DO k=1,Nr
67 DO j=1-Oly,sNy+OLy
68 DO i=1-Olx,sNx+Olx
69 RBC_ptracers(i,j,k,bi,bj,iTracer) = 0. _d 0
70 ENDDO
71 ENDDO
72 ENDDO
73 C end bi,bj loops
74 ENDDO
75 ENDDO
76
77 C end of Tracer loop
78 ENDDO
79 #endif
80
81 C read in mask for relaxing
82 do irbc=1,maskLEN
83 IF ( relaxMaskFile(irbc).NE. ' ' ) THEN
84 _BEGIN_MASTER( myThid )
85 CALL READ_FLD_XYZ_RS(relaxMaskFile(irbc),' ',
86 & RBC_mask(1-Olx,1-Oly,1,1,1,irbc), 0, myThid)
87 _END_MASTER(myThid)
88 _EXCH_XYZ_R8(RBC_mask(1-Olx,1-Oly,1,1,1,irbc), myThid )
89 CALL PLOT_FIELD_XYRS( RBC_mask(1-Olx,1-Oly,1,1,1,irbc),
90 & 'Boundary Relaxing' ,1, myThid )
91 ENDIF
92 enddo
93 C
94 #endif /* ALLOW_RBCS */
95
96 RETURN
97 END

  ViewVC Help
Powered by ViewVC 1.1.22