Changeset 8a65cb0 in flexpart.git for src/outgrid_init.f90


Ignore:
Timestamp:
Mar 2, 2015, 3:11:55 PM (9 years ago)
Author:
Espen Sollum ATMOS <espen@…>
Branches:
master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
Children:
1d207bb
Parents:
60403cd
Message:

Added code, makefile for dev branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/outgrid_init.f90

    rb4d29ce r8a65cb0  
    200200  endif
    201201
    202   !write (*,*) 'allocating: in a sec',OHREA
    203   if (OHREA.eqv..TRUE.) then
    204   !   write (*,*) 'allocating: ',maxxOH,maxyOH,maxzOH
    205     allocate(OH_field(12,0:maxxOH-1,0:maxyOH-1,maxzOH) &
    206          ,stat=stat)
    207     if (stat.ne.0) write(*,*)'ERROR: could not allocate OH array '
    208     allocate(OH_field_height(7) &
    209          ,stat=stat)
    210     if (stat.ne.0) write(*,*)'ERROR: could not allocate OH array '
    211   endif
    212202  ! gridunc,griduncn        uncertainty of outputted concentrations
    213203  allocate(gridunc(0:numxgrid-1,0:numygrid-1,numzgrid,maxspec, &
     
    222212    if (stat.ne.0) write(*,*)'ERROR: could not allocate gridunc'
    223213  endif
     214
     215! Extra field for totals at MPI root process
     216  if (lroot.and.mpi_mode.gt.0) then
     217    ! allocate(gridunc0(0:numxgrid-1,0:numygrid-1,numzgrid,maxspec, &
     218    !      maxpointspec_act,nclassunc,maxageclass),stat=stat)
     219    ! if (stat.ne.0) write(*,*)'ERROR: could not allocate gridunc0'
     220    if (ldirect.gt.0) then
     221      allocate(wetgridunc0(0:numxgrid-1,0:numygrid-1,maxspec, &
     222           maxpointspec_act,nclassunc,maxageclass),stat=stat)
     223      if (stat.ne.0) write(*,*)'ERROR: could not allocate wetgridunc0'
     224      allocate(drygridunc0(0:numxgrid-1,0:numygrid-1,maxspec, &
     225           maxpointspec_act,nclassunc,maxageclass),stat=stat)
     226      if (stat.ne.0) write(*,*)'ERROR: could not allocate drygridunc0'
     227    endif
     228! allocate a dummy to avoid compilator complaints
     229  else if (.not.lroot.and.mpi_mode.gt.0) then
     230    allocate(wetgridunc0(1,1,1,1,1,1),stat=stat)
     231    allocate(drygridunc0(1,1,1,1,1,1),stat=stat)
     232  end if
     233
    224234  !write (*,*) 'Dimensions for fields', numxgrid,numygrid, &
    225235  !     maxspec,maxpointspec_act,nclassunc,maxageclass
    226236
    227   write (*,*) 'Allocating fields for global output (x,y): ', numxgrid,numygrid
    228   write (*,*) 'Allocating fields for nested output (x,y): ', numxgridn,numygridn
     237  if (lroot) then
     238    write (*,*) 'Allocating fields for global output (x,y): ', numxgrid,numygrid
     239    write (*,*) 'Allocating fields for nested output (x,y): ', numxgridn,numygridn
     240  end if
    229241
    230242  ! allocate fields for concoutput with maximum dimension of outgrid
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG