-
Notifications
You must be signed in to change notification settings - Fork 6
/
module_initialize_real.F.bkb.tracer
79 lines (63 loc) · 2.66 KB
/
module_initialize_real.F.bkb.tracer
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
! Initialize Tracers at model start time
! Add these to the module_initialize_real.F file
! mine is added at line 3398 after the "grid%save_topo_from_real = 1"
! Edits to tracer made by Brian Blaylock October 2015
!-----------------------------------------------------------------------
!------ Brian Blaylock Tracers -----------------------------------------
!-----------------------------------------------------------------------
! only run tracers if tracer_opt is turned on
IF (config_flags%tracer_opt .eq. 2) THEN
IF (grid%id == 2 ) THEN
! 5x15 Plume Line on the south end of the Salt Lake Valley
!(indexes valid for domain 2)
DO j = jds + 198, jds + 203, 1
DO i = ids + 225, ids + 240, 1
IF ( its .LE. i .and. ite .GE. i .and. jts .LE. j .and. jte .GE. j ) THEN
tracer(i, 1, j, P_S_SLV) = 1.
tracer(i, 2, j, P_S_SLV) = 1.
tracer(i, 3, j, P_S_SLV) = 1.
END IF
END DO
END DO
! 5x15 Plume Line on the north end of the Salt Lake Valley
! (indexes valid for domain 2)
DO j = jds + 220, jds + 225, 1
DO i = ids + 215, ids + 230, 1
IF ( its .LE. i .and. ite .GE. i .and. jts .LE. j .and. jte .GE. j ) THEN
tracer(i, 1, j, P_N_SLV) = 1.
tracer(i, 2, j, P_N_SLV) = 1.
tracer(i, 3, j, P_N_SLV) = 1.
END IF
END DO
END DO
! 3x3 Plume box on at the GSL Buoy
! (indexes valid for domain 2)
DO j = jds + 237, jds + 239, 1
DO i = ids + 196, ids + 198, 1
IF ( its .LE. i .and. ite .GE. i .and. jts .LE. j .and. jte .GE. j ) THEN
tracer(i, 1, j, P_BUOY) = 1.
tracer(i, 2, j, P_BUOY) = 1.
tracer(i, 3, j, P_BUOY) = 1.
END IF
END DO
END DO
! Tracer plane over entire Great Salt Lake
DO j = jts, MIN(jde-1,jte)
DO i = its, MIN(ide-1,ite)
IF ( ( grid%xlat(i,j) .gt. 40.5 ) .and. &
( grid%xlat(i,j) .lt. 41.8 ) .and. &
( grid%xlong(i,j) .gt. -113.25 ) .and. &
( grid%xlong(i,j) .lt. -112.0 ) .and. &
( grid%ivgtyp(i,j) .eq. 17 ) ) THEN
tracer(i, 1, j, P_LAKE) = 1.
tracer(i, 2, j, P_LAKE) = 1.
tracer(i, 3, j, P_LAKE) = 1.
END IF
END DO
END DO
END IF
END IF
!----- BKB: Add tracers -------------------------------------------------------
! If you want tracers that initialize at a specific time within the run, set
! these the tracer values to zero in this initilization script. Then in
! solve_em.F you will add a timestep condition to add tracers.