Ignore:
Timestamp:
Sep 12, 2018 3:02:00 PM (6 years ago)
Author:
raasch
Message:

various changes to avoid compiler warnings (mainly removal of unused variables)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/lpm_advec.f90

    r3207 r3241  
    2525! -----------------
    2626! $Id$
     27! unused variables removed
     28!
     29! 3207 2018-08-27 12:55:33Z schwenkel
    2730! Minor bugfix for sgs-velocities in case of cloud droplets
    2831!
     
    175178
    176179    USE control_parameters,                                                    &
    177         ONLY:  atmos_ocean_sign, cloud_droplets, constant_flux_layer, dt_3d,   &
    178                dt_3d_reached_l, dz, g, kappa, topography, u_gtrans, v_gtrans
     180        ONLY:  cloud_droplets, constant_flux_layer, dt_3d, dt_3d_reached_l,    &
     181               dz, g, kappa, topography, u_gtrans, v_gtrans
    179182
    180183    USE grid_variables,                                                        &
    181         ONLY:  ddx, dx, ddy, dy
     184        ONLY:  dx, dy
    182185       
    183186    USE indices,                                                               &
     
    187190   
    188191    USE particle_attributes,                                                   &
    189         ONLY:  block_offset, c_0, dt_min_part, grid_particles,                 &
    190                iran_part, log_z_z0, number_of_particles, number_of_sublayers,  &
    191                particles, particle_groups, offset_ocean_nzt, sgs_wf_part,      &
     192        ONLY:  block_offset, c_0, dt_min_part, grid_particles, iran_part,      &
     193               log_z_z0, number_of_particles, number_of_sublayers,             &
     194               particles, particle_groups, sgs_wf_part,                        &
    192195               use_sgs_for_particles, vertical_particle_advection, z0_av_global
    193196       
     
    202205    LOGICAL ::  subbox_at_wall !< flag to see if the current subgridbox is adjacent to a wall
    203206
    204     INTEGER(iwp) ::  agp                         !< loop variable
    205     INTEGER(iwp) ::  gp_outside_of_building(1:8) !< number of grid points used for particle interpolation in case of topography
    206207    INTEGER(iwp) ::  i                           !< index variable along x
    207208    INTEGER(iwp) ::  ip                          !< index variable along x
     
    214215    INTEGER(iwp) ::  n                           !< loop variable over all particles in a grid box
    215216    INTEGER(iwp) ::  nb                          !< block number particles are sorted in
    216     INTEGER(iwp) ::  num_gp                      !< number of adjacent grid points inside topography
    217217    INTEGER(iwp) ::  surf_start                  !< Index on surface data-type for current grid box
    218218
     
    223223    REAL(wp) ::  bb                 !< dummy argument for horizontal particle interpolation
    224224    REAL(wp) ::  cc                 !< dummy argument for horizontal particle interpolation
    225     REAL(wp) ::  d_sum              !< dummy argument for horizontal particle interpolation in case of topography
    226225    REAL(wp) ::  d_z_p_z0           !< inverse of interpolation length for logarithmic interpolation
    227226    REAL(wp) ::  dd                 !< dummy argument for horizontal particle interpolation
     
    246245    REAL(wp) ::  gg                 !< dummy argument for horizontal particle interpolation
    247246    REAL(wp) ::  height_p           !< dummy argument for logarithmic interpolation
    248     REAL(wp) ::  location(1:30,1:3) !< wall locations
    249247    REAL(wp) ::  log_z_z0_int       !< logarithmus used for surface_layer interpolation
    250248    REAL(wp) ::  random_gauss       !<
     
    276274    REAL(wp), PARAMETER ::  d0_rog = 0.745_wp    !< separation diameter
    277275
    278     REAL(wp), DIMENSION(1:30) ::  d_gp_pl !< dummy argument for particle interpolation scheme in case of topography
    279     REAL(wp), DIMENSION(1:30) ::  de_dxi  !< horizontal TKE gradient along x at adjacent wall
    280     REAL(wp), DIMENSION(1:30) ::  de_dyi  !< horizontal TKE gradient along y at adjacent wall
    281     REAL(wp), DIMENSION(1:30) ::  de_dzi  !< horizontal TKE gradient along z at adjacent wall
    282     REAL(wp), DIMENSION(1:30) ::  dissi   !< dissipation at adjacent wall
    283     REAL(wp), DIMENSION(1:30) ::  ei      !< TKE at adjacent wall
    284 
    285276    REAL(wp), DIMENSION(number_of_particles) ::  term_1_2       !< flag to communicate whether a particle is near topography or not
    286277    REAL(wp), DIMENSION(number_of_particles) ::  dens_ratio     !<
     
    11511142    REAL(wp) ::  fac     !< flag to identify adjacent topography
    11521143    REAL(wp) ::  fs_n    !< weighting factor to prevent that subgrid-scale particle speed becomes too large
    1153     REAL(wp) ::  sgs_w   !< constant (1/3)
    11541144    REAL(wp) ::  rg_n    !< random number
    11551145    REAL(wp) ::  term1   !< memory term
     
    11831173!
    11841174!-- Random term
    1185     term3 = SQRT( MAX( a1, 1E-20 ) ) * ( rg_n - 1.0_wp ) * SQRT( dt_n )
     1175    term3 = SQRT( MAX( a1, 1E-20_wp ) ) * ( rg_n - 1.0_wp ) * SQRT( dt_n )
    11861176!
    11871177!-- In cese one of the adjacent grid-boxes belongs to topograhy, the previous
Note: See TracChangeset for help on using the changeset viewer.