63 | | For the bottom and top boundaries, lateral non-cyclic boundaries and near topography walls a successive degradation from WS5 to WS3 to a 1^st^ order scheme is required. The used 1^st^ order scheme is based on a flux discretization to ensure consistency with the WS-schemes. The PW-scheme cannot be used, because its a skew symmetric discretization. |
64 | | |
| 63 | For the bottom and top boundaries, lateral non-cyclic boundaries as well as near topography walls the order of the discrertization is successively degraded from WS5 to WS3 to a 1^st^ order scheme. |
| 64 | The degradation is controlled by three-dimensional bit flags, where several bits mark the order of the advection scheme in the x-, y-, and z-direction. |
| 65 | Technically, in case of topography, advective fluxes are calculated for the first-, third-, and fifth-order discretization at each grid point, while the respective bit controls which discretization is finally used. |
| 66 | In the following, the respective flags are listed: |
| 67 | |
| 68 | ||='''Array''' =||='''Bit''' =||='''Meaning''' =|| |
| 69 | |---------------- |
| 70 | {{{#!td style="vertical-align:top" |
| 71 | wall_flags_0 |
| 72 | }}} |
| 73 | {{{#!td style="vertical-align:top" |
| 74 | 0 |
| 75 | }}} |
| 76 | {{{#!td style="vertical-align:top" |
| 77 | scalar advection in the x-direction: first order |
| 78 | }}} |
| 79 | |---------------- |
| 80 | {{{#!td style="vertical-align:top" |
| 81 | wall_flags_0 |
| 82 | }}} |
| 83 | {{{#!td style="vertical-align:top" |
| 84 | 1 |
| 85 | }}} |
| 86 | {{{#!td style="vertical-align:top" |
| 87 | scalar advection in the x-direction: third order |
| 88 | }}} |
| 89 | |---------------- |
| 90 | {{{#!td style="vertical-align:top" |
| 91 | wall_flags_0 |
| 92 | }}} |
| 93 | {{{#!td style="vertical-align:top" |
| 94 | 2 |
| 95 | }}} |
| 96 | {{{#!td style="vertical-align:top" |
| 97 | scalar advection in the x-direction: fifth order |
| 98 | }}} |
| 99 | |---------------- |
| 100 | {{{#!td style="vertical-align:top" |
| 101 | wall_flags_0 |
| 102 | }}} |
| 103 | {{{#!td style="vertical-align:top" |
| 104 | 3 |
| 105 | }}} |
| 106 | {{{#!td style="vertical-align:top" |
| 107 | scalar advection in the y-direction: first order |
| 108 | }}} |
| 109 | |---------------- |
| 110 | {{{#!td style="vertical-align:top" |
| 111 | wall_flags_0 |
| 112 | }}} |
| 113 | {{{#!td style="vertical-align:top" |
| 114 | 4 |
| 115 | }}} |
| 116 | {{{#!td style="vertical-align:top" |
| 117 | scalar advection in the y-direction: third order |
| 118 | }}} |
| 119 | |---------------- |
| 120 | {{{#!td style="vertical-align:top" |
| 121 | wall_flags_0 |
| 122 | }}} |
| 123 | {{{#!td style="vertical-align:top" |
| 124 | 5 |
| 125 | }}} |
| 126 | {{{#!td style="vertical-align:top" |
| 127 | scalar advection in the y-direction: fifth order |
| 128 | }}} |
| 129 | |---------------- |
| 130 | {{{#!td style="vertical-align:top" |
| 131 | wall_flags_0 |
| 132 | }}} |
| 133 | {{{#!td style="vertical-align:top" |
| 134 | 6 |
| 135 | }}} |
| 136 | {{{#!td style="vertical-align:top" |
| 137 | scalar advection in the z-direction: first order |
| 138 | }}} |
| 139 | |---------------- |
| 140 | {{{#!td style="vertical-align:top" |
| 141 | wall_flags_0 |
| 142 | }}} |
| 143 | {{{#!td style="vertical-align:top" |
| 144 | 7 |
| 145 | }}} |
| 146 | {{{#!td style="vertical-align:top" |
| 147 | scalar advection in the z-direction: third order |
| 148 | }}} |
| 149 | |---------------- |
| 150 | {{{#!td style="vertical-align:top" |
| 151 | wall_flags_0 |
| 152 | }}} |
| 153 | {{{#!td style="vertical-align:top" |
| 154 | 8 |
| 155 | }}} |
| 156 | {{{#!td style="vertical-align:top" |
| 157 | scalar advection in the z-direction: fifth order |
| 158 | }}} |
| 159 | |---------------- |
| 160 | {{{#!td style="vertical-align:top" |
| 161 | wall_flags_0 |
| 162 | }}} |
| 163 | {{{#!td style="vertical-align:top" |
| 164 | 9 |
| 165 | }}} |
| 166 | {{{#!td style="vertical-align:top" |
| 167 | u advection in the x-direction: first order |
| 168 | }}} |
| 169 | |---------------- |
| 170 | {{{#!td style="vertical-align:top" |
| 171 | wall_flags_0 |
| 172 | }}} |
| 173 | {{{#!td style="vertical-align:top" |
| 174 | 10 |
| 175 | }}} |
| 176 | {{{#!td style="vertical-align:top" |
| 177 | u advection in the x-direction: third order |
| 178 | }}} |
| 179 | |---------------- |
| 180 | {{{#!td style="vertical-align:top" |
| 181 | wall_flags_0 |
| 182 | }}} |
| 183 | {{{#!td style="vertical-align:top" |
| 184 | 11 |
| 185 | }}} |
| 186 | {{{#!td style="vertical-align:top" |
| 187 | u advection in the x-direction: fifth order |
| 188 | }}} |
| 189 | |---------------- |
| 190 | {{{#!td style="vertical-align:top" |
| 191 | wall_flags_0 |
| 192 | }}} |
| 193 | {{{#!td style="vertical-align:top" |
| 194 | 12 |
| 195 | }}} |
| 196 | {{{#!td style="vertical-align:top" |
| 197 | u advection in the y-direction: first order |
| 198 | }}} |
| 199 | |---------------- |
| 200 | {{{#!td style="vertical-align:top" |
| 201 | wall_flags_0 |
| 202 | }}} |
| 203 | {{{#!td style="vertical-align:top" |
| 204 | 13 |
| 205 | }}} |
| 206 | {{{#!td style="vertical-align:top" |
| 207 | u advection in the y-direction: third order |
| 208 | }}} |
| 209 | |---------------- |
| 210 | {{{#!td style="vertical-align:top" |
| 211 | wall_flags_0 |
| 212 | }}} |
| 213 | {{{#!td style="vertical-align:top" |
| 214 | 14 |
| 215 | }}} |
| 216 | {{{#!td style="vertical-align:top" |
| 217 | u advection in the y-direction: fifth order |
| 218 | }}} |
| 219 | |---------------- |
| 220 | {{{#!td style="vertical-align:top" |
| 221 | wall_flags_0 |
| 222 | }}} |
| 223 | {{{#!td style="vertical-align:top" |
| 224 | 15 |
| 225 | }}} |
| 226 | {{{#!td style="vertical-align:top" |
| 227 | u advection in the z-direction: first order |
| 228 | }}} |
| 229 | |---------------- |
| 230 | {{{#!td style="vertical-align:top" |
| 231 | wall_flags_0 |
| 232 | }}} |
| 233 | {{{#!td style="vertical-align:top" |
| 234 | 16 |
| 235 | }}} |
| 236 | {{{#!td style="vertical-align:top" |
| 237 | u advection in the z-direction: third order |
| 238 | }}} |
| 239 | |---------------- |
| 240 | {{{#!td style="vertical-align:top" |
| 241 | wall_flags_0 |
| 242 | }}} |
| 243 | {{{#!td style="vertical-align:top" |
| 244 | 17 |
| 245 | }}} |
| 246 | {{{#!td style="vertical-align:top" |
| 247 | u advection in the z-direction: fifth order |
| 248 | }}} |
| 249 | |---------------- |
| 250 | {{{#!td style="vertical-align:top" |
| 251 | wall_flags_0 |
| 252 | }}} |
| 253 | {{{#!td style="vertical-align:top" |
| 254 | 18 |
| 255 | }}} |
| 256 | {{{#!td style="vertical-align:top" |
| 257 | v advection in the x-direction: first order |
| 258 | }}} |
| 259 | |---------------- |
| 260 | {{{#!td style="vertical-align:top" |
| 261 | wall_flags_0 |
| 262 | }}} |
| 263 | {{{#!td style="vertical-align:top" |
| 264 | 19 |
| 265 | }}} |
| 266 | {{{#!td style="vertical-align:top" |
| 267 | v advection in the x-direction: third order |
| 268 | }}} |
| 269 | |---------------- |
| 270 | {{{#!td style="vertical-align:top" |
| 271 | wall_flags_0 |
| 272 | }}} |
| 273 | {{{#!td style="vertical-align:top" |
| 274 | 20 |
| 275 | }}} |
| 276 | {{{#!td style="vertical-align:top" |
| 277 | v advection in the x-direction: fifth order |
| 278 | }}} |
| 279 | |---------------- |
| 280 | {{{#!td style="vertical-align:top" |
| 281 | wall_flags_0 |
| 282 | }}} |
| 283 | {{{#!td style="vertical-align:top" |
| 284 | 21 |
| 285 | }}} |
| 286 | {{{#!td style="vertical-align:top" |
| 287 | v advection in the y-direction: first order |
| 288 | }}} |
| 289 | |---------------- |
| 290 | {{{#!td style="vertical-align:top" |
| 291 | wall_flags_0 |
| 292 | }}} |
| 293 | {{{#!td style="vertical-align:top" |
| 294 | 22 |
| 295 | }}} |
| 296 | {{{#!td style="vertical-align:top" |
| 297 | v advection in the y-direction: third order |
| 298 | }}} |
| 299 | |---------------- |
| 300 | {{{#!td style="vertical-align:top" |
| 301 | wall_flags_0 |
| 302 | }}} |
| 303 | {{{#!td style="vertical-align:top" |
| 304 | 23 |
| 305 | }}} |
| 306 | {{{#!td style="vertical-align:top" |
| 307 | v advection in the y-direction: fifth order |
| 308 | }}} |
| 309 | |---------------- |
| 310 | {{{#!td style="vertical-align:top" |
| 311 | wall_flags_0 |
| 312 | }}} |
| 313 | {{{#!td style="vertical-align:top" |
| 314 | 24 |
| 315 | }}} |
| 316 | {{{#!td style="vertical-align:top" |
| 317 | v advection in the z-direction: first order |
| 318 | }}} |
| 319 | |---------------- |
| 320 | {{{#!td style="vertical-align:top" |
| 321 | wall_flags_0 |
| 322 | }}} |
| 323 | {{{#!td style="vertical-align:top" |
| 324 | 25 |
| 325 | }}} |
| 326 | {{{#!td style="vertical-align:top" |
| 327 | v advection in the z-direction: third order |
| 328 | }}} |
| 329 | |---------------- |
| 330 | {{{#!td style="vertical-align:top" |
| 331 | wall_flags_0 |
| 332 | }}} |
| 333 | {{{#!td style="vertical-align:top" |
| 334 | 26 |
| 335 | }}} |
| 336 | {{{#!td style="vertical-align:top" |
| 337 | v advection in the z-direction: fifth order |
| 338 | }}} |
| 339 | |---------------- |
| 340 | {{{#!td style="vertical-align:top" |
| 341 | wall_flags_0 |
| 342 | }}} |
| 343 | {{{#!td style="vertical-align:top" |
| 344 | 27 |
| 345 | }}} |
| 346 | {{{#!td style="vertical-align:top" |
| 347 | w advection in the x-direction: first order |
| 348 | }}} |
| 349 | |---------------- |
| 350 | {{{#!td style="vertical-align:top" |
| 351 | wall_flags_0 |
| 352 | }}} |
| 353 | {{{#!td style="vertical-align:top" |
| 354 | 28 |
| 355 | }}} |
| 356 | {{{#!td style="vertical-align:top" |
| 357 | w advection in the x-direction: third order |
| 358 | }}} |
| 359 | |---------------- |
| 360 | {{{#!td style="vertical-align:top" |
| 361 | wall_flags_0 |
| 362 | }}} |
| 363 | {{{#!td style="vertical-align:top" |
| 364 | 29 |
| 365 | }}} |
| 366 | {{{#!td style="vertical-align:top" |
| 367 | w advection in the x-direction: fifth order |
| 368 | }}} |
| 369 | |---------------- |
| 370 | {{{#!td style="vertical-align:top" |
| 371 | wall_flags_0 |
| 372 | }}} |
| 373 | {{{#!td style="vertical-align:top" |
| 374 | 20 |
| 375 | }}} |
| 376 | {{{#!td style="vertical-align:top" |
| 377 | w advection in the y-direction: first order |
| 378 | }}} |
| 379 | |---------------- |
| 380 | {{{#!td style="vertical-align:top" |
| 381 | wall_flags_0 |
| 382 | }}} |
| 383 | {{{#!td style="vertical-align:top" |
| 384 | 31 |
| 385 | }}} |
| 386 | {{{#!td style="vertical-align:top" |
| 387 | w advection in the y-direction: third order |
| 388 | }}} |
| 389 | |---------------- |
| 390 | {{{#!td style="vertical-align:top" |
| 391 | wall_flags_00 |
| 392 | }}} |
| 393 | {{{#!td style="vertical-align:top" |
| 394 | 0 |
| 395 | }}} |
| 396 | {{{#!td style="vertical-align:top" |
| 397 | w advection in the y-direction: fifth order |
| 398 | }}} |
| 399 | |---------------- |
| 400 | {{{#!td style="vertical-align:top" |
| 401 | wall_flags_00 |
| 402 | }}} |
| 403 | {{{#!td style="vertical-align:top" |
| 404 | 1 |
| 405 | }}} |
| 406 | {{{#!td style="vertical-align:top" |
| 407 | w advection in the z-direction: first order |
| 408 | }}} |
| 409 | |---------------- |
| 410 | {{{#!td style="vertical-align:top" |
| 411 | wall_flags_00 |
| 412 | }}} |
| 413 | {{{#!td style="vertical-align:top" |
| 414 | 2 |
| 415 | }}} |
| 416 | {{{#!td style="vertical-align:top" |
| 417 | w advection in the z-direction: third order |
| 418 | }}} |
| 419 | |---------------- |
| 420 | {{{#!td style="vertical-align:top" |
| 421 | wall_flags_00 |
| 422 | }}} |
| 423 | {{{#!td style="vertical-align:top" |
| 424 | 3 |
| 425 | }}} |
| 426 | {{{#!td style="vertical-align:top" |
| 427 | w advection in the z-direction: fifth order |
| 428 | }}} |