Changeset d2a5a83 in flexpart.git


Ignore:
Timestamp:
Dec 4, 2017, 1:18:12 PM (6 years ago)
Author:
Espen Sollum ATMOS <eso@…>
Branches:
master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
Children:
01e6052
Parents:
0ecc1fe
Message:

Fixed an issue with allocation in previous commit

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/outgrid_init.f90

    r0ecc1fe rd2a5a83  
    234234  end if
    235235#endif
    236 !  if (ldirect.gt.0) then
    237   if (lroot.and.mpi_mode.gt.0) then
    238     allocate(wetgridunc0(0:numxgrid-1,0:numygrid-1,maxspec, &
    239          maxpointspec_act,nclassunc,maxageclass),stat=stat)
    240     if (stat.ne.0) write(*,*)'ERROR: could not allocate wetgridunc0'
    241     allocate(drygridunc0(0:numxgrid-1,0:numygrid-1,maxspec, &
    242          maxpointspec_act,nclassunc,maxageclass),stat=stat)
    243     if (stat.ne.0) write(*,*)'ERROR: could not allocate drygridunc0'
    244  
     236  if (ldirect.gt.0) then
     237    if (lroot.and.mpi_mode.gt.0) then
     238      allocate(wetgridunc0(0:numxgrid-1,0:numygrid-1,maxspec, &
     239           maxpointspec_act,nclassunc,maxageclass),stat=stat)
     240      if (stat.ne.0) write(*,*)'ERROR: could not allocate wetgridunc0'
     241      allocate(drygridunc0(0:numxgrid-1,0:numygrid-1,maxspec, &
     242           maxpointspec_act,nclassunc,maxageclass),stat=stat)
     243      if (stat.ne.0) write(*,*)'ERROR: could not allocate drygridunc0'
     244
    245245! allocate a dummy to avoid compilator complaints
    246   else if (.not.lroot.and.mpi_mode.gt.0) then
    247     allocate(wetgridunc0(1,1,1,1,1,1),stat=stat)
    248     allocate(drygridunc0(1,1,1,1,1,1),stat=stat)
     246    else if (.not.lroot.and.mpi_mode.gt.0) then
     247      allocate(wetgridunc0(1,1,1,1,1,1),stat=stat)
     248      allocate(drygridunc0(1,1,1,1,1,1),stat=stat)
     249    end if
    249250  end if
    250251
  • src/outgrid_init_nest.f90

    r0ecc1fe rd2a5a83  
    8383  end if
    8484#endif
    85   if (ldirect.gt.0) then
    86   if (lroot.and.mpi_mode.gt.0) then
    87     allocate(wetgriduncn0(0:numxgridn-1,0:numygridn-1,maxspec, &
    88          maxpointspec_act,nclassunc,maxageclass),stat=stat)
    89     if (stat.ne.0) write(*,*)'ERROR:could not allocate nested gridunc'
    90     allocate(drygriduncn0(0:numxgridn-1,0:numygridn-1,maxspec, &
    91          maxpointspec_act,nclassunc,maxageclass),stat=stat)
    92     if (stat.ne.0) write(*,*)'ERROR:could not allocate nested gridunc'
     85  if (ldirect.gt.0) then
     86    if (lroot.and.mpi_mode.gt.0) then
     87      allocate(wetgriduncn0(0:numxgridn-1,0:numygridn-1,maxspec, &
     88           maxpointspec_act,nclassunc,maxageclass),stat=stat)
     89      if (stat.ne.0) write(*,*)'ERROR:could not allocate nested gridunc'
     90      allocate(drygriduncn0(0:numxgridn-1,0:numygridn-1,maxspec, &
     91           maxpointspec_act,nclassunc,maxageclass),stat=stat)
     92      if (stat.ne.0) write(*,*)'ERROR:could not allocate nested gridunc'
    9393!  endif
    9494! allocate a dummy to avoid compilator complaints
    95   else if (.not.lroot.and.mpi_mode.gt.0) then
    96     allocate(wetgriduncn0(1,1,1,1,1,1),stat=stat)
    97     allocate(drygriduncn0(1,1,1,1,1,1),stat=stat)
     95    else if (.not.lroot.and.mpi_mode.gt.0) then
     96      allocate(wetgriduncn0(1,1,1,1,1,1),stat=stat)
     97      allocate(drygriduncn0(1,1,1,1,1,1),stat=stat)
     98    end if
    9899  end if
    99100
  • src/partoutput.f90

    re200b7a rd2a5a83  
    108108      p3=rddx*ddy
    109109      p4=ddx*ddy
     110
     111! eso: Temporary fix for particle exactly at north pole
     112      if (jyp >= nymax) then
     113      !  write(*,*) 'WARNING: conccalc.f90 jyp >= nymax'
     114        jyp=jyp-1
     115      end if
    110116
    111117  ! Topography
  • src/partoutput_mpi.f90

    r5f9d14a rd2a5a83  
    115115      p3=rddx*ddy
    116116      p4=ddx*ddy
     117
     118! eso: Temporary fix for particle exactly at north pole
     119      if (jyp >= nymax) then
     120      !  write(*,*) 'WARNING: conccalc.f90 jyp >= nymax'
     121        jyp=jyp-1
     122      end if
    117123
    118124  ! Topography
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG