Changeset 1762 for palm/trunk/SOURCE/init_pegrid.f90
- Timestamp:
- Feb 25, 2016 12:31:13 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_pegrid.f90
r1683 r1762 19 19 ! Current revisions: 20 20 ! ------------------ 21 ! 21 ! Introduction of nested domain feature 22 22 ! 23 23 ! Former revisions: … … 129 129 io_blocks, io_group, maximum_grid_level, & 130 130 maximum_parallel_io_streams, message_string, & 131 mg_switch_to_pe0_level, momentum_advec, neutral, psolver, & 131 mg_switch_to_pe0_level, momentum_advec, nest_bound_l, & 132 nest_bound_n, nest_bound_r, nest_bound_s, neutral, psolver, & 132 133 outflow_l, outflow_n, outflow_r, outflow_s, recycling_width, & 133 134 scalar_advec, subdomain_size … … 147 148 USE pegrid 148 149 150 #if defined( PMC_ACTIVE ) 151 USE pmc_interface, & 152 ONLY: cpl_npex,cpl_npey 153 #endif 154 149 155 USE transpose_indices, & 150 156 ONLY: nxl_y, nxl_yd, nxl_z, nxr_y, nxr_yd, nxr_z, nyn_x, nyn_z, nys_x,& … … 206 212 CALL location_message( 'creating virtual PE grids + MPI derived data types', & 207 213 .FALSE. ) 214 #if defined( PMC_ACTIVE ) 215 ! 216 !-- In case of nested-domain runs, the processor grid is explicitly given 217 !-- by the user in the nestpar-NAMELIST 218 pdims(1) = cpl_npex 219 pdims(2) = cpl_npey 220 #else 208 221 ! 209 222 !-- Determine the processor topology or check it, if prescribed by the user … … 243 256 244 257 ENDIF 258 #endif 245 259 246 260 ! … … 1058 1072 #if defined( __parallel ) && ! defined ( __check ) 1059 1073 ! 1060 !-- Setting of flags for inflow/outflow conditions in case of non-cyclic1074 !-- Setting of flags for inflow/outflow/nesting conditions in case of non-cyclic 1061 1075 !-- horizontal boundary conditions. 1062 1076 IF ( pleft == MPI_PROC_NULL ) THEN … … 1065 1079 ELSEIF ( bc_lr == 'radiation/dirichlet' ) THEN 1066 1080 outflow_l = .TRUE. 1081 #if defined( PMC_ACTIVE ) 1082 ELSEIF ( bc_lr == 'nested' ) THEN 1083 nest_bound_l = .TRUE. 1084 #endif 1067 1085 ENDIF 1068 1086 ENDIF … … 1073 1091 ELSEIF ( bc_lr == 'radiation/dirichlet' ) THEN 1074 1092 inflow_r = .TRUE. 1093 #if defined( PMC_ACTIVE ) 1094 ELSEIF ( bc_lr == 'nested' ) THEN 1095 nest_bound_r = .TRUE. 1096 #endif 1075 1097 ENDIF 1076 1098 ENDIF … … 1081 1103 ELSEIF ( bc_ns == 'radiation/dirichlet' ) THEN 1082 1104 inflow_s = .TRUE. 1105 #if defined( PMC_ACTIVE ) 1106 ELSEIF ( bc_ns == 'nested' ) THEN 1107 nest_bound_s = .TRUE. 1108 #endif 1083 1109 ENDIF 1084 1110 ENDIF … … 1089 1115 ELSEIF ( bc_ns == 'radiation/dirichlet' ) THEN 1090 1116 outflow_n = .TRUE. 1117 #if defined( PMC_ACTIVE ) 1118 ELSEIF ( bc_ns == 'nested' ) THEN 1119 nest_bound_n = .TRUE. 1120 #endif 1091 1121 ENDIF 1092 1122 ENDIF … … 1139 1169 !-- At the inflow or outflow, u or v, respectively, have to be calculated for 1140 1170 !-- one more grid point. 1141 IF ( inflow_l .OR. outflow_l ) THEN1171 IF ( inflow_l .OR. outflow_l .OR. nest_bound_l ) THEN 1142 1172 nxlu = nxl + 1 1143 1173 ELSE 1144 1174 nxlu = nxl 1145 1175 ENDIF 1146 IF ( inflow_s .OR. outflow_s ) THEN1176 IF ( inflow_s .OR. outflow_s .OR. nest_bound_s ) THEN 1147 1177 nysv = nys + 1 1148 1178 ELSE
Note: See TracChangeset
for help on using the changeset viewer.