Ignore:
Timestamp:
Mar 30, 2011 2:21:21 PM (13 years ago)
Author:
suehring
Message:

reformatted advec_ws.f90, reformulate constants as broken numbers, bugfix in vertical advection of vertical velocity (concerning vector optimized routine)

File:
1 edited

Legend:

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

    r710 r713  
    77! Current revisions:
    88! -----------------
    9 !
     9! ! Reformulate weight_substep and weight_pres as broken numbers.
    1010!
    1111! Former revisions:
     
    13531353    IF ( TRIM(timestep_scheme) == 'runge-kutta-3' )  THEN      ! for RK3-method
    13541354
    1355        weight_substep(1) = 0.166666666666666
    1356        weight_substep(2) = 0.3
    1357        weight_substep(3) = 0.533333333333333
    1358 
    1359        weight_pres(1)    = 0.333333333333333
    1360        weight_pres(2)    = 0.416666666666666
    1361        weight_pres(3)    = 0.25
     1355       weight_substep(1) = 1./6.
     1356       weight_substep(2) = 3./10.
     1357       weight_substep(3) = 8./15.
     1358
     1359       weight_pres(1)    = 1./3.
     1360       weight_pres(2)    = 5./12.
     1361       weight_pres(3)    = 1./4.
    13621362
    13631363    ELSEIF ( TRIM(timestep_scheme) == 'runge-kutta-2' )  THEN  ! for RK2-method
    13641364
    1365        weight_substep(1) = 0.5
    1366        weight_substep(2) = 0.5
     1365       weight_substep(1) = 1./2.
     1366       weight_substep(2) = 1./2.
    13671367         
    1368        weight_pres(1)    = 0.5
    1369        weight_pres(2)    = 0.5         
     1368       weight_pres(1)    = 1./2.
     1369       weight_pres(2)    = 1./2.       
    13701370
    13711371    ELSE                                     ! for Euler- and leapfrog-method
Note: See TracChangeset for help on using the changeset viewer.