Changeset e91311a in flexpart.git for src/timemanager.f90


Ignore:
Timestamp:
Jun 19, 2019, 3:50:38 PM (5 years ago)
Author:
Ignacio Pisso <ip@…>
Branches:
master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug
Children:
cd62b0e
Parents:
941db73 (diff), 7a8a51c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'dev' into release-10 for release with paper!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/timemanager.f90

    rc7d1052 r2eefa58  
    408408#endif
    409409            else
     410              if (linversionout.eq.1) then
     411                call concoutput_inversion(itime,outnum,gridtotalunc,wetgridtotalunc,drygridtotalunc)
     412                if (verbosity.eq.1) then
     413                  print*,'called concoutput_inversion'
     414                  call system_clock(count_clock)
     415                  write(*,*) 'system clock',count_clock - count_clock0
     416                endif
     417              else
    410418              call concoutput_surf(itime,outnum,gridtotalunc,wetgridtotalunc,drygridtotalunc)
     419              endif
    411420              if (verbosity.eq.1) then
    412421                print*,'called concoutput_surf '
     
    422431                call concoutput_nest(itime,outnum)
    423432              else
     433                if(linversionout.eq.1) then
     434                  call concoutput_inversion_nest(itime,outnum)
     435                else
    424436                call concoutput_surf_nest(itime,outnum)
     437              endif
    425438              endif
    426439            else
     
    45146445      format(i13,' Seconds simulated: ',i13, ' Particles:    Uncertainty: ',3f7.3)
    45246546      format(' Simulated ',f7.1,' hours (',i13,' s), ',i13, ' particles')
    453         if (ipout.ge.1) call partoutput(itime)    ! dump particle positions
     466        if (ipout.ge.1) then
     467          if (mod(itime,ipoutfac*loutstep).eq.0) call partoutput(itime) ! dump particle positions
     468          if (ipout.eq.3) call partoutput_average(itime) ! dump particle positions
     469        endif
    454470        loutnext=loutnext+loutstep
    455471        loutstart=loutnext-loutaver/2
     
    609625!        write (*,*) 'advance: ',prob(1),xmass1(j,1),ztra1(j)
    610626
     627  ! Calculate average position for particle dump output
     628  !****************************************************
     629
     630        if (ipout.eq.3) call partpos_average(itime,j)
     631
     632
    611633  ! Calculate the gross fluxes across layer interfaces
    612634  !***************************************************
     
    730752  if (ipout.eq.2) call partoutput(itime)     ! dump particle positions
    731753
    732   if (linit_cond.ge.1) call initial_cond_output(itime)   ! dump initial cond. field
     754  if (linit_cond.ge.1) then
     755    if(linversionout.eq.1) then
     756      call initial_cond_output_inversion(itime)   ! dump initial cond. field
     757    else
     758      call initial_cond_output(itime)   ! dump initial cond. fielf
     759    endif
     760  endif
    733761
    734762  !close(104)
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG