Allocate memory to str and wallc variable array
subroutine allocate_memory()
!< Allocate memory to str and wallc variable array
implicit none
call dmsg(1, 'wall_find', '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:total_process))
allocate(write_flag(1:total_process))
end subroutine allocate_memory