Changeset 38b7917 in flexpart.git for src/init_domainfill_mpi.f90


Ignore:
Timestamp:
Mar 8, 2016, 9:54:38 AM (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:
9b53903
Parents:
db712a8
Message:

Parallelization of domain fill option (save/restart not implemented yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/init_domainfill_mpi.f90

    r5f9d14a r38b7917  
    163163      pp(1)=rho(ix,jy,1,1)*r_air*tt(ix,jy,1,1)
    164164      pp(nz)=rho(ix,jy,nz,1)*r_air*tt(ix,jy,nz,1)
    165       colmass(ix,jy)=(pp(1)-pp(nz))/ga*gridarea(jy)
     165      ! Each MPI process is assigned an equal share of particles
     166      colmass(ix,jy)=(pp(1)-pp(nz))/ga*gridarea(jy)/mp_partgroup_np
    166167      colmasstotal=colmasstotal+colmass(ix,jy)
     168
    167169    end do
    168170  end do
    169171
    170   write(*,*) 'Atm. mass: ',colmasstotal
     172  if (lroot) write(*,*) 'Atm. mass: ',colmasstotal
    171173
    172174
     
    415417!***************************************************************************
    416418
     419! :TODO: eso: parallelize
    417420  if (ipin.eq.1) then
    418421    open(unitboundcond,file=path(2)(1:length(2))//'boundcond.bin', &
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG