1 | SUBROUTINE iniaerosol() |
---|
2 | |
---|
3 | |
---|
4 | use radinc_h, only: naerkind |
---|
5 | use aerosol_mod |
---|
6 | use callkeys_mod, only: aeroback2lay |
---|
7 | |
---|
8 | IMPLICIT NONE |
---|
9 | c======================================================================= |
---|
10 | c subject: |
---|
11 | c -------- |
---|
12 | c Initialization related to aerosols |
---|
13 | c (CO2 aerosols, dust, water, chemical species, ice...) |
---|
14 | c |
---|
15 | c author: Laura Kerber, S. Guerlet |
---|
16 | c ------ |
---|
17 | c |
---|
18 | c======================================================================= |
---|
19 | |
---|
20 | integer ia |
---|
21 | |
---|
22 | ia=0 |
---|
23 | |
---|
24 | if (aeroback2lay) then |
---|
25 | ia=ia+1 |
---|
26 | iaero_back2lay=ia |
---|
27 | endif |
---|
28 | write(*,*) '--- Two-layer aerosol = ', iaero_back2lay |
---|
29 | |
---|
30 | write(*,*) '=== Number of aerosols= ', ia |
---|
31 | |
---|
32 | ! For the zero aerosol case, we currently make a dummy co2 aerosol which is zero everywhere. |
---|
33 | ! (See aeropacity.F90 for how this works). A better solution would be to turn off the |
---|
34 | ! aerosol machinery in the no aerosol case, but this would be complicated. LK |
---|
35 | |
---|
36 | if (ia.eq.0) then !For the zero aerosol case. |
---|
37 | noaero = .true. |
---|
38 | ia = 1 |
---|
39 | endif |
---|
40 | |
---|
41 | if (ia.ne.naerkind) then |
---|
42 | print*, 'Aerosols counted not equal to naerkind' |
---|
43 | print*, 'Compile with tag -s',ia,'to run' |
---|
44 | print*, 'or change options in callphys.def' |
---|
45 | print*, 'Abort in iniaerosol.F' |
---|
46 | call abort |
---|
47 | endif |
---|
48 | |
---|
49 | end |
---|