Changeset 256 for palm/trunk/SOURCE/user_check_parameters.f90
- Timestamp:
- Mar 8, 2009 8:56:27 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/user_check_parameters.f90
r240 r256 4 4 ! Actual revisions: 5 5 ! ----------------- 6 ! add default topography_grid_convention for the new topography case7 ! 'single_street_canyon'8 6 ! 9 7 ! Former revisions: … … 25 23 26 24 ! 27 !-- In case of non-flat topography, check whether the convention how to28 !-- define the topography grid has been set correctly, or whether the default29 !-- is applicable. If this is not possible, abort.30 IF ( TRIM( topography ) /= 'flat' ) THEN31 IF ( TRIM( topography_grid_convention ) == ' ' ) THEN32 IF ( TRIM( topography ) /= 'single_building' .AND. &33 TRIM( topography ) /= 'single_street_canyon' .AND. &34 TRIM( topography ) /= 'read_from_file' ) THEN35 !-- The default value is not applicable here, because it is only valid36 !-- for the two standard cases 'single_building' and 'read_from_file'37 !-- defined in init_grid.38 WRITE( message_string, * ) &39 'The value for "topography_grid_convention" ', &40 'is not set. Its default value is & only valid for ', &41 '"topography" = ''single_building'', ', &42 '''single_street_canyon'' & or ''read_from_file''.', &43 ' & Choose ''cell_edge'' or ''cell_center''.'44 CALL message( 'user_check_parameters', 'UI0001', 1, 2, 0, 6, 0 )45 ELSE46 !-- The default value is applicable here.47 !-- Set convention according to topography.48 IF ( TRIM( topography ) == 'single_building' .OR. &49 TRIM( topography ) == 'single_street_canyon' ) THEN50 topography_grid_convention = 'cell_edge'51 ELSEIF ( TRIM( topography ) == 'read_from_file' ) THEN52 topography_grid_convention = 'cell_center'53 ENDIF54 ENDIF55 ELSEIF ( TRIM( topography_grid_convention ) /= 'cell_edge' .AND. &56 TRIM( topography_grid_convention ) /= 'cell_center' ) THEN57 WRITE( message_string, * ) &58 'The value for "topography_grid_convention" is ', &59 'not recognized. & Choose ''cell_edge'' or ''cell_center''.'60 CALL message( 'user_check_parameters', 'UI0002', 1, 2, 0, 6, 0 )61 ENDIF62 ENDIF63 64 !65 25 !-- Here the user may add code to check the validity of further &userpar 66 26 !-- control parameters or deduce further quantities.
Note: See TracChangeset
for help on using the changeset viewer.