/[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.1 - (hide annotations) (download)
Fri Jul 13 14:26:57 2001 UTC (22 years, 10 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint40pre2, checkpoint40pre5, checkpoint40pre6, checkpoint40pre8, checkpoint40pre4, checkpoint40pre3, checkpoint40pre9, checkpoint40pre7, checkpoint40
o Added grdchk package handling
o Added passive tracer handling

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

  ViewVC Help
Powered by ViewVC 1.1.22