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 |