Changes in src/timemanager_mpi.f90 [20963b1:0c8c7f2] in flexpart.git


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/timemanager_mpi.f90

    r20963b1 r0c8c7f2  
    113113  integer :: j,ks,kp,l,n,itime=0,nstop,nstop1,memstat=0
    114114! integer :: ksp
    115   integer :: ip
     115  integer :: ip,irec
    116116  integer :: loutnext,loutstart,loutend
    117117  integer :: ix,jy,ldeltat,itage,nage,idummy
     
    129129! Measure time spent in timemanager
    130130  if (mp_measure_time) call mpif_mtime('timemanager',0)
     131
    131132
    132133! First output for time 0
     
    532533                end if
    533534
    534               else  ! :TODO: check for zeroing in the netcdf module
     535              else
    535536                call concoutput_surf_nest(itime,outnum)
    536537              end if
     
    59359446      format(' Simulated ',f7.1,' hours (',i13,' s), ',i13, ' particles')
    594595        if (ipout.ge.1) then
     596          if (mp_measure_time) call mpif_mtime('iotime',0)
     597          irec=0
    595598          do ip=0, mp_partgroup_np-1
    596             if (ip.eq.mp_partid) call partoutput(itime) ! dump particle positions
     599            if (ip.eq.mp_partid) then
     600              if (mod(itime,ipoutfac*loutstep).eq.0) call partoutput(itime) ! dump particle positions
     601              if (ipout.eq.3) call partoutput_average(itime,irec) ! dump particle positions
     602            endif
     603            if (ipout.eq.3) irec=irec+npart_per_process(ip)
    597604            call mpif_mpi_barrier
    598605          end do
     606          if (mp_measure_time) call mpif_mtime('iotime',1)
    599607        end if
    600608
     
    757765        if (mp_measure_time) call mpif_mtime('advance',1)
    758766
     767  ! Calculate average position for particle dump output
     768  !****************************************************
     769
     770        if (ipout.eq.3) call partpos_average(itime,j)
     771
    759772
    760773! Calculate the gross fluxes across layer interfaces
     
    895908    do ip=0, mp_partgroup_np-1
    896909      if (ip.eq.mp_partid) then
    897         !if (mp_dbg_mode) write(*,*) 'call partoutput(itime), proc, mp_partid',ip,mp_partid
     910        if (mp_dbg_mode) write(*,*) 'call partoutput(itime), proc, mp_partid',ip,mp_partid
    898911        call partoutput(itime)    ! dump particle positions
    899912      end if
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG