Changeset 2232 for palm/trunk/SOURCE/user_data_output_2d.f90
- Timestamp:
- May 30, 2017 5:47:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/user_data_output_2d.f90
r2101 r2232 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! Example code added for accessing output quantities stored on surface-data 23 ! types 23 24 ! 24 25 ! Former revisions: … … 61 62 USE kinds 62 63 64 USE surface_mod 65 63 66 USE user 64 67 … … 68 71 CHARACTER (LEN=*) :: variable !< 69 72 70 INTEGER(iwp) :: av !< 71 INTEGER(iwp) :: i !< 72 INTEGER(iwp) :: j !< 73 INTEGER(iwp) :: k !< 73 INTEGER(iwp) :: av !< flag to control data output of instantaneous or time-averaged data 74 INTEGER(iwp) :: i !< grid index along x-direction 75 INTEGER(iwp) :: j !< grid index along y-direction 76 INTEGER(iwp) :: k !< grid index along z-direction 77 INTEGER(iwp) :: m !< running index surface elements 74 78 INTEGER(iwp) :: nzb_do !< lower limit of the domain (usually nzb) 75 79 INTEGER(iwp) :: nzt_do !< upper limit of the domain (usually nzt+1) … … 110 114 ! 111 115 ! grid = 'zu' 116 ! 117 !-- In case two-dimensional surface variables are outputted, the user 118 !-- has to access related surface-type. Uncomment and extend following lines 119 !-- appropriately (example output of vertical surface momentum flux of u- 120 !-- component). Please note, surface elements can be distributed over 121 !-- several data type, depending on their respective surface properties. 122 ! CASE ( 'usws_xy' ) 123 ! IF ( av == 0 ) THEN 124 ! 125 !-- Horizontal default-type surfaces 126 ! DO m = 1, surf_def_h(0)%ns 127 ! i = surf_def_h(0)%i(m) 128 ! j = surf_def_h(0)%j(m) 129 ! local_pf(i,j,1) = surf_def_h(0)%usws(m) 130 ! ENDDO 131 ! 132 !-- Horizontal natural-type surfaces 133 ! DO m = 1, surf_lsm_h%ns 134 ! i = surf_lsm_h%i(m) 135 ! j = surf_lsm_h%j(m) 136 ! local_pf(i,j,1) = surf_lsm_h%usws(m) 137 ! ENDDO 138 ! 139 !-- Horizontal urban-type surfaces 140 ! DO m = 1, surf_usm_h%ns 141 ! i = surf_usm_h%i(m) 142 ! j = surf_usm_h%j(m) 143 ! local_pf(i,j,1) = surf_usm_h%usws(m) 144 ! ENDDO 145 ! ENDIF 146 ! 147 ! grid = 'zu' 148 !-- 112 149 113 150
Note: See TracChangeset
for help on using the changeset viewer.