Ignore:
Timestamp:
Nov 2, 2020 7:11:23 PM (4 years ago)
Author:
suehring
Message:

Enable 3D data output also with 64-bit precision

File:
1 edited

Legend:

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

    r4750 r4768  
    2727! -----------------
    2828! $Id$
     29! Enable 3D data output also with 64-bit precision
     30!
     31! 4750 2020-10-16 14:27:48Z suehring
    2932! - bugfix in openmp directive
    3033! - make t_green_h and t_green_v public (required in indoor model)
     
    24552458    LOGICAL, INTENT(OUT)           ::  found     !<
    24562459
    2457     REAL(sp), DIMENSION(nxl:nxr,nys:nyn,nzb_do:nzt_do) ::  local_pf  !< sp - it has to correspond to module data_output_3d
    2458     REAL(sp), DIMENSION(nzb:nzt+1,nys:nyn,nxl:nxr)     ::  temp_pf   !< temp array for urban surface output procedure
     2460    REAL(wp), DIMENSION(nxl:nxr,nys:nyn,nzb_do:nzt_do) ::  local_pf  !< sp - it has to correspond to module data_output_3d
     2461    REAL(wp), DIMENSION(nzb:nzt+1,nys:nyn,nxl:nxr)     ::  temp_pf   !< temp array for urban surface output procedure
    24592462
    24602463    found = .TRUE.
     
    25232526                j = surf_usm_h(l)%j(m)
    25242527                k = surf_usm_h(l)%k(m)
    2525                 temp_pf(0,j,i) = MAX( temp_pf(0,j,i), REAL( k, KIND = sp) )
     2528                temp_pf(0,j,i) = MAX( temp_pf(0,j,i), REAL( k, KIND = wp) )
    25262529             ENDDO
    25272530          ELSE
     
    25302533                j = surf_usm_v(l)%j(m)
    25312534                k = surf_usm_v(l)%k(m)
    2532                 temp_pf(0,j,i) = MAX( temp_pf(0,j,i), REAL( k, KIND = sp) + 1.0_sp )
     2535                temp_pf(0,j,i) = MAX( temp_pf(0,j,i), REAL( k, KIND = wp) + 1.0_sp )
    25332536             ENDDO
    25342537          ENDIF
Note: See TracChangeset for help on using the changeset viewer.