Ignore:
Timestamp:
Oct 16, 2017 5:12:01 PM (7 years ago)
Author:
boeske
Message:

enable simulations with complex terrain

File:
1 edited

Legend:

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

    r2513 r2550  
    2525! -----------------
    2626! $Id$
     27! Added checks for complex terrain simulations
     28!
     29! 2513 2017-10-04 09:24:39Z kanani
    2730! Bugfix for some dopr(_initial)_index values and units connected to
    2831! passive-scalar output
     
    39013904    ENDIF
    39023905
     3906!
    39033907!-- Vertical nesting: check fine and coarse grid compatibility for data exchange
    39043908    IF ( vnested )  CALL vnest_check_parameters
     3909
     3910!
     3911!-- Check if topography is read from file in case of complex terrain simulations
     3912    IF ( complex_terrain  .AND.  TRIM( topography ) /= 'read_from_file' )  THEN
     3913       message_string = 'complex_terrain requires topography' //               &
     3914                        ' = ''read_from_file'''
     3915       CALL message( 'check_parameters', 'PA0472', 1, 2, 0, 6, 0 )
     3916    ENDIF
     3917
     3918!
     3919!-- Check if vertical grid stretching is switched off in case of complex
     3920!-- terrain simulations
     3921    IF ( complex_terrain  .AND.  dz_stretch_level < 100000.0_wp )  THEN
     3922       message_string = 'Vertical grid stretching is not allowed for ' //      &
     3923                        'complex_terrain = .T.'
     3924       CALL message( 'check_parameters', 'PA0473', 1, 2, 0, 6, 0 )
     3925    ENDIF
    39053926
    39063927    CALL location_message( 'finished', .TRUE. )
Note: See TracChangeset for help on using the changeset viewer.