Changeset 4507 for palm/trunk/SOURCE/init_grid.f90
- Timestamp:
- Apr 22, 2020 6:21:45 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_grid.f90
r4457 r4507 25 25 ! ----------------- 26 26 ! $Id$ 27 ! update origin_z with shifting height of orography (oro_min) 28 ! 29 ! 4457 2020-03-11 14:20:43Z raasch 27 30 ! use statement for exchange horiz added, 28 31 ! bugfix for call of exchange horiz 2d … … 936 939 937 940 USE control_parameters, & 938 ONLY: bc_lr_cyc, bc_ns_cyc, message_string,ocean_mode941 ONLY: bc_lr_cyc, bc_ns_cyc, ocean_mode 939 942 940 943 USE exchange_horiz_mod, & … … 946 949 947 950 USE netcdf_data_input_mod, & 948 ONLY: buildings_f, building_id_f, building_type_f, input_pids_static, & 951 ONLY: buildings_f, building_id_f, building_type_f, & 952 init_model, & 953 input_pids_static, & 949 954 terrain_height_f 950 955 … … 983 988 984 989 ! 985 !-- Reference lowest terrain height to zero. In case the minimum terrain height986 !-- is non-zero, all grid points of the lower vertical grid levels might be987 !-- entirely below the surface, meaning a waste of computational resources.988 !-- In order to avoid this, remove the lowest terrain height. Please note,989 !-- in case of a nested run, the global minimum from all parent and childs990 !-- need to be remove to avoid steep edges at the child-domain boundaries.990 !-- Reference lowest terrain height to zero. This ensures that first, 991 !-- non-required gird levels (those which lie entirely below the minimum 992 !-- orography) are avoided, and second, that also negative orography can be used 993 !-- within the input file. 994 !-- Please note, in case of a nested run, the global minimum from all parent and 995 !-- childs need to be remove to avoid steep edges at the child-domain boundaries. 991 996 IF ( input_pids_static ) THEN 992 997 … … 998 1003 #endif 999 1004 terrain_height_f%var = terrain_height_f%var - oro_min 1000 ! 1001 !-- Give an informative message that terrain height is referenced to zero 1002 IF ( oro_min > 0.0_wp ) THEN 1003 WRITE( message_string, * ) 'Terrain height was internally shifted '//& 1004 'downwards by ', oro_min, 'meter(s) to save ' // & 1005 'computational resources.' 1006 CALL message( 'init_grid', 'PA0505', 0, 0, 0, 6, 0 ) 1007 ENDIF 1005 ! 1006 !-- Update reference height used within output files 1007 init_model%origin_z = init_model%origin_z + oro_min 1008 1008 1009 ENDIF 1009 1010 … … 2604 2605 2605 2606 END SUBROUTINE set_topo_flags 2606 2607 2608 2609
Note: See TracChangeset
for help on using the changeset viewer.