1 | module allinterfaces |
---|
2 | ! interfaces from Fortran 90 subroutines and functions |
---|
3 | ! comments have been stripped |
---|
4 | |
---|
5 | !begin fast_subs_mars.f90 |
---|
6 | |
---|
7 | interface |
---|
8 | subroutine icelayer_mars(bigstep,nz,NP,thIn,rhoc,z,porosity,pfrost, & |
---|
9 | & Tb,zdepthF,zdepthE,porefill,Tmean1,Tmean3,zdepthG, & |
---|
10 | & albedo,p0,icefrac,zdepthT,avrho1, & |
---|
11 | & avrho1prescribed) |
---|
12 | use miscparameters, only : d2r, NMAX, icedensity |
---|
13 | implicit none |
---|
14 | integer, intent(IN) :: nz, NP |
---|
15 | real(8), intent(IN) :: bigstep |
---|
16 | real(8), intent(IN), dimension(NP) :: thIn, rhoc |
---|
17 | real(8), intent(IN) :: z(NMAX) |
---|
18 | real(8), intent(IN) :: porosity, pfrost(NP) |
---|
19 | real(8), intent(INOUT) :: Tb(NP), porefill(nz,NP), zdepthF(NP), zdepthT(NP) |
---|
20 | real(8), intent(OUT), dimension(NP) :: zdepthE, Tmean1, Tmean3, zdepthG |
---|
21 | real(8), intent(IN), dimension(NP) :: albedo, p0 |
---|
22 | real(8), intent(IN) :: icefrac |
---|
23 | real(8), intent(OUT) :: avrho1(NP) |
---|
24 | real(8), intent(IN), optional :: avrho1prescribed(NP) |
---|
25 | end subroutine icelayer_mars |
---|
26 | end interface |
---|
27 | |
---|
28 | interface |
---|
29 | subroutine ajsub_mars(typeT, albedo0, pfrost, nz, z, ti, rhocv, & |
---|
30 | & fracIR, fracDust, p0, avdrho, avdrhoP, avrho1, & |
---|
31 | & Tb, zdepthE, typeF, zdepthF, ypp, porefill, Tmean1, Tmean3, & |
---|
32 | & B, typeG, zdepthG, avrho1prescribed) |
---|
33 | use miscparameters |
---|
34 | implicit none |
---|
35 | integer, intent(IN) :: nz, typeT |
---|
36 | real(8), intent(IN) :: albedo0, pfrost, z(NMAX) |
---|
37 | real(8), intent(IN) :: ti(NMAX), rhocv(NMAX), fracIR, fracDust, p0 |
---|
38 | real(8), intent(IN) :: porefill(nz) |
---|
39 | real(8), intent(OUT) :: avdrho, avdrhoP |
---|
40 | real(8), intent(OUT) :: avrho1 |
---|
41 | real(8), intent(INOUT) :: Tb, Tmean1 |
---|
42 | integer, intent(OUT) :: typeF |
---|
43 | real(8), intent(OUT) :: zdepthE, zdepthF |
---|
44 | real(8), intent(OUT) :: ypp(nz) |
---|
45 | real(8), intent(OUT) :: Tmean3, zdepthG |
---|
46 | real(8), intent(IN) :: B |
---|
47 | integer, intent(OUT) :: typeG |
---|
48 | real(8), intent(IN), optional :: avrho1prescribed |
---|
49 | end subroutine ajsub_mars |
---|
50 | end interface |
---|
51 | |
---|
52 | !end of fast_subs_mars.f90 |
---|
53 | !begin fast_subs_univ.f90 |
---|
54 | |
---|
55 | interface |
---|
56 | pure function zint(y1,y2,z1,z2) |
---|
57 | implicit none |
---|
58 | real(8), intent(IN) :: y1,y2,z1,z2 |
---|
59 | real(8) zint |
---|
60 | end function zint |
---|
61 | end interface |
---|
62 | |
---|
63 | interface |
---|
64 | pure function equildepth(nz, z, rhosatav, rhosatav0, avrho1) |
---|
65 | implicit none |
---|
66 | integer, intent(IN) :: nz |
---|
67 | real(8), intent(IN) :: z(nz), rhosatav(nz) |
---|
68 | real(8), intent(IN) :: rhosatav0, avrho1 |
---|
69 | real(8) zint, equildepth |
---|
70 | external zint |
---|
71 | end function equildepth |
---|
72 | end interface |
---|
73 | |
---|
74 | interface |
---|
75 | subroutine depths_avmeth(typeT, nz, z, rhosatav, rhosatav0, rlow, avrho1, & |
---|
76 | & porefill, typeF, zdepthF, B, ypp, typeG, zdepthG) |
---|
77 | use miscparameters, only : icedensity |
---|
78 | implicit none |
---|
79 | integer, intent(IN) :: nz, typeT |
---|
80 | real(8), intent(IN), dimension(nz) :: z, rhosatav, porefill |
---|
81 | real(8), intent(IN) :: rhosatav0, rlow, avrho1 |
---|
82 | integer, intent(OUT) :: typeF |
---|
83 | real(8), intent(INOUT) :: zdepthF |
---|
84 | real(8), intent(IN) :: B |
---|
85 | real(8), intent(OUT) :: ypp(nz), zdepthG |
---|
86 | integer, intent(INOUT) :: typeG |
---|
87 | real(8), external :: zint |
---|
88 | end subroutine depths_avmeth |
---|
89 | end interface |
---|
90 | |
---|
91 | interface |
---|
92 | pure function constriction(porefill) |
---|
93 | implicit none |
---|
94 | real(8), intent(IN) :: porefill |
---|
95 | real(8) constriction |
---|
96 | end function constriction |
---|
97 | end interface |
---|
98 | |
---|
99 | interface |
---|
100 | pure subroutine icechanges(nz,z,typeF,avdrho,avdrhoP,ypp, & |
---|
101 | & Diff,porosity,icefrac,bigstep,zdepthT,porefill,typeG) |
---|
102 | implicit none |
---|
103 | integer, intent(IN) :: nz, typeF, typeG |
---|
104 | real(8), intent(IN) :: z(nz), ypp(nz), avdrho, avdrhoP |
---|
105 | real(8), intent(IN) :: Diff, porosity, icefrac, bigstep |
---|
106 | real(8), intent(INOUT) :: zdepthT, porefill(nz) |
---|
107 | end subroutine icechanges |
---|
108 | end interface |
---|
109 | |
---|
110 | !end of fast_subs_univ |
---|
111 | ! Other |
---|
112 | interface |
---|
113 | subroutine dyn_ss_ice_m(ssi_depth_in,T1,T_in,nsoil,thIn,p0,pfrost,porefill_in,porefill,ssi_depth) |
---|
114 | implicit none |
---|
115 | integer, intent(IN) :: nsoil |
---|
116 | real(8), intent(IN) :: thIn,ssi_depth_in,T1 |
---|
117 | real(8), intent(IN) :: p0(1), pfrost(1) |
---|
118 | real(8), intent(IN) :: T_in(nsoil) |
---|
119 | real(8), intent(INOUT) :: porefill(nsoil,1) |
---|
120 | real(8), intent(INOUT) :: porefill_in(nsoil,1) |
---|
121 | real(8), intent(INOUT) :: ssi_depth |
---|
122 | end subroutine dyn_ss_ice_m |
---|
123 | end interface |
---|
124 | |
---|
125 | end module allinterfaces |
---|