Changeset 256 for palm/trunk/SOURCE
- Timestamp:
- Mar 8, 2009 8:56:27 AM (16 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/CURRENT_MODIFICATIONS
r254 r256 26 26 First constant in array den also defined as type double. (eqn_state_seawater) 27 27 28 advec_particles, advec_s_bc, buoyancy, calc_spectra, check_for_restart, check_open, coriolis, cpu_log, data_output_2d, data_output_3d, data_output_dvrp, data_output_profiles, data_output_spectra, eqn_state_seawater, fft_xy, flow_statistics, header, init_1d_model, init_3d_model, init_dvrp, init_grid, init_particles, init_pegrid, sort_particles 28 topography_grid_convention moved from userpar to inipar (check_parameters, 29 header, parin, read_var_list, user_check_parameters, user_header, 30 user_init_grid, user_parin, write_var_list) 31 32 advec_particles, advec_s_bc, buoyancy, calc_spectra, check_for_restart, check_open, check_parameters, coriolis, cpu_log, data_output_2d, data_output_3d, data_output_dvrp, data_output_profiles, data_output_spectra, eqn_state_seawater, fft_xy, flow_statistics, header, init_1d_model, init_3d_model, init_dvrp, init_grid, init_particles, init_pegrid, parin, read_var_list, sort_particles, user_check_parameters, user_header, user_init_grid, user_parin, write_var_list 29 33 30 34 -
palm/trunk/SOURCE/check_parameters.f90
r241 r256 6 6 ! Bugfix: pressure included for profile output 7 7 ! Check pressure gradient conditions 8 ! topography_grid_convention moved from user_check_parameters 9 ! 'single_street_canyon' 8 10 ! 9 11 ! Former revisions: … … 324 326 CALL message( 'check_parameters', 'PA0014', 1, 2, 0, 6, 0 ) 325 327 ENDIF 328 ! 329 !-- In case of non-flat topography, check whether the convention how to 330 !-- define the topography grid has been set correctly, or whether the default 331 !-- is applicable. If this is not possible, abort. 332 IF ( TRIM( topography_grid_convention ) == ' ' ) THEN 333 IF ( TRIM( topography ) /= 'single_building' .AND. & 334 TRIM( topography ) /= 'single_street_canyon' .AND. & 335 TRIM( topography ) /= 'read_from_file' ) THEN 336 !-- The default value is not applicable here, because it is only valid 337 !-- for the two standard cases 'single_building' and 'read_from_file' 338 !-- defined in init_grid. 339 WRITE( message_string, * ) & 340 'The value for "topography_grid_convention" ', & 341 'is not set. Its default value is & only valid for ', & 342 '"topography" = ''single_building'', ', & 343 '''single_street_canyon'' & or ''read_from_file''.', & 344 ' & Choose ''cell_edge'' or ''cell_center''.' 345 CALL message( 'user_check_parameters', 'PA0239', 1, 2, 0, 6, 0 ) 346 ELSE 347 !-- The default value is applicable here. 348 !-- Set convention according to topography. 349 IF ( TRIM( topography ) == 'single_building' .OR. & 350 TRIM( topography ) == 'single_street_canyon' ) THEN 351 topography_grid_convention = 'cell_edge' 352 ELSEIF ( TRIM( topography ) == 'read_from_file' ) THEN 353 topography_grid_convention = 'cell_center' 354 ENDIF 355 ENDIF 356 ELSEIF ( TRIM( topography_grid_convention ) /= 'cell_edge' .AND. & 357 TRIM( topography_grid_convention ) /= 'cell_center' ) THEN 358 WRITE( message_string, * ) & 359 'The value for "topography_grid_convention" is ', & 360 'not recognized. & Choose ''cell_edge'' or ''cell_center''.' 361 CALL message( 'user_check_parameters', 'PA0240', 1, 2, 0, 6, 0 ) 362 ENDIF 363 326 364 ENDIF 327 365 -
palm/trunk/SOURCE/header.f90
r254 r256 9 9 ! canyon_wall_south, conserve_volume_flow_mode, dp_external, dp_level_b, 10 10 ! dp_smooth, dpdxy, u_bulk, v_bulk 11 ! topography_grid_convention moved from user_header 11 12 ! 12 13 ! Former revisions: … … 425 426 426 427 END SELECT 428 429 IF ( TRIM( topography ) /= 'flat' ) THEN 430 IF ( TRIM( topography_grid_convention ) == ' ' ) THEN 431 IF ( TRIM( topography ) == 'single_building' .OR. & 432 TRIM( topography ) == 'single_street_canyon' ) THEN 433 WRITE ( io, 278 ) 434 ELSEIF ( TRIM( topography ) == 'read_from_file' ) THEN 435 WRITE ( io, 279 ) 436 ENDIF 437 ELSEIF ( TRIM( topography_grid_convention ) == 'cell_edge' ) THEN 438 WRITE ( io, 278 ) 439 ELSEIF ( TRIM( topography_grid_convention ) == 'cell_center' ) THEN 440 WRITE ( io, 279 ) 441 ENDIF 442 ENDIF 427 443 428 444 IF ( plant_canopy ) THEN … … 1459 1475 ' Canyon height: ', F6.2, 'm, ch = ', I4, '.' / & 1460 1476 ' Canyon position (',A,'-walls): cxl = ', I4,', cxr = ', I4, '.') 1477 278 FORMAT (' Topography grid definition convention:'/ & 1478 ' cell edge (staggered grid points'/ & 1479 ' (u in x-direction, v in y-direction))' /) 1480 279 FORMAT (' Topography grid definition convention:'/ & 1481 ' cell center (scalar grid points)' /) 1461 1482 280 FORMAT (//' Vegetation canopy (drag) model:'/ & 1462 1483 ' ------------------------------'// & -
palm/trunk/SOURCE/parin.f90
r241 r256 7 7 ! canyon_wall_south, conserve_volume_flow_mode, dp_external, dp_level_b, 8 8 ! dp_smooth, dpdxy, u_bulk, v_bulk in inipar 9 ! topography_grid_convention moved from userpar 9 10 ! 10 11 ! Former revisions: … … 117 118 surface_waterflux, s_surface, s_surface_initial_change, & 118 119 s_vertical_gradient, s_vertical_gradient_level, timestep_scheme, & 119 topography, top_heatflux, top_momentumflux_u, top_momentumflux_v, & 120 topography, topography_grid_convention, top_heatflux, & 121 top_momentumflux_u, top_momentumflux_v, & 120 122 top_salinityflux, turbulent_inflow, ug_surface, & 121 123 ug_vertical_gradient, ug_vertical_gradient_level, u_bulk, & -
palm/trunk/SOURCE/read_var_list.f90
r241 r256 6 6 ! +canyon_height, canyon_width_x, canyon_width_y, canyon_wall_left, 7 7 ! canyon_wall_south, conserve_volume_flow_mode, dp_external, dp_level_b, 8 ! dp_smooth, dpdxy, u_bulk, v_bulk8 ! dp_smooth, dpdxy, topography_grid_convention, u_bulk, v_bulk 9 9 ! 10 10 ! Former revisions: … … 499 499 CASE ( 'topography' ) 500 500 READ ( 13 ) topography 501 CASE ( 'topography_grid_convention' ) 502 READ ( 13 ) topography_grid_convention 501 503 CASE ( 'top_heatflux' ) 502 504 READ ( 13 ) top_heatflux -
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. -
palm/trunk/SOURCE/user_header.f90
r240 r256 5 5 ! ----------------- 6 6 ! new topography case 'single_street_canyon' 7 ! topography_grid_convention moved to header 7 8 ! 8 9 ! Former revisions: … … 46 47 ENDIF 47 48 48 IF ( TRIM( topography ) /= 'flat' ) THEN49 WRITE ( io, 300 )50 IF ( TRIM( topography_grid_convention ) == ' ' ) THEN51 IF ( TRIM( topography ) == 'single_building' .OR. &52 TRIM( topography ) == 'single_street_canyon' ) THEN53 WRITE ( io, 301 )54 ELSEIF ( TRIM( topography ) == 'read_from_file' ) THEN55 WRITE ( io, 302 )56 ENDIF57 ELSEIF ( TRIM( topography_grid_convention ) == 'cell_edge' ) THEN58 WRITE ( io, 301 )59 ELSEIF ( TRIM( topography_grid_convention ) == 'cell_center' ) THEN60 WRITE ( io, 302 )61 ENDIF62 ENDIF63 64 49 ! 65 50 !-- Format-descriptors … … 70 55 200 FORMAT (' Output of profiles and time series for following regions:' /) 71 56 201 FORMAT (4X,'Region ',I1,': ',A) 72 300 FORMAT (' Topography grid definition convention:'/)73 301 FORMAT (' cell edge (staggered grid points'/ &74 ' (u in x-direction, v in y-direction))' /)75 302 FORMAT (' cell center (scalar grid points)' /)76 57 77 58 -
palm/trunk/SOURCE/user_init_grid.f90
r240 r256 5 5 ! ----------------- 6 6 ! add 'single_street_canyon' as standard topography case 7 ! -topography_grid_convention 7 8 ! 8 9 ! Former revisions: … … 45 46 CASE ( 'user_defined_topography_1' ) 46 47 ! 47 !-- Here the user can define his own topography. 48 49 ! 50 !-- For each user-defined topography, the topography grid convention has 51 !-- to be explicitly set to either 'cell_edge' or 'cell_center'. 52 !-- topography_grid_convention = 'cell_edge' ! OR: 53 !-- topography_grid_convention = 'cell_center' 54 55 ! 48 !-- Here the user can define his own topography. 56 49 !-- After definition, please remove the following three lines! 57 50 PRINT*, '+++ user_init_grid: topography "', & -
palm/trunk/SOURCE/user_parin.f90
r226 r256 4 4 ! Actual revisions: 5 5 ! ----------------- 6 ! 6 ! topography_grid_convention moved to inipar 7 7 ! 8 8 ! Former revisions: … … 31 31 32 32 33 NAMELIST /userpar/ data_output_pr_user, data_output_user, region, & 34 topography_grid_convention 33 NAMELIST /userpar/ data_output_pr_user, data_output_user, region 35 34 36 35 ! -
palm/trunk/SOURCE/write_var_list.f90
r241 r256 6 6 ! +canyon_height, canyon_width_x, canyon_width_y, canyon_wall_left, 7 7 ! canyon_wall_south, conserve_volume_flow_mode, dp_external, dp_level_b, 8 ! dp_smooth, dpdxy, u_bulk, v_bulk8 ! dp_smooth, dpdxy, topography_grid_convention, u_bulk, v_bulk 9 9 ! 10 10 ! Former revisions: … … 423 423 WRITE ( 14 ) 'topography ' 424 424 WRITE ( 14 ) topography 425 WRITE ( 14 ) 'topography_grid_convention ' 426 WRITE ( 14 ) topography_grid_convention 425 427 WRITE ( 14 ) 'top_heatflux ' 426 428 WRITE ( 14 ) top_heatflux
Note: See TracChangeset
for help on using the changeset viewer.