Changeset 741 for trunk/LMDZ.GENERIC/libf/phystd
- Timestamp:
- Jul 25, 2012, 3:20:21 PM (12 years ago)
- Location:
- trunk/LMDZ.GENERIC/libf/phystd
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/aeropacity.F90
r728 r741 116 116 enddo 117 117 118 if (naerkind.ne.0) then 118 if (noaero) then 119 print*, "No active aerosols found in aeropacity" 120 else 119 121 print*, "If you would like to use aerosols, make sure any old" 120 122 print*, "start files are updated in newstart using the option" 121 123 print*, "q=0" 122 write(*,*) "A erosols found in aeropacity:"123 endif 124 125 if ( iaero_co2.ne.0) then124 write(*,*) "Active aerosols found in aeropacity:" 125 endif 126 127 if ((iaero_co2.ne.0).and.(.not.noaero)) then 126 128 print*, 'iaero_co2= ',iaero_co2 127 129 endif … … 150 152 aerosol(1:ngridmx,1:nlayermx,iaer)=0.0 151 153 ! 2. Opacity calculation 152 if (aerofixco2.or.(i_co2ice.eq.0)) then ! CO2 ice cloud prescribed 154 if (noaero) then ! aerosol set to a very low value 155 aerosol(1:ngridmx,1:nlayermx,iaer)=1.e-9 156 elseif (aerofixco2.or.(i_co2ice.eq.0)) then ! CO2 ice cloud prescribed 153 157 aerosol(1:ngridmx,1:nlayermx,iaer)=1.e-9 154 158 !aerosol(1:ngridmx,12,iaer)=4.0 ! single cloud layer option -
trunk/LMDZ.GENERIC/libf/phystd/aerosol_mod.F90
r728 r741 9 9 integer, save :: iaero_dust 10 10 integer, save :: iaero_h2so4 11 11 logical, save :: noaero 12 12 13 !================================================================== 13 14 end module aerosol_mod -
trunk/LMDZ.GENERIC/libf/phystd/iniaerosol.F
r726 r741 28 28 iaero_dust =0 29 29 iaero_h2so4 =0 30 30 noaero = .false. 31 31 32 ia=0 32 33 if (aeroco2) then 33 ia=ia+134 iaero_co2=ia35 write(*,*) 'CO2 aerosol = ', iaero_co234 ia=ia+1 35 iaero_co2=ia 36 write(*,*) 'CO2 aerosol = ', iaero_co2 36 37 endif 37 38 38 39 if (aeroh2o) then 39 ia=ia+140 iaero_h2o=ia41 write(*,*) 'H2O aerosol = ', iaero_h2o40 ia=ia+1 41 iaero_h2o=ia 42 write(*,*) 'H2O aerosol = ', iaero_h2o 42 43 endif 43 44 44 45 if (dusttau.gt.0) then 45 ia=ia+146 iaero_dust=ia47 write(*,*) 'Dust aerosol = ', iaero_dust46 ia=ia+1 47 iaero_dust=ia 48 write(*,*) 'Dust aerosol = ', iaero_dust 48 49 endif 49 50 50 51 if (aeroh2so4) then 51 ia=ia+152 iaero_h2so4=ia53 write(*,*) 'H2SO4 aerosol = ', iaero_h2so452 ia=ia+1 53 iaero_h2so4=ia 54 write(*,*) 'H2SO4 aerosol = ', iaero_h2so4 54 55 endif 55 56 56 57 write(*,*) 'Number of aerosols= ', ia 57 58 58 if (ia.eq.0) then !For the zero aerosol case 59 ia = 1 59 ! For the zero aerosol case, we currently make a dummy co2 aerosol which is zero everywhere. 60 ! (See aeropacity.F90 for how this works). A better solution would be to turn off the 61 ! aerosol machinery in the no aerosol case, but this would be complicated. LK 62 63 if (ia.eq.0) then !For the zero aerosol case. 64 ia = 1 65 noaero = .true. 66 iaero_co2=ia 60 67 endif 61 68 … … 65 72 print*, 'or change options in callphys.def' 66 73 print*, 'Abort in iniaerosol.F' 67 call abort74 call abort 68 75 endif 69 76
Note: See TracChangeset
for help on using the changeset viewer.