00001 ! ---------------------------------------------------------------------- 00002 ! Allocate 1D array 00003 ! ---------------------------------------------------------------------- 00004 module make_array_1d 00005 use phys_constant, only : long 00006 implicit none 00007 contains 00008 ! - - - - - 00009 ! 1D array 00010 subroutine alloc_array1d(array,n1min,n1max) 00011 implicit none 00012 integer,Intent(IN) :: n1min, n1max 00013 integer :: status 00014 Real(long), pointer :: array(:) 00015 Allocate(array(n1min:n1max),stat=status) 00016 end subroutine alloc_array1d 00017 end module make_array_1d