Allocate memory to str and wallc variable array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(controltype), | intent(in) | :: | control |
subroutine allocate_memory(control)
!< Allocate memory to str and wallc variable array
implicit none
type(controltype), intent(in) :: control
DebugCall('setup_surface')
n_wall = -1
n_wall = ((jmx)*(kmx)*(NO_SLIP_flag(1)) &
+(jmx)*(kmx)*(NO_SLIP_flag(2)) &
+(kmx)*(imx)*(NO_SLIP_flag(3)) &
+(kmx)*(imx)*(NO_SLIP_flag(4)) &
+(imx)*(jmx)*(NO_SLIP_flag(5)) &
+(imx)*(jmx)*(NO_SLIP_flag(6)) &
)
allocate(str(1:n_wall))
call alloc(wallc, 1, n_wall, 1, 3 ,&
errmsg='Error: Unable to allocate memory for wallc')
allocate(n_wall_buf(1:control%total_process))
allocate(write_flag(1:control%total_process))
end subroutine allocate_memory