/[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.1 - (show annotations) (download)
Thu Dec 8 00:14:00 2005 UTC (18 years, 5 months ago) by stephd
Branch: MAIN
o add rbcs package

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 #ifdef ALLOW_PTRACERS
35 INTEGER iTracer
36 #endif
37
38 C Loop over tiles
39 DO bj = myByLo(myThid), myByHi(myThid)
40 DO bi = myBxLo(myThid), myBxHi(myThid)
41
42 C Initialize arrays in common blocks :
43 DO k=1,Nr
44 DO j=1-Oly,sNy+OLy
45 DO i=1-Olx,sNx+Olx
46 RBC_mask(i,j,k,bi,bj) = 0. _d 0
47 RBCtemp(i,j,k,bi,bj) = 0. _d 0
48 RBCsalt(i,j,k,bi,bj) = 0. _d 0
49 ENDDO
50 ENDDO
51 ENDDO
52 ENDDO
53 ENDDO
54 #ifdef ALLOW_PTRACERS
55 C Loop over tracers
56 DO iTracer = 1, PTRACERS_num
57
58 C Loop over tiles
59 DO bj = myByLo(myThid), myByHi(myThid)
60 DO bi = myBxLo(myThid), myBxHi(myThid)
61
62 C Initialize arrays in common blocks :
63 DO k=1,Nr
64 DO j=1-Oly,sNy+OLy
65 DO i=1-Olx,sNx+Olx
66 RBC_ptracers(i,j,k,bi,bj,iTracer) = 0. _d 0
67 ENDDO
68 ENDDO
69 ENDDO
70 C end bi,bj loops
71 ENDDO
72 ENDDO
73
74 C end of Tracer loop
75 ENDDO
76 #endif
77
78 C read in mask for relaxing
79 IF ( relaxBoundaryFile.NE. ' ' ) THEN
80 _BEGIN_MASTER( myThid )
81 CALL READ_FLD_XYZ_RS(relaxBoundaryFile,' ', RBC_mask, 0, myThid)
82 _END_MASTER(myThid)
83 ENDIF
84 C
85 _EXCH_XYZ_R4(RBC_mask, myThid )
86
87 CALL PLOT_FIELD_XYRS( RBC_mask, 'Boundary Relaxing' ,
88 & 1, myThid )
89
90 #endif /* ALLOW_RBCS */
91
92 RETURN
93 END

  ViewVC Help
Powered by ViewVC 1.1.22