Changeset 41d8574 in flexpart.git for src/mpi_mod.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/mpi_mod.f90

    rd6a0977 r41d8574  
    119119  logical, parameter :: mp_dbg_out = .false.
    120120  logical, parameter :: mp_time_barrier=.true.
    121   logical, parameter :: mp_measure_time=.false.
     121  logical, parameter :: mp_measure_time=.true.
    122122  logical, parameter :: mp_exact_numpart=.true.
    123123
     
    907907!**********************************************************************
    908908
    909 ! The non-reader processes need to know if clouds were read.
     909! The non-reader processes need to know if cloud water were read.
    910910! TODO: only at first step or always?
    911911    call MPI_Bcast(readclouds,1,MPI_LOGICAL,id_read,MPI_COMM_WORLD,mp_ierr)
     
    963963! cloud water/ice:
    964964    if (readclouds) then
    965       call MPI_Bcast(icloud_stats(:,:,:,li:ui),d2_size1*5,mp_pp,id_read,MPI_COMM_WORLD,mp_ierr)
    966       if (mp_ierr /= 0) goto 600
    967 
     965      ! call MPI_Bcast(icloud_stats(:,:,:,li:ui),d2s1*5,mp_pp,id_read,MPI_COMM_WORLD,mp_ierr)
     966      ! if (mp_ierr /= 0) goto 600
     967      call MPI_Bcast(clw4(:,:,li:ui),d2s1,mp_pp,id_read,MPI_COMM_WORLD,mp_ierr)
     968      if (mp_ierr /= 0) goto 600
    968969      ! call MPI_Bcast(clwc(:,:,:,li:ui),d3s1,mp_pp,id_read,MPI_COMM_WORLD,mp_ierr)
    969970      ! if (mp_ierr /= 0) goto 600
     
    13361337      if (readclouds) then
    13371338        i=i+1
    1338         call MPI_Isend(icloud_stats(:,:,:,mind),d2s1*5,mp_pp,dest,tm1,&
     1339        ! call MPI_Isend(icloud_stats(:,:,:,mind),d2s1*5,mp_pp,dest,tm1,&
     1340        !      &MPI_COMM_WORLD,reqs(i),mp_ierr)
     1341        call MPI_Isend(clw4(:,:,mind),d2s1,mp_pp,dest,tm1,&
    13391342             &MPI_COMM_WORLD,reqs(i),mp_ierr)
     1343
    13401344        if (mp_ierr /= 0) goto 600
    13411345
     
    15431547      j=j+1
    15441548
    1545       call MPI_Irecv(icloud_stats(:,:,:,mind),d2s1*5,mp_pp,id_read,MPI_ANY_TAG,&
     1549      ! call MPI_Irecv(icloud_stats(:,:,:,mind),d2s1*5,mp_pp,id_read,MPI_ANY_TAG,&
     1550      !      &MPI_COMM_WORLD,reqs(j),mp_ierr)
     1551      call MPI_Irecv(clw4(:,:,mind),d2s1*5,mp_pp,id_read,MPI_ANY_TAG,&
    15461552           &MPI_COMM_WORLD,reqs(j),mp_ierr)
    15471553      if (mp_ierr /= 0) goto 600
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG