Changeset 7999df47 in flexpart.git for src/init_domainfill_mpi.f90
- Timestamp:
- Mar 8, 2016, 3:28:18 PM (8 years ago)
- Branches:
- master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
- Children:
- c2162ce
- Parents:
- 9b53903
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/init_domainfill_mpi.f90
r9b53903 r7999df47 181 181 ylat=ylat0+real(jy)*dy 182 182 do ix=nx_we(1),nx_we(2) ! loop about longitudes 183 ncolumn=nint(0.999*real(npart(1) )*colmass(ix,jy)/ &183 ncolumn=nint(0.999*real(npart(1)/mp_partgroup_np)*colmass(ix,jy)/ & 184 184 colmasstotal) 185 185 if (ncolumn.eq.0) goto 30 … … 341 341 342 342 fractus=real(numcolumn)/real(nz) 343 write(*,*) 'Total number of particles at model start: ',numpart 344 write(*,*) 'Maximum number of particles per column: ',numcolumn 345 write(*,*) 'If ',fractus ,' <1, better use more particles'343 write(*,*) 'Total number of particles at model start: ',numpart*mp_partgroup_np 344 write(*,*) 'Maximum number of particles per column: ',numcolumn*mp_partgroup_np 345 write(*,*) 'If ',fractus*mp_partgroup_np,' <1, better use more particles' 346 346 fractus=sqrt(max(fractus,1.))/2. 347 347 348 348 do jy=ny_sn(1),ny_sn(2) ! loop about latitudes 349 349 do ix=nx_we(1),nx_we(2) ! loop about longitudes 350 ncolumn=nint(0.999/fractus*real(npart(1) )*colmass(ix,jy) &350 ncolumn=nint(0.999/fractus*real(npart(1)/mp_partgroup_np)*colmass(ix,jy) & 351 351 /colmasstotal) 352 352 if (ncolumn.gt.maxcolumn) stop 'maxcolumn too small'
Note: See TracChangeset
for help on using the changeset viewer.