Changeset 07c3e71 in flexpart.git for src/readspecies.f90


Ignore:
Timestamp:
Jul 24, 2019, 12:16:51 PM (5 years ago)
Author:
Ignacio Pisso <ip@…>
Branches:
master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug
Children:
25b4532
Parents:
95a45d3
Message:

check dsigma for dry deposition velocity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/readspecies.f90

    r46f93d5 r07c3e71  
    296296      if (density(pos_spec) .gt. 0) then
    297297        write(*,'(a)') '  Dry deposition is turned         :   ON'
    298       else
     298        if (reldiff(pos_spec).gt.0) then
     299           stop 'density>0 (SPECIES is a particle) implies reldiff <=0  '
     300        endif
     301      else
     302        if (reldiff(pos_spec).le.0) then
     303           stop 'density<=0 (SPECIES is a gas) implies reldiff >0  '
     304        endif     
    299305        write(*,'(a)') '  Dry deposition is (density<0)    :   OFF'
    300306      end if
     
    344350  end if
    345351
    346   if (dsigma(i).eq.0.) dsigma(i)=1.0001   ! avoid floating exception
     352  !  if (dsigma(i).eq.0.) dsigma(i)=1.0001   ! avoid floating exception
     353  if (dsigma(i).le.1.) then !dsigma(i)=1.0001   ! avoid floating exception
     354    !write(*,*) '#### FLEXPART MODEL ERROR!                      ####'
     355    write(*,*) '#### FLEXPART MODEL WARNING                     ####'
     356    write(*,*) '#### in SPECIES_',aspecnumb, '                             ####'
     357    write(*,*) '#### from v10.4 dsigma has to be larger than 1  ####' 
     358    write(*,*) '#### to adapt older SPECIES files,              ####'
     359    write(*,*) '#### if dsigma was < 1                          ####'
     360    write(*,*) '#### use the reciprocal of the old dsigma       ####' 
     361    if (.not.debug_mode) then
     362       stop
     363    else
     364       write(*,*) 'debug mode: continue'
     365    endif
     366  endif
    347367
    348368  if ((reldiff(i).gt.0.).and.(density(i).gt.0.)) then
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG