Ignore:
Timestamp:
Jul 27, 2012, 1:32:45 AM (12 years ago)
Author:
aslmd
Message:

GENERIC: improved iniaerosol and aerosol_mod. solved bugs for ifort+parallel while keeping things OK in seq runs.

Location:
trunk/LMDZ.GENERIC/libf/phystd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/aerosol_mod.F90

    r741 r747  
    11!==================================================================
    22module aerosol_mod
     3implicit none
     4save
    35!==================================================================
    46
    5 !  aerosol indexes: these are initialized in iniaerosol.F and should be 0 if the
     7!  aerosol indexes: these are initialized to be 0 if the
    68!                 corresponding aerosol was not activated in callphys.def
    7       integer, save :: iaero_co2
    8       integer, save :: iaero_h2o
    9       integer, save :: iaero_dust
    10       integer, save :: iaero_h2so4
    11       logical, save :: noaero
     9!                 -- otherwise a value is given in iniaerosol
     10      integer :: iaero_co2 = 0
     11      integer :: iaero_h2o = 0
     12      integer :: iaero_dust = 0
     13      integer :: iaero_h2so4 = 0
     14      logical :: noaero = .false.
    1215     
    1316!==================================================================
  • trunk/LMDZ.GENERIC/libf/phystd/iniaerosol.F

    r741 r747  
    2121      integer ia
    2222
    23       ! Initialize aerosol indexes to zero:
    24       ! NB: iaero_* indexes are in module aerosol_mod
    25 
    26       iaero_co2   =0
    27       iaero_h2o   =0
    28       iaero_dust  =0
    29       iaero_h2so4 =0
    30       noaero = .false.
    31  
    3223      ia=0
    3324      if (aeroco2) then
    3425         ia=ia+1
    3526         iaero_co2=ia
    36          write(*,*) 'CO2 aerosol = ', iaero_co2
    3727      endif
     28      write(*,*) '--- CO2 aerosol = ', iaero_co2
    3829 
    3930      if (aeroh2o) then
    4031         ia=ia+1
    4132         iaero_h2o=ia
    42          write(*,*) 'H2O aerosol = ', iaero_h2o
    4333      endif
     34      write(*,*) '--- H2O aerosol = ', iaero_h2o
    4435
    4536      if (dusttau.gt.0) then
    4637         ia=ia+1
    4738         iaero_dust=ia
    48          write(*,*) 'Dust aerosol = ', iaero_dust
    4939      endif
     40      write(*,*) '--- Dust aerosol = ', iaero_dust
    5041
    5142      if (aeroh2so4) then
    5243         ia=ia+1
    5344         iaero_h2so4=ia
    54          write(*,*) 'H2SO4 aerosol = ', iaero_h2so4
    5545      endif
     46      write(*,*) '--- H2SO4 aerosol = ', iaero_h2so4
    5647     
    57       write(*,*) 'Number of aerosols= ', ia
     48      write(*,*) '=== Number of aerosols= ', ia
    5849     
    5950! For the zero aerosol case, we currently make a dummy co2 aerosol which is zero everywhere.
Note: See TracChangeset for help on using the changeset viewer.