Changeset 2269 for palm/trunk/SOURCE/surface_mod.f90
- Timestamp:
- Jun 9, 2017 11:57:32 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/surface_mod.f90
r2256 r2269 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Formatting and description adjustments 28 ! 29 ! 2256 2017-06-07 13:58:08Z suehring 27 30 ! Enable heating at downward-facing surfaces 28 31 ! … … 33 36 ! Description: 34 37 ! ------------ 35 !> Surface module containsdefines derived data structures to treat surface-38 !> Surface module defines derived data structures to treat surface- 36 39 !> bounded grid cells. Three different types of surfaces are defined: 37 !> default surfaces, natural surfaces, and urban surfaces. Moreover, the module38 !> encompasses the initialization of near-surface grid cells, and handles reading39 !> and writing restart data.40 !> default surfaces, natural surfaces, and urban surfaces. The module 41 !> encompasses the allocation and initialization of surface arrays, and handles 42 !> reading and writing restart data. 40 43 !> In addition, a further derived data structure is defined, in order to set 41 !> boundary conditions at surfaces. 44 !> boundary conditions at surfaces. 42 45 !------------------------------------------------------------------------------! 43 46 MODULE surface_mod … … 1602 1605 IMPLICIT NONE 1603 1606 1604 CHARACTER(LEN=1) :: dum 1605 1606 INTEGER(iwp) :: i 1607 INTEGER(iwp) :: j 1608 INTEGER(iwp) :: l 1609 INTEGER(iwp) :: m 1610 INTEGER(iwp), DIMENSION(0:3) :: mm 1611 1612 TYPE(surf_type), DIMENSION(0:2) :: surf_h 1613 TYPE(surf_type), DIMENSION(0:3) :: surf_v 1607 CHARACTER(LEN=1) :: dum !< dummy string to create output-variable name 1608 1609 INTEGER(iwp) :: i !< running index x-direction 1610 INTEGER(iwp) :: j !< running index y-direction 1611 INTEGER(iwp) :: l !< index surface type orientation 1612 INTEGER(iwp) :: m !< running index for surface elements on individual surface array 1613 INTEGER(iwp), DIMENSION(0:3) :: mm !< running index for surface elements on gathered surface array 1614 1615 TYPE(surf_type), DIMENSION(0:2) :: surf_h !< gathered horizontal surfaces, contains all surface types 1616 TYPE(surf_type), DIMENSION(0:3) :: surf_v !< gathered vertical surfaces, contains all surface types 1614 1617 1615 1618 ! … … 2088 2091 !> respective surface types within this routine. This allows e.g. changing the 2089 2092 !> surface type after reading the restart data, which might be required in case 2090 !> of cyclic -filling a simulation.2093 !> of cyclic_fill mode. 2091 2094 !------------------------------------------------------------------------------! 2092 2095 SUBROUTINE surface_read_restart_data( ii, & … … 2135 2138 2136 2139 LOGICAL :: horizontal_surface !< flag indicating horizontal surfaces 2137 LOGICAL :: vertical_surface !< flag indicating vertical surfaces2138 2140 LOGICAL :: surf_match_def !< flag indicating that surface element is of default type 2139 2141 LOGICAL :: surf_match_lsm !< flag indicating that surface element is of natural type 2140 2142 LOGICAL :: surf_match_usm !< flag indicating that surface element is of urban type 2143 LOGICAL :: vertical_surface !< flag indicating vertical surfaces 2141 2144 2142 2145 TYPE(surf_type), DIMENSION(0:2) :: surf_h !< horizontal surface type on file
Note: See TracChangeset
for help on using the changeset viewer.