1 | SUBROUTINE iniaerosol() |
---|
2 | |
---|
3 | |
---|
4 | use radinc_h, only: naerkind |
---|
5 | use aerosol_mod |
---|
6 | |
---|
7 | IMPLICIT NONE |
---|
8 | c======================================================================= |
---|
9 | c subject: |
---|
10 | c -------- |
---|
11 | c Initialization related to aerosols |
---|
12 | c (CO2 aerosols, dust, water, chemical species, ice...) |
---|
13 | c |
---|
14 | c author: Laura Kerber, S. Guerlet |
---|
15 | c ------ |
---|
16 | c |
---|
17 | c======================================================================= |
---|
18 | |
---|
19 | integer i, ia |
---|
20 | character(len=100) :: message |
---|
21 | character(len=10),parameter :: subname="iniaerosol" |
---|
22 | |
---|
23 | ia=0 |
---|
24 | |
---|
25 | ! if (aerovenus1) then |
---|
26 | ia=ia+1 |
---|
27 | iaero_venus1=ia |
---|
28 | ! endif |
---|
29 | write(*,*) '--- Venus cloud, mode 1 aerosol = ', iaero_venus1 |
---|
30 | |
---|
31 | ! if (aerovenus2) then |
---|
32 | ia=ia+1 |
---|
33 | iaero_venus2=ia |
---|
34 | ! endif |
---|
35 | write(*,*) '--- Venus cloud, mode 2 aerosol = ', iaero_venus2 |
---|
36 | |
---|
37 | ! if (aerovenus2p) then |
---|
38 | ia=ia+1 |
---|
39 | iaero_venus2p=ia |
---|
40 | ! endif |
---|
41 | write(*,*) '--- Venus cloud, mode 2p aerosol = ', iaero_venus2p |
---|
42 | |
---|
43 | ! if (aerovenus3) then |
---|
44 | ia=ia+1 |
---|
45 | iaero_venus3=ia |
---|
46 | ! endif |
---|
47 | write(*,*) '--- Venus cloud, mode 3 aerosol = ', iaero_venus3 |
---|
48 | |
---|
49 | ! if (aerovenusUV) then |
---|
50 | ia=ia+1 |
---|
51 | iaero_venusUV=ia |
---|
52 | ! endif |
---|
53 | write(*,*) '--- Venus cloud, UV absorber = ', iaero_venusUV |
---|
54 | |
---|
55 | write(*,*) '=== Number of aerosols= ', ia |
---|
56 | |
---|
57 | ! For the zero aerosol case, we currently make a dummy co2 aerosol which is zero everywhere. |
---|
58 | ! (See aeropacity.F90 for how this works). A better solution would be to turn off the |
---|
59 | ! aerosol machinery in the no aerosol case, but this would be complicated. LK |
---|
60 | |
---|
61 | if (ia.eq.0) then !For the zero aerosol case. |
---|
62 | ia = 1 |
---|
63 | noaero = .true. |
---|
64 | iaero_co2=ia |
---|
65 | endif |
---|
66 | |
---|
67 | if (ia.ne.naerkind) then |
---|
68 | print*, 'Aerosols counted not equal to naerkind' |
---|
69 | print*, 'Compile with tag -s',ia,'to run' |
---|
70 | print*, 'or change options in callphys.def' |
---|
71 | message="Abort in iniaerosol.F" |
---|
72 | call abort_physic(subname,message,1) |
---|
73 | endif |
---|
74 | |
---|
75 | end |
---|