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

Annotation of /MITgcm/model/src/ini_tr1.F

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


Revision 1.3 - (hide annotations) (download)
Thu Jul 18 23:17:37 2002 UTC (21 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint47j_post, checkpoint48d_pre, checkpoint51j_post, branch-exfmods-tag, checkpoint47e_post, checkpoint47f_post, checkpoint46j_post, checkpoint47c_post, checkpoint50e_post, checkpoint50c_post, checkpoint46i_post, checkpoint47d_post, checkpoint47a_post, checkpoint46f_post, checkpoint47h_post, checkpoint46d_pre, checkpoint48e_post, checkpoint46e_post, checkpoint48h_post, checkpoint48d_post, checkpoint50c_pre, checkpoint46c_post, branchpoint-genmake2, checkpoint46h_pre, checkpoint46k_post, checkpoint46e_pre, checkpoint50d_pre, checkpoint48f_post, checkpoint47i_post, checkpoint46j_pre, checkpoint46b_pre, checkpoint48c_post, checkpoint46l_post, checkpoint51e_post, checkpoint51b_post, checkpoint51c_post, checkpoint47d_pre, checkpoint47, checkpoint48, checkpoint49, checkpoint47b_post, checkpoint48i_post, checkpoint46l_pre, checkpoint51f_pre, checkpoint51, checkpoint50, checkpoint50d_post, checkpoint46g_pre, checkpoint51b_pre, checkpoint46a_post, checkpoint47g_post, checkpoint46m_post, checkpoint48a_post, checkpoint51h_pre, checkpoint46a_pre, checkpoint50g_post, checkpoint50b_pre, checkpoint51g_post, checkpoint46b_post, checkpoint51f_post, checkpoint46d_post, checkpoint48b_post, checkpoint50b_post, checkpoint46g_post, checkpoint50f_post, checkpoint50a_post, checkpoint46c_pre, checkpoint50f_pre, checkpoint51d_post, checkpoint48c_pre, checkpoint50h_post, checkpoint51a_post, checkpoint46h_post, checkpoint50e_pre, checkpoint50i_post, checkpoint48g_post, checkpoint51i_pre
Branch point for: branch-genmake2, branch-exfmods-curt
Changes since 1.2: +7 -1 lines
do not include "TR1.h" when ALLOW_PASSIVE_TRACER is undefined;
 ==> reduce size of executable by 3 3D arrays.

1 jmc 1.3 C $Header: /u/gcmpack/MITgcm/model/src/ini_tr1.F,v 1.2 2001/09/26 18:09:16 cnh Exp $
2 cnh 1.2 C $Name: $
3 heimbach 1.1
4     #include "CPP_OPTIONS.h"
5    
6 cnh 1.2 CBOP
7     C !ROUTINE: INI_TR1
8     C !INTERFACE:
9 heimbach 1.1 SUBROUTINE INI_TR1( myThid )
10 cnh 1.2 C !DESCRIPTION: \bv
11     C *==========================================================*
12     C | SUBROUTINE INI_TR1
13     C | o Set initial tracer 1 distribution.
14     C *==========================================================*
15     C | Passive tracers 1-N can be initialised so as to
16     C | dye fluid.
17     C *==========================================================*
18     C \ev
19    
20     C !USES:
21 heimbach 1.1 IMPLICIT NONE
22     C === Global variables ===
23     #include "SIZE.h"
24     #include "EEPARAMS.h"
25     #include "PARAMS.h"
26     #include "GRID.h"
27     #include "DYNVARS.h"
28 jmc 1.3 #ifdef ALLOW_PASSIVE_TRACER
29 heimbach 1.1 #include "TR1.h"
30 jmc 1.3 #endif
31 heimbach 1.1
32 cnh 1.2 C !INPUT/OUTPUT PARAMETERS:
33 heimbach 1.1 C == Routine arguments ==
34     C myThid - Number of this instance of INI_TR1
35     INTEGER myThid
36    
37 jmc 1.3 #ifdef ALLOW_PASSIVE_TRACER
38    
39 cnh 1.2 C !LOCAL VARIABLES:
40 heimbach 1.1 C == Local variables ==
41     C iC, jC - Center of domain
42     C iD, jD - Disitance from domain center.
43     C rad - Radius of initial patch
44     C rD - Radial displacement of point I,J
45     C iG, jG - Global coordinate index
46     C bi,bj - Loop counters
47     C I,J,K
48     INTEGER iC, jC, iD, jD
49     INTEGER iG, jG
50     INTEGER bi, bj
51     INTEGER I, J, K, localWarnings
52     _RL rad, rD
53     CHARACTER*(MAX_LEN_MBUF) msgBuf
54 cnh 1.2 CEOP
55 heimbach 1.1
56     _BARRIER
57    
58     C-- Initialise tracer to inline.
59     DO bj = myByLo(myThid), myByHi(myThid)
60     DO bi = myBxLo(myThid), myBxHi(myThid)
61     DO K=1,Nr
62     DO J=1,sNy
63     DO I=1,sNx
64     IF ( K .EQ. 1 .AND. hFacC(I,J,K,bi,bj) .NE. 0 ) THEN
65     tr1(I,J,K,bi,bj) = 1. _d 0
66     ELSE
67     tr1(I,J,K,bi,bj) = 0. _d 0
68     ENDIF
69     ENDDO
70     ENDDO
71     ENDDO
72     ENDDO
73     ENDDO
74     C Set initial tendency terms
75     localWarnings=0
76     DO bj = myByLo(myThid), myByHi(myThid)
77     DO bi = myBxLo(myThid), myBxHi(myThid)
78     DO K=1,Nr
79     DO J=1,sNy
80     DO I=1,sNx
81     gtr1 (I,J,K,bi,bj) = 0. _d 0
82     gtr1NM1(I,J,K,bi,bj) = 0. _d 0
83     ENDDO
84     ENDDO
85     ENDDO
86     ENDDO
87     ENDDO
88     C
89     _EXCH_XYZ_R8(tr1 , myThid )
90     _EXCH_XYZ_R8(gtr1 , myThid )
91     _EXCH_XYZ_R8(gtr1NM1 , myThid )
92    
93     CALL PLOT_FIELD_XYZRL( tr1, 'Initial TR1' ,
94     & Nr, 1, myThid )
95 jmc 1.3
96     #endif /* ALLOW_PASSIVE_TRACER */
97 heimbach 1.1
98     RETURN
99     END

  ViewVC Help
Powered by ViewVC 1.1.22