Ignore:
Timestamp:
Jun 14, 2013 5:57:58 AM (11 years ago)
Author:
raasch
Message:

New:
---
Initial profiles can be used as reference state in the buoyancy term. New parameter
reference_state introduced. Calculation and handling of reference state in buoyancy term revised.
binary version for restart files changed from 3.9 to 3.9a (no downward compatibility!),
initial profile for rho added to hom (id=77)

Errors:


small bugfix for background communication (time_integration)

File:
1 edited

Legend:

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

    r1175 r1179  
    2020! Current revisions:
    2121! -----------------
    22 !
     22! checks and settings of buoyancy parameters and switches revised,
     23! initial profile for rho added to hom (id=77)
    2324!
    2425! Former revisions:
     
    13231324       large_scale_subsidence = .TRUE.
    13241325       CALL init_w_subsidence
    1325     END IF
    1326  
    1327              
     1326    ENDIF
    13281327
    13291328!
     
    13331332
    13341333!
    1335 !-- Ocean runs always use reference values in the buoyancy term. Therefore
    1336 !-- set the reference temperature equal to the surface temperature.
    1337     IF ( ocean  .AND.  pt_reference == 9999999.9 )  pt_reference = pt_surface
    1338 
    1339 !
    1340 !-- Reference value has to be used in buoyancy terms
    1341     IF ( pt_reference /= 9999999.9 )  use_reference = .TRUE.
     1334!-- Check and set buoyancy related parameters and switches
     1335    IF ( reference_state == 'horizontal_average' )  THEN
     1336       CONTINUE
     1337    ELSEIF ( reference_state == 'initial_profile' )  THEN
     1338       use_initial_profile_as_reference = .TRUE.
     1339    ELSEIF ( reference_state == 'single_value' )  THEN
     1340       use_single_reference_value = .TRUE.
     1341       IF ( pt_reference == 9999999.9 )  pt_reference = pt_surface
     1342       vpt_reference = pt_reference * ( 1.0 + 0.61 * q_surface )
     1343    ELSE
     1344       message_string = 'illegal value for reference_state: "' // &
     1345                        TRIM( reference_state ) // '"'
     1346       CALL message( 'check_parameters', 'PA0056', 1, 2, 0, 6, 0 )
     1347    ENDIF
     1348
     1349!
     1350!-- Ocean runs always use reference values in the buoyancy term
     1351    IF ( ocean )  THEN
     1352       reference_state = 'single_value'
     1353       use_single_reference_value = .TRUE.
     1354    ENDIF
    13421355
    13431356!
     
    24632476                dopr_unit(i)  = 'kg/m3'
    24642477                hom(:,2,64,:) = SPREAD( zu, 2, statistic_regions+1 )
     2478                IF ( data_output_pr(i)(1:1) == '#' )  THEN
     2479                   dopr_initial_index(i) = 77
     2480                   hom(:,2,77,:)         = SPREAD( zu, 2, statistic_regions+1 )
     2481                   hom(nzb,2,77,:)       = 0.0    ! because zu(nzb) is negative
     2482                   data_output_pr(i)     = data_output_pr(i)(2:)
     2483                ENDIF
    24652484             ENDIF
    24662485
Note: See TracChangeset for help on using the changeset viewer.