-
Notifications
You must be signed in to change notification settings - Fork 1
/
NORTRIP_reassign_input_arrays.f90
152 lines (126 loc) · 5.56 KB
/
NORTRIP_reassign_input_arrays.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
!NORTRIP_reassign_input_arrays.f90
!This routine is used to reassign input arrays so that the rest of the model thinks there is only one road
subroutine NORTRIP_reassign_input_arrays
use NORTRIP_definitions
implicit none
if (.not.use_single_road_loop_flag) return
!write(unit_logfile,'(A)') ''
!write(unit_logfile,'(A)') 'Reassigning input arrays for single road run (NORTRIP_reassign_input_arrays)'
!write(unit_logfile,'(A)') '================================================================'
traffic_data(:,:,0)=traffic_data(:,:,ro_tot)
meteo_data(:,:,0)=meteo_data(:,:,ro_tot)
airquality_data(:,:,0)=airquality_data(:,:,ro_tot)
activity_data(:,:,0)=activity_data(:,:,ro_tot)
activity_input_data(:,:,0)=activity_input_data(:,:,ro_tot)
d_index(0)=d_index(ro_tot)
p_index(0)=p_index(ro_tot)
b_road(0)=b_road(ro_tot)
n_lanes(0)=n_lanes(ro_tot)
b_road_lanes(0)=b_road_lanes(ro_tot)
b_lane(0)=b_lane(ro_tot)
b_canyon(0)=b_canyon(ro_tot)
h_canyon(:,0)=h_canyon(:,ro_tot)
ang_road(0)=ang_road(ro_tot)
slope_road(0)=slope_road(ro_tot)
roadtype_index(0)=roadtype_index(ro_tot)
LAT(0)=LAT(ro_tot)
LON(0)=LON(ro_tot)
Z_SURF(0)=Z_SURF(ro_tot)
z_FF(0)=z_FF(ro_tot)
z_T(0)=z_T(ro_tot)
z2_T(0)=z2_T(ro_tot)
albedo_road(0)=albedo_road(ro_tot)
DIFUTC_H(0)=DIFUTC_H(ro_tot)
Pressure(0)=Pressure(ro_tot)
!Correction factors
wind_speed_correction(0)=wind_speed_correction(ro_tot)
h_sus(0)=h_sus(ro_tot)
h_texture(0)=h_texture(ro_tot)
!OSPM factors
choose_receptor_ospm(0)=choose_receptor_ospm(ro_tot)
SL1_ospm(0)=SL1_ospm(ro_tot)
SL2_ospm(0)=SL2_ospm(ro_tot)
f_roof_ospm(0)=f_roof_ospm(ro_tot)
RecHeight_ospm(0)=RecHeight_ospm(ro_tot)
f_turb_ospm(0)=f_turb_ospm(ro_tot)
!Single factors
observed_moisture_cutoff_value(0)=observed_moisture_cutoff_value(ro_tot)
road_ID(0)=road_ID(ro_tot)
save_road_data_flag(0)=save_road_data_flag(ro_tot)
!Emisison factors (num_veh,n_road)
exhaust_EF(:,0)=exhaust_EF(:,ro_tot)
NOX_EF(:,0)=NOX_EF(:,ro_tot)
!Grid data
x_road(:,0)=x_road(:,ro_tot)
y_road(:,0)=y_road(:,ro_tot)
length_road(0)=length_road(ro_tot)
line_or_grid_data_flag(0)=line_or_grid_data_flag(ro_tot)
M_road_init(:,:,:,0)=M_road_init(:,:,:,ro_tot)
g_road_init(:,:,0)=g_road_init(:,:,ro_tot)
road_type_activity_flag(:,0)=road_type_activity_flag(:,ro_tot)
az_skyview(:,0)=az_skyview(:,ro_tot)
zen_skyview(:,0)=zen_skyview(:,ro_tot)
salting_hour(:,0)=salting_hour(:,ro_tot)
!salting_hour(1,0)=salting_hour(1,ro_tot)
!salting_hour(2,0)=salting_hour(2,ro_tot)
delay_salting_day(0)=delay_salting_day(ro_tot)
check_salting_day(0)=check_salting_day(ro_tot)
min_temp_salt(0)=min_temp_salt(ro_tot)
max_temp_salt(0)=max_temp_salt(ro_tot)
precip_rule_salt(0)=precip_rule_salt(ro_tot)
RH_rule_salt(0)=RH_rule_salt(ro_tot)
g_salting_rule(0)=g_salting_rule(ro_tot)
salt_mass(0)=salt_mass(ro_tot)
salt_dilution(0)=salt_dilution(ro_tot)
salt_type_distribution(0)=salt_type_distribution (ro_tot)
sanding_hour(:,0)=sanding_hour(:,ro_tot)
delay_sanding_day(0)=delay_sanding_day(ro_tot)
check_sanding_day(0)=check_sanding_day(ro_tot)
min_temp_sand(0)=min_temp_sand(ro_tot)
max_temp_sand(0)=max_temp_sand(ro_tot)
precip_rule_sand(0)=precip_rule_sand(ro_tot)
RH_rule_sand(0)=RH_rule_sand(ro_tot)
g_sanding_rule(0)=g_sanding_rule(ro_tot)
sand_mass(0)=sand_mass(ro_tot)
sand_dilution(0)=sand_dilution(ro_tot)
delay_ploughing_hour(0)=delay_ploughing_hour(ro_tot)
ploughing_thresh_2(0)=ploughing_thresh_2(ro_tot)
cleaning_hour(:,0)=cleaning_hour(:,ro_tot)
delay_cleaning_day(0)=delay_cleaning_day(ro_tot)
min_temp_cleaning(0)=min_temp_cleaning(ro_tot)
clean_with_salting(0)=clean_with_salting(ro_tot)
start_month_cleaning(0)=start_month_cleaning(ro_tot)
end_month_cleaning(0)=end_month_cleaning(ro_tot)
wetting_with_cleaning(0)=wetting_with_cleaning(ro_tot)
efficiency_of_cleaning(0)=efficiency_of_cleaning(ro_tot)
binding_hour(:,0)=binding_hour(:,ro_tot)
delay_binding_day(0)=delay_binding_day(ro_tot)
check_binding_day(0)=check_binding_day(ro_tot)
min_temp_binding(0)=min_temp_binding(ro_tot)
max_temp_binding(0)=max_temp_binding(ro_tot)
precip_rule_binding(0)=precip_rule_binding(ro_tot)
RH_rule_binding(0)=RH_rule_binding(ro_tot)
g_binding_rule(0)=g_binding_rule(ro_tot)
binding_mass(0)=binding_mass(ro_tot)
binding_dilution(0)=binding_dilution(ro_tot)
start_month_binding(0)=start_month_binding(ro_tot)
end_month_binding(0)=end_month_binding(ro_tot)
!Initialise all arrays to 0
!M_road_data=0.0
!M_road_bin_data=0.0
!M_road_bin_balance_data=0.0
!M_road_balance_data=0.0
!C_bin_data=0.0
!C_data=0.0
!E_road_data=0.0
!E_road_bin_data=0.0
!WR_time_data=0.0
!road_salt_data=0.0
!road_meteo_data=0.0
!g_road_balance_data=0.0
!g_road_data=0.0
!f_q=0.0
!f_q_obs=0.0
!azimuth_ang=0.0
!zenith_ang=0.0
end subroutine NORTRIP_reassign_input_arrays