Changeset 34f1452 in flexpart.git


Ignore:
Timestamp:
Sep 10, 2018, 10:27:33 AM (6 years ago)
Author:
pesei <petra seibert at univie ac at>
Branches:
univie
Children:
d7935de
Parents:
2870133
Message:

increase output width for time (ticket:205)

2018-09-10, Petra Seibert: increase output width for time in sec
small improvements in code layout, name big loops

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/plumetraj.f90

    r6a678e3 r34f1452  
    3232  !                                                                            *
    3333  !     24 January 2002                                                        *
     34  !                                                                            *
     35  !     2018-09-10, Petra Seibert: increase output width for time in sec       *
     36  !       small improvements in code layout, name big loops                    *
    3437  !                                                                            *
    3538  ! Variables:                                                                 *
     
    7780
    7881
    79   ! Loop about all release points
    80   !******************************
    81 
    82   do j=1,numpoint
     82  ! Loop over all release points
     83  !*****************************
     84
     85  point_loop: do j=1,numpoint
    8386    if (abs(ireleasestart(j)-itime).gt.lage(nageclass)) goto 10
    8487    topocenter=0.
     
    9396
    9497    n=0
    95     do i=1,numpart
     98    particle_loop: do i=1,numpart
    9699      if (itra1(i).ne.itime) goto 20
    97100      if (npoint(i).ne.j) goto 20
     
    125128
    126129      topo=p1*oro(ix ,jy) &
    127            + p2*oro(ixp,jy) &
    128            + p3*oro(ix ,jyp) &
    129            + p4*oro(ixp,jyp)
     130         + p2*oro(ixp,jy) &
     131         + p3*oro(ix ,jyp) &
     132         + p4*oro(ixp,jyp)
    130133      topocenter=topocenter+topo
    131134
     
    151154          indexh=memind(m)
    152155          pv1(m)=p1*pv(ix ,jy ,ind,indexh) &
    153                +p2*pv(ixp,jy ,ind,indexh) &
    154                +p3*pv(ix ,jyp,ind,indexh) &
    155                +p4*pv(ixp,jyp,ind,indexh)
     156                +p2*pv(ixp,jy ,ind,indexh) &
     157                +p3*pv(ix ,jyp,ind,indexh) &
     158                +p4*pv(ixp,jyp,ind,indexh)
    156159        end do
    157160        pvprof(ind-indz+1)=(pv1(1)*dt2+pv1(2)*dt1)*dtt
     
    173176
    174177        tr(m)=p1*tropopause(ix ,jy ,1,indexh) &
    175              + p2*tropopause(ixp,jy ,1,indexh) &
    176              + p3*tropopause(ix ,jyp,1,indexh) &
    177              + p4*tropopause(ixp,jyp,1,indexh)
     178            + p2*tropopause(ixp,jy ,1,indexh) &
     179            + p3*tropopause(ix ,jyp,1,indexh) &
     180            + p4*tropopause(ixp,jyp,1,indexh)
    178181
    179182        hm(m)=p1*hmix(ix ,jy ,1,indexh) &
    180              + p2*hmix(ixp,jy ,1,indexh) &
    181              + p3*hmix(ix ,jyp,1,indexh) &
    182              + p4*hmix(ixp,jyp,1,indexh)
     183            + p2*hmix(ixp,jy ,1,indexh) &
     184            + p3*hmix(ix ,jyp,1,indexh) &
     185            + p4*hmix(ixp,jyp,1,indexh)
    183186      end do
    184187
     
    191194      hmixcenter=hmixcenter+hmixi
    192195
    193 
    19419620    continue
    195     end do
     197    end do particle_loop
    196198
    197199
     
    234236  !******************************************
    235237
    236       write(unitouttraj,'(i5,i8,2f9.4,4f8.1,f8.2,4f8.1,3f6.1,&
    237            &5(2f8.3,f7.0,f6.1,f8.1))')&
    238            &j,itime-(ireleasestart(j)+ireleaseend(j))/2, &
     238      write (unitouttraj,901) j,itime-(ireleasestart(j)+ireleaseend(j))/2, &
    239239           xcenter,ycenter,zcenter,topocenter,hmixcenter,tropocenter, &
    240            pvcenter,rmsdist,rms,zrmsdist,zrms,hmixfract,pvfract, &
    241            tropofract, &
    242            (xclust(k),yclust(k),zclust(k),fclust(k),rmsclust(k), &
    243            k=1,ncluster)
     240           pvcenter,rmsdist,rms,zrmsdist,zrms,hmixfract,pvfract,tropofract, &
     241           (xclust(k),yclust(k),zclust(k),fclust(k),rmsclust(k), k=1,ncluster)
     242901   format(i5,i10,2f9.4,4f8.1,f8.2,4f8.1,3f6.1,5(2f8.3,f7.0,f6.1,f8.1))   
    244243    endif
    245244
    246245
    24724610  continue
    248   end do
     247  end do point_loop
    249248
    250249
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG