Changeset 3857 for palm/trunk/SOURCE
- Timestamp:
- Apr 3, 2019 1:00:16 PM (6 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_grid.f90
r3855 r3857 369 369 370 370 USE arrays_3d, & 371 ONLY: dd2zu, ddzu, ddzu_pres, ddzw, dzu, dzw, zu, zw371 ONLY: dd2zu, ddzu, ddzu_pres, ddzw, dzu, dzw, x, xu, y, yv, zu, zw 372 372 373 373 USE control_parameters, & … … 431 431 nysg = nys - nbgp 432 432 nyng = nyn + nbgp 433 434 ! 435 !-- Allocate grid arrays 436 ALLOCATE( x(0:nx), xu(0:nx) ) 437 DO i = 0, nx 438 xu(i) = i * dx 439 x(i) = i * dx + 0.5_wp * dx 440 ENDDO 441 442 ALLOCATE( y(0:ny), yv(0:ny) ) 443 DO j = 0, ny 444 yv(j) = j * dy 445 y(j) = j * dy + 0.5_wp * dy 446 ENDDO 433 447 434 448 ! -
palm/trunk/SOURCE/modules.f90
r3747 r3857 801 801 REAL(wp), DIMENSION(:), ALLOCATABLE :: v_stokes_zw !< v-component of Stokes drift velocity at zw levels 802 802 REAL(wp), DIMENSION(:), ALLOCATABLE :: w_subs !< subsidence/ascent velocity 803 REAL(wp), DIMENSION(:), ALLOCATABLE :: x !< horizontal grid coordinate of v-grid (in m) 804 REAL(wp), DIMENSION(:), ALLOCATABLE :: xu !< horizontal grid coordinate of u-grid (in m) 805 REAL(wp), DIMENSION(:), ALLOCATABLE :: y !< horizontal grid coordinate of u-grid (in m) 806 REAL(wp), DIMENSION(:), ALLOCATABLE :: yv !< horizontal grid coordinate of v-grid (in m) 803 807 REAL(wp), DIMENSION(:), ALLOCATABLE :: zu !< vertical grid coordinate of u-grid (in m) 804 808 REAL(wp), DIMENSION(:), ALLOCATABLE :: zw !< vertical grid coordinate of w-grid (in m)
Note: See TracChangeset
for help on using the changeset viewer.