Changeset 41d8574 in flexpart.git for src/timemanager.f90


Ignore:
Timestamp:
Jan 15, 2016, 12:35:58 PM (8 years ago)
Author:
Espen Sollum ATMOS <eso@…>
Branches:
master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
Children:
fdc0f03
Parents:
d8107c2
Message:

bugfix: MPI version gave wrong wet deposition when using ECMWF cloud water fields. Cloud water in ECMWF fields now uses parameter qc, or reads clwc+ciwc. Added minmass variable as limit for terminating particles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/timemanager.f90

    rf75967d r41d8574  
    607607          end do
    608608
    609           if (xmassfract.lt.0.0001) then   ! terminate all particles carrying less mass
     609          if (xmassfract.lt.minmass) then   ! terminate all particles carrying less mass
    610610            itra1(j)=-999999999
    611611            if (verbosity.gt.0) then
     
    644644  !***************************************************************
    645645   
    646           total_nan_intl=0
    647           i_nan=i_nan+1 ! added by mc to count nan during a time of maxtl (i.e. maximum tl fixed here to 20 minutes, see com_mod)
    648           sum_nan_count(i_nan)=nan_count
    649           if (i_nan > maxtl/lsynctime) i_nan=1 !lsynctime must be <= maxtl
    650           do ii_nan=1, (maxtl/lsynctime)
    651               total_nan_intl=total_nan_intl+sum_nan_count(ii_nan)
    652           end do
     646    total_nan_intl=0
     647    i_nan=i_nan+1 ! added by mc to count nan during a time of maxtl (i.e. maximum tl fixed here to 20 minutes, see com_mod)
     648    sum_nan_count(i_nan)=nan_count
     649    if (i_nan > maxtl/lsynctime) i_nan=1 !lsynctime must be <= maxtl
     650    do ii_nan=1, (maxtl/lsynctime)
     651      total_nan_intl=total_nan_intl+sum_nan_count(ii_nan)
     652    end do
    653653  ! Output to keep track of the numerical instabilities in CBL simulation and if
    654654  ! they are compromising the final result (or not)
    655           if (cblflag.eq.1) print *,j,itime,'nan_synctime',nan_count,'nan_tl',total_nan_intl 
     655    if (cblflag.eq.1) print *,j,itime,'nan_synctime',nan_count,'nan_tl',total_nan_intl 
    656656         
    657 !!------------------------------------------------------------------------------
    658 ! these lines below to test the well-mixed condition, modified by  mc, not to be
    659 ! included in final release:
    660     ! if (itime.eq.0) then
    661     ! open(551,file='/home/mc/test_cbl/out/WELLMIXEDTEST_CBL_lonlat_9_33_100_3hours_3htp_cd.DAT')
    662     ! open(552,file='/home/mc/test_cbl/out/avg_ol_h_wst_lonlat_9_33_100_3hours_3htp_cd.DAT')
    663     ! end if
    664     ! write(552,'(5F16.7)')itime*1./3600.,avg_wst/well_mixed_norm,avg_ol/well_mixed_norm,avg_h/well_mixed_norm
    665     ! do j=1,25
    666     !      !write(551,*))itime*1.,h_well/50.*j,well_mixed_vector(j)/well_mixed_norm*50.
    667     !     avg_air_dens(j)=avg_air_dens(j)/well_mixed_vector(j)
    668     !     write(551,'(5F16.7)')itime*1.,h_well/25.*j,well_mixed_vector(j)/well_mixed_norm*25.,avg_air_dens(j),0.04*j
    669     ! end do
    670 !!------------------------------------------------------------------------------
    671 
    672657  end do
    673658
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG