Allocate memory to the wall_distance variables and read the surface node file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(filetype), | intent(in) | :: | files | |||
type(extent), | intent(in) | :: | dims |
subroutine setup_wall_dist(files, dims)
!< Allocate memory to the wall_distance variables
!< and read the surface node file
implicit none
type(filetype), intent(in) :: files
type(extent), intent(in) :: dims
imx = dims%imx
jmx = dims%jmx
kmx = dims%kmx
DebugCall('setup_wall_dist')
call setup_nodefile(files)
call alloc(wall_x, 1, n_surfnodes,&
"ERROR: unale to allocate memory to 'Dist' variable " )
call alloc(wall_y, 1, n_surfnodes,&
"ERROR: unale to allocate memory to 'Dist' variable " )
call alloc(wall_z, 1, n_surfnodes,&
"ERROR: unale to allocate memory to 'Dist' variable " )
call alloc(dist, -2, imx+2, -2, jmx+2, -2, kmx+2, &
"ERROR: unale to allocate memory to 'Dist' variable " )
call read_destroy_nodefile(files)
end subroutine setup_wall_dist