Changes in src/timemanager_mpi.f90 [3b80e98:16b61a5] in flexpart.git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/timemanager_mpi.f90
r3b80e98 r16b61a5 104 104 105 105 logical :: reqv_state=.false. ! .true. if waiting for a MPI_Irecv to complete 106 integer :: j,ks,kp,l,n,itime=0,nstop,nstop1,memstat=0 !,mind106 integer :: j,ks,kp,l,n,itime=0,nstop,nstop1,memstat=0 107 107 ! integer :: ksp 108 108 integer :: ip … … 155 155 156 156 do itime=0,ideltas,lsynctime 157 157 158 158 159 ! Computation of wet deposition, OH reaction and mass transfer … … 166 167 !******************************************************************** 167 168 168 if (mp_d ev_mode) write(*,*) 'myid, itime: ',mp_pid,itime169 if (mp_dbg_mode) write(*,*) 'myid, itime: ',mp_pid,itime 169 170 170 171 if (WETDEP .and. itime .ne. 0 .and. numpart .gt. 0) then … … 330 331 call releaseparticles(itime) 331 332 endif 333 334 335 ! Check if particles should be redistributed among processes 336 !*********************************************************** 337 call mpif_calculate_part_redist(itime) 332 338 333 339 … … 548 554 ! Decide whether to write an estimate of the number of particles released, 549 555 ! or exact number (require MPI reduce operation) 550 if (mp_d ev_mode) then556 if (mp_dbg_mode) then 551 557 numpart_tot_mpi = numpart 552 558 else … … 555 561 556 562 if (mp_exact_numpart.and..not.(lmpreader.and.lmp_use_reader).and.& 557 &.not.mp_d ev_mode) then563 &.not.mp_dbg_mode) then 558 564 call MPI_Reduce(numpart, numpart_tot_mpi, 1, MPI_INTEGER, MPI_SUM, id_root, & 559 565 & mp_comm_used, mp_ierr) … … 561 567 562 568 !CGZ-lifetime: output species lifetime 563 if (lroot.or.mp_d ev_mode) then569 if (lroot.or.mp_dbg_mode) then 564 570 ! write(*,*) 'Overview species lifetime in days', & 565 571 ! real((species_lifetime(:,1)/species_lifetime(:,2))/real(3600.0*24.0)) … … 571 577 ! end if 572 578 end if 579 580 ! Write number of particles for all processes 581 if (mp_dev_mode) write(*,*) "PID, itime, numpart", mp_pid,itime,numpart 582 573 583 574 584 45 format(i13,' SECONDS SIMULATED: ',i13, ' PARTICLES: Uncertainty: ',3f7.3) … … 860 870 endif 861 871 deallocate(gridunc) 862 deallocate(xpoint1,xpoint2,ypoint1,ypoint2,zpoint1,zpoint2,xmass, checklifetime) 872 deallocate(xpoint1,xpoint2,ypoint1,ypoint2,zpoint1,zpoint2,xmass) 873 if (allocated(checklifetime)) deallocate(checklifetime) 863 874 deallocate(ireleasestart,ireleaseend,npart,kindz) 864 875 deallocate(xmasssave)
Note: See TracChangeset
for help on using the changeset viewer.