Ignore:
Timestamp:
Nov 14, 2018 1:36:44 PM (5 years ago)
Author:
raasch
Message:

unused variables removed, missing working precision added, missing preprocessor directives added, bugfix concerning allocation of t_surf_wall_v in nopointer case, declaration statements rearranged to avoid compile time errors, mpi_abort arguments replaced to avoid compile errors

File:
1 edited

Legend:

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

    r3361 r3524  
    2525! -----------------
    2626! $Id$
     27! added missing working precision
     28!
     29! 3361 2018-10-16 20:39:37Z knoop
    2730! ocean renamed ocean_mode
    2831!
     
    804807!
    805808!--                            Determine the grid indices of the particle position
    806                                ip = tmp_particle%x * ddx
    807                                jp = tmp_particle%y * ddy
    808                                kp = tmp_particle%z / dz(1) + 1 + offset_ocean_nzt                               
     809                               ip = INT( tmp_particle%x * ddx )
     810                               jp = INT( tmp_particle%y * ddy )
     811                               kp = INT( tmp_particle%z / dz(1) + 1 + offset_ocean_nzt )
    809812                               DO WHILE( zw(kp) < tmp_particle%z )
    810813                                  kp = kp + 1
     
    11841187                IF ( particles(n)%weight_factor - FLOOR(particles(n)%weight_factor,KIND=wp) &
    11851188                     .GT. random_function( iran_part ) )  THEN
    1186                    particles(n)%weight_factor = FLOOR(particles(n)%weight_factor,KIND=wp) + 1.0
     1189                   particles(n)%weight_factor = FLOOR(particles(n)%weight_factor,KIND=wp) + 1.0_wp
    11871190                ELSE
    11881191                   particles(n)%weight_factor = FLOOR(particles(n)%weight_factor,KIND=wp)
Note: See TracChangeset for help on using the changeset viewer.