Ignore:
Timestamp:
May 27, 2016 2:35:57 PM (8 years ago)
Author:
raasch
Message:

bugfixes for calculating run control quantities, bugfix for calculating pressure with fft-method in case of Neumann conditions both at bottom and top, steering of pres modified, ocean mode now uses initial density profile as reference in the buoyancy term

File:
1 edited

Legend:

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

    r1917 r1918  
    1919! Current revisions:
    2020! ------------------
    21 !
     21! intermediate_timestep_count is set 0 instead 1 for first call of pres,
     22! bugfix: initialization of local sum arrays are moved to the beginning of the
     23!         routine because otherwise results from pres are overwritten
    2224!
    2325! Former revisions:
     
    709711    weight_substep = 1.0_wp
    710712    weight_pres    = 1.0_wp
    711     intermediate_timestep_count = 1  ! needed when simulated_time = 0.0
     713    intermediate_timestep_count = 0  ! needed when simulated_time = 0.0
    712714       
    713715    CALL location_message( 'finished', .TRUE. )
     716
     717!
     718!-- Initialize local summation arrays for routine flow_statistics.
     719!-- This is necessary because they may not yet have been initialized when they
     720!-- are called from flow_statistics (or - depending on the chosen model run -
     721!-- are never initialized)
     722    sums_divnew_l      = 0.0_wp
     723    sums_divold_l      = 0.0_wp
     724    sums_l_l           = 0.0_wp
     725    sums_up_fraction_l = 0.0_wp
     726    sums_wsts_bc_l     = 0.0_wp
     727
     728
    714729!
    715730!-- Initialize model variables
     
    18211836       ENDDO
    18221837    ENDIF
    1823 
    1824 !
    1825 !-- Initialize local summation arrays for routine flow_statistics.
    1826 !-- This is necessary because they may not yet have been initialized when they
    1827 !-- are called from flow_statistics (or - depending on the chosen model run -
    1828 !-- are never initialized)
    1829     sums_divnew_l      = 0.0_wp
    1830     sums_divold_l      = 0.0_wp
    1831     sums_l_l           = 0.0_wp
    1832     sums_up_fraction_l = 0.0_wp
    1833     sums_wsts_bc_l     = 0.0_wp
    18341838
    18351839!
Note: See TracChangeset for help on using the changeset viewer.