-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathDeallocateVariables.F90
90 lines (70 loc) · 2.6 KB
/
DeallocateVariables.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
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! !
! FILE: DeallocateVariables.F90 !
! CONTAINS: subroutine DeallocateVariables !
! !
! PURPOSE: Finalization routine. Deallocates all !
! variables used in the code !
! !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
subroutine DeallocateVariables
use param
use local_arrays
use stat_arrays
use AuxiliaryRoutines
implicit none
call DestroyReal1DArray(zc)
call DestroyReal1DArray(zm)
call DestroyReal1DArray(ak1)
call DestroyReal1DArray(ao)
call DestroyReal1DArray(yc)
call DestroyReal1DArray(ym)
call DestroyReal1DArray(ak2)
call DestroyReal1DArray(ap)
call DestroyReal1DArray(xc)
call DestroyReal1DArray(xm)
call DestroyReal1DArray(g3rc)
call DestroyReal1DArray(g3rm)
call DestroyReal1DArray(udx3c)
call DestroyReal1DArray(udx3m)
call DestroyReal1DArray(ap3ck)
call DestroyReal1DArray(ac3ck)
call DestroyReal1DArray(am3ck)
call DestroyReal1DArray(ap3sk)
call DestroyReal1DArray(ac3sk)
call DestroyReal1DArray(am3sk)
call DestroyReal1DArray(ap3ssk)
call DestroyReal1DArray(ac3ssk)
call DestroyReal1DArray(am3ssk)
call DestroyReal1DArray(amphk)
call DestroyReal1DArray(acphk)
call DestroyReal1DArray(apphk)
call DestroyInt1dArray(kmc)
call DestroyInt1dArray(kpc)
call DestroyInt1dArray(kmv)
call DestroyInt1dArray(kpv)
call DestroyReal2DArray(tempbp)
call DestroyReal2DArray(temptp)
call DestroyReal1DArray(vx_me)
call DestroyReal1DArray(vy_me)
call DestroyReal1DArray(vz_me)
call DestroyReal1DArray(vx_rms)
call DestroyReal1DArray(vy_rms)
call DestroyReal1DArray(vz_rms)
call DestroyReal1DArray(temp_me)
call DestroyReal1DArray(temp_rms)
call DestroyReal1DArray(tempvx_me)
call DestroyReal3DArray(vx)
call DestroyReal3DArray(vy)
call DestroyReal3DArray(vz)
call DestroyReal3DArray(temp)
call DestroyReal3DArray(pr)
call DestroyReal3DArray(rhs)
call DestroyReal3DArray(dph)
call DestroyReal3DArray(dphhalo)
call DestroyReal3DArray(rux)
call DestroyReal3DArray(ruy)
call DestroyReal3DArray(ruz)
call DestroyReal3DArray(rutemp)
return
end