-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.f90
168 lines (148 loc) · 6.14 KB
/
variables.f90
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
!cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
! variables declares all the constant variables used throughout the
! program
!cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
! © 2022. Triad National Security, LLC. All rights reserved. This
! program was produced under U.S. Government contract 89233218CNA000001
! for Los Alamos National Laboratory (LANL), which is operated by Triad
! National Security, LLC for the U.S. Department of Energy/National
! Nuclear Security Administration. All rights in the program are
! reserved by Triad National Security, LLC, and the U.S. Department of
! Energy/National Nuclear Security Administration. The Government is
! granted for itself and others acting on its behalf a nonexclusive,
! paid-up, irrevocable worldwide license in this material to reproduce,
! prepare derivative works, distribute copies to the public, perform
! publicly and display publicly, and to permit others to do so.
!-----------------------------------------------------------------
module constant_variables
!-----------------------------------------------------------------
! Constant variables and arrays
!-----------------------------------------------------------------
implicit none
real PI
end module constant_variables
module grid_variables
!-----------------------------------------------------------------
! Grid and topo variables and arrays
!-----------------------------------------------------------------
implicit none
integer :: nx,ny,nz
real :: dx,dy,dz
real :: aa1=0.1
real :: ndatax=0.,ndatay=0.,datalocx=0.,datalocy=0. !JSM added ndatax, etc.
integer nfuel,zmax
real,allocatable:: rhof(:,:,:,:),sizescale(:,:,:,:),moist(:,:,:,:),fueldepth(:,:,:,:)
real,allocatable:: zs(:,:),zheight(:,:,:)
character:: topofile*50='flat'
integer :: verbose=0,doubleprec=0
end module grid_variables
module io_variables
!-----------------------------------------------------------------
! IO variables and arrays
!-----------------------------------------------------------------
implicit none
integer :: singlefuel=0,lreduced=0
integer :: controlseed,n,seedchange
integer,allocatable :: seed(:)
character:: workdir*255=''
character :: filesep*1=''
end module io_variables
module infile_variables
!-----------------------------------------------------------------
! Variables for importing fuel files
!-----------------------------------------------------------------
implicit none
integer :: ifuelin=0
integer :: inx=0,iny=0,inz=0
real :: idx=0.,idy=0.,idz=0.
real :: iaa1=-1.
integer :: iintpr=0
integer :: infuel=0
real,allocatable:: irhof(:,:,:,:),iss(:,:,:,:),imoist(:,:,:,:),iafd(:,:,:,:)
real,allocatable:: izs(:,:),izheight(:,:,:)
character:: intopofile*50='flat'
character:: rhoffile*50,moistfile*50,ssfile*50,afdfile*50
end module infile_variables
module fuels_create_variables
!-----------------------------------------------------------------
! Tree and groundfuel variables unique to baseline establishment
!-----------------------------------------------------------------
implicit none
integer:: igrass=0,itrees=0,ilitter=0
integer:: ngrass=0,duet_ngrass=0
integer :: iFIA,iFIAspecies
real:: grassconstant=5.,litterconstant=5.,gmoistoverride=0.
real,allocatable:: grhof(:,:,:,:),gsizescale(:,:,:,:),gmoist(:,:,:,:),gfueldepth(:,:,:)
real,allocatable:: trhof(:,:,:,:),tsizescale(:,:,:,:),tmoist(:,:,:,:),tfueldepth(:,:,:)
real,allocatable:: lrhof(:,:,:,:),lsizescale(:,:,:,:),lmoist(:,:,:,:),lfueldepth(:,:,:)
character:: grassfile*50,treefile*250,litterfile*50,newtreefile*250
integer:: istem=0,ntspecies=0,tfuelbins=0,ntreefueltypes
real,allocatable:: tstemdensity(:),tlocation(:,:,:)
real,allocatable:: t1moisture(:,:),t1ss(:,:),t1bulkdensity(:,:)
real,allocatable:: t2moisture(:,:,:),t2ss(:,:,:),t2bulkdensity(:,:,:)
real,allocatable:: theight(:,:),tcrownbotheight(:,:),tcrownmaxheight(:,:),tcrowndiameter(:,:)
real,allocatable:: trhomicro(:),tdbh(:,:),tstemmoist(:),tbarkthick(:,:),tbarkmoist(:)
integer,allocatable:: ntrees(:),tspecies(:)
real,allocatable:: trhofmax(:)
integer,allocatable:: trhofmaxindex(:)
real,allocatable:: gdepth(:),grho(:),gss(:),gmoisture(:)
real,allocatable:: ldepth(:),lrho(:),lss(:),lmoisture(:)
character :: command*50
end module fuels_create_variables
!module duet_variables
!!-----------------------------------------------------------------
!! Surface fuel variables
!!-----------------------------------------------------------------
!implicit none
!
!character :: speciesfile*100,winddatafile*100
!integer :: windprofile=0,randomwinds=0
!integer :: grassstep=1,periodTotal,litout
!integer :: StepsPerYear=1,YearsSinceBurn=4,inputprogram=1
!real :: relhum,densitythresh
!real,allocatable:: vterminal(:),fuelSA(:),Froude(:),droptime(:)
!real,allocatable:: leafdropfreq(:),decay(:),dragco(:),moistspec(:)
!real,allocatable:: uavg(:),vavg(:),VAR(:,:),ustd(:),vstd(:)
!real,allocatable:: ssspec(:),compact(:)
!real,allocatable:: Umean(:,:,:),Vmean(:,:,:),Uvar(:,:,:),Vvar(:,:,:)
!real,allocatable:: lrhofT(:,:,:,:),grhofT(:,:,:,:)
!real,allocatable:: lafdT(:,:,:,:),gafdT(:,:,:,:)
!real,allocatable:: lmoistT(:,:,:,:),gmoistT(:,:,:,:)
!real,allocatable:: lssT(:,:,:,:),gssT(:,:,:,:)
!
!end module duet_variables
!
!module species_variables
!
!!-----------------------------------------------------------------
!! Variables for species database
!!-----------------------------------------------------------------
!implicit none
!
!type :: read_species
! integer :: FIA_code
! character(len=8) :: sp_grp
! integer :: sp_grp_num
! character(len=30) :: species, genus, common_name
! real :: mass_avg,mass,surfarea_avg,surfarea
! integer :: dropperyear
! real :: decay,moist
! integer :: stepperyear
! real :: dragco,vterminal,froude,compact,sizescale
!end type read_species
!
!type :: read_species_grp
! real :: mass,surfarea
! integer :: dropperyear
! real :: decay,moist
! integer :: stepperyear
! real :: dragco,vterminal,froude,compact,sizescale
!end type read_species_grp
!
!type(read_species),dimension(290) :: SPECINFO
!type(read_species_grp),dimension(10) :: SPECgroups
!integer :: iFIA,iFIAspecies
!integer,allocatable :: FIA(:)
!integer,allocatable :: final_uni_sp(:)
!
!end module species_variables