Ignore:
Timestamp:
Feb 17, 2021 4:17:35 PM (3 years ago)
Author:
suehring
Message:

Bugfix in initialization of vertical surfaces with roughness and surface heat fluxes

File:
1 edited

Legend:

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

    r4848 r4877  
    2424! -----------------
    2525! $Id$
     26! Bugfix in initialization of vertical surfaces with roughness and surface heat fluxes
     27!
     28! 4848 2021-01-21 15:51:51Z gronemeier
    2629! replaced use_syn_turb_gen by syn_turb_gen
    2730!
     
    166169
    167170    USE control_parameters
     171
     172    USE exchange_horiz_mod,                                                                        &
     173        ONLY:  exchange_horiz_2d
    168174
    169175    USE grid_variables,                                                                            &
     
    207213               pids_id,                                                                            &
    208214               real_2d,                                                                            &
     215               resize_array,                                                                       &
    209216               vars_pids
    210217
     
    15081515!--       Read variable
    15091516          CALL get_variable( pids_id, 'z0', tmp_2d%var, nxl, nxr, nys, nyn )
     1517          CALL resize_array( tmp_2d%var, nys, nyn, nxl, nxr )
     1518          CALL exchange_horiz_2d( tmp_2d%var )
    15101519!
    15111520!--       Initialize roughness length. Note, z0 will be only initialized at default-type surfaces.
     
    15341543!--       Read variable
    15351544          CALL get_variable( pids_id, 'shf', tmp_2d%var, nxl, nxr, nys, nyn )
     1545          CALL resize_array( tmp_2d%var, nys, nyn, nxl, nxr )
     1546          CALL exchange_horiz_2d( tmp_2d%var )
    15361547!
    15371548!--       Initialize heat flux. Note, shf will be only initialized at default-type surfaces. At
     
    15611572!--          Read variable
    15621573             CALL get_variable( pids_id, 'qsws', tmp_2d%var, nxl, nxr, nys, nyn )
     1574             CALL resize_array( tmp_2d%var, nys, nyn, nxl, nxr )
     1575             CALL exchange_horiz_2d( tmp_2d%var )
    15631576!
    15641577!--          Initialize latent heat flux. Note, qsws will be only initialized at default-type surfaces.
     
    15901603!--          Read variable
    15911604             CALL get_variable( pids_id, 'ssws', tmp_2d%var, nxl, nxr, nys, nyn )
     1605             CALL resize_array( tmp_2d%var, nys, nyn, nxl, nxr )
     1606             CALL exchange_horiz_2d( tmp_2d%var )
    15921607!
    15931608!--          Initialize passive scalar flux. Initialize horizontal surface elements.
Note: See TracChangeset for help on using the changeset viewer.