source: trunk/LMDZ.TITAN/libf/phytitan/iniaerosol.F @ 1647

Last change on this file since 1647 was 1647, checked in by jvatant, 8 years ago

+ Major clean of the new LMDZ.TITAN from too-generic options and routines (water, co2, ocean, surface type ...)
+ From this revision LMDZ.TITAN begins to be really separated from LMDZ.GENERIC
+ Partial desactivation of aerosols, only the dummy case is still enabled to keep the code running ( new aerosol routines to come in followings commits )

JVO

File size: 1.3 KB
Line 
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
9c=======================================================================
10c   subject:
11c   --------
12c   Initialization related to aerosols
13c   (CO2 aerosols, dust, water, chemical species, ice...)   
14c
15c   author: Laura Kerber, S. Guerlet
16c   ------
17c       
18c=======================================================================
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
Note: See TracBrowser for help on using the repository browser.