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

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

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


Revision 1.2 - (show annotations) (download)
Wed Sep 26 18:09:16 2001 UTC (22 years, 8 months ago) by cnh
Branch: MAIN
CVS Tags: checkpoint44b_post, checkpoint43a-release1mods, checkpoint44h_pre, ecco_c44_e19, ecco_c44_e17, ecco_c44_e16, ecco_c44_e21, ecco_c44_e26, ecco_c44_e27, ecco_c44_e24, ecco_c44_e25, icebear5, icebear4, checkpoint44f_pre, icebear3, icebear2, checkpoint41, release1-branch_tutorials, checkpoint44g_post, checkpoint44h_post, checkpoint44e_post, ecco-branch-mod4, ecco-branch-mod5, checkpoint45d_post, checkpoint45b_post, chkpt44a_pre, release1-branch-end, release1_final_v1, checkpoint46, ecco_c44_e20, checkpoint44, ecco_c44_e18, checkpoint44f_post, release1_b1, chkpt44d_post, checkpoint42, release1_p2, release1_p3, release1_p4, chkpt44a_post, checkpoint44b_pre, release1_p1, ecco-branch-mod1, checkpoint45c_post, release1_p5, checkpoint44e_pre, ecco_ice2, ecco_ice1, ecco-branch-mod2, checkpoint45a_post, ecco-branch-mod3, checkpoint43, release1-branch_branchpoint, ecco_c44_e22, release1_beta1, ecco_c44_e23, checkpoint45, release1_chkpt44d_post, chkpt44c_pre, chkpt44c_post
Branch point for: c24_e25_ice, ecco-branch, release1, release1_coupled, icebear, release1_final, release1-branch
Changes since 1.1: +19 -12 lines
Bringing comments up to data and formatting for document extraction.

1 C $Header: /u/gcmpack/models/MITgcmUV/model/src/ini_tr1.F,v 1.1 2001/07/13 14:26:57 heimbach Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: INI_TR1
8 C !INTERFACE:
9 SUBROUTINE INI_TR1( myThid )
10 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 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 #include "TR1.h"
29
30 C !INPUT/OUTPUT PARAMETERS:
31 C == Routine arguments ==
32 C myThid - Number of this instance of INI_TR1
33 INTEGER myThid
34
35 C !LOCAL VARIABLES:
36 C == Local variables ==
37 C iC, jC - Center of domain
38 C iD, jD - Disitance from domain center.
39 C rad - Radius of initial patch
40 C rD - Radial displacement of point I,J
41 C iG, jG - Global coordinate index
42 C bi,bj - Loop counters
43 C I,J,K
44 INTEGER iC, jC, iD, jD
45 INTEGER iG, jG
46 INTEGER bi, bj
47 INTEGER I, J, K, localWarnings
48 _RL rad, rD
49 CHARACTER*(MAX_LEN_MBUF) msgBuf
50 CEOP
51
52 _BARRIER
53
54 C-- Initialise tracer to inline.
55 DO bj = myByLo(myThid), myByHi(myThid)
56 DO bi = myBxLo(myThid), myBxHi(myThid)
57 DO K=1,Nr
58 DO J=1,sNy
59 DO I=1,sNx
60 IF ( K .EQ. 1 .AND. hFacC(I,J,K,bi,bj) .NE. 0 ) THEN
61 tr1(I,J,K,bi,bj) = 1. _d 0
62 ELSE
63 tr1(I,J,K,bi,bj) = 0. _d 0
64 ENDIF
65 ENDDO
66 ENDDO
67 ENDDO
68 ENDDO
69 ENDDO
70 C Set initial tendency terms
71 localWarnings=0
72 DO bj = myByLo(myThid), myByHi(myThid)
73 DO bi = myBxLo(myThid), myBxHi(myThid)
74 DO K=1,Nr
75 DO J=1,sNy
76 DO I=1,sNx
77 gtr1 (I,J,K,bi,bj) = 0. _d 0
78 gtr1NM1(I,J,K,bi,bj) = 0. _d 0
79 ENDDO
80 ENDDO
81 ENDDO
82 ENDDO
83 ENDDO
84 C
85 _EXCH_XYZ_R8(tr1 , myThid )
86 _EXCH_XYZ_R8(gtr1 , myThid )
87 _EXCH_XYZ_R8(gtr1NM1 , myThid )
88
89 CALL PLOT_FIELD_XYZRL( tr1, 'Initial TR1' ,
90 & Nr, 1, myThid )
91
92 RETURN
93 END

  ViewVC Help
Powered by ViewVC 1.1.22