File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -647,6 +647,9 @@ SUBROUTINE ALLOCATE_ALL()
647
647
snow_bucket1(i,j)= spval
648
648
graup_bucket(i,j)= spval
649
649
graup_bucket1(i,j)= spval
650
+ frzrn_bucket(i,j)= spval
651
+ snow_acm(i,j)= spval
652
+ snow_bkt(i,j)= spval
650
653
qrmax(i,j)= spval
651
654
tmax(i,j)= spval
652
655
snownc(i,j)= spval
@@ -752,6 +755,7 @@ SUBROUTINE ALLOCATE_ALL()
752
755
sfclhx(i,j)= spval
753
756
fis(i,j)= spval
754
757
t500(i,j)= spval
758
+ z500(i,j)= spval
755
759
t700(i,j)= spval
756
760
z700(i,j)= spval
757
761
teql(i,j)= spval
Original file line number Diff line number Diff line change @@ -130,6 +130,32 @@ subroutine read_postxconfig()
130
130
! Take the first line as paramset_count
131
131
read (22 ,* )paramset_count
132
132
133
+ if (associated(paramset)) then
134
+ if (size (paramset)>0 ) then
135
+ do i= 1 ,size (paramset)
136
+ if (associated(paramset(i)%param)) then
137
+ if (size (paramset(i)%param)>0 ) then
138
+ do j= 1 ,size (paramset(i)%param)
139
+ if (associated(paramset(i)%param(j)%scale_fact_fixed_sfc1)) &
140
+ deallocate(paramset(i)%param(j)%scale_fact_fixed_sfc1)
141
+ if (associated(paramset(i)%param(j)%level)) &
142
+ deallocate(paramset(i)%param(j)%level)
143
+ if (associated(paramset(i)%param(j)%scale_fact_fixed_sfc2)) &
144
+ deallocate(paramset(i)%param(j)%scale_fact_fixed_sfc2)
145
+ if (associated(paramset(i)%param(j)%level2)) &
146
+ deallocate(paramset(i)%param(j)%level2)
147
+ if (associated(paramset(i)%param(j)%scale)) &
148
+ deallocate(paramset(i)%param(j)%scale)
149
+ enddo
150
+ deallocate(paramset(i)%param)
151
+ nullify(paramset(i)%param)
152
+ endif
153
+ endif
154
+ enddo
155
+ endif
156
+ deallocate(paramset)
157
+ endif
158
+
133
159
! Allocate paramset array size
134
160
allocate(paramset(paramset_count))
135
161
You can’t perform that action at this time.
0 commit comments