31 implicit none ;
private 56 real,
pointer :: ptr(:)
57 integer,
intent(in) :: i1
58 integer,
optional,
intent(in) :: i2
59 if (.not.
ASSOCIATED(ptr))
then 70 real,
pointer :: ptr(:,:)
71 integer,
intent(in) :: ni, nj
72 if (.not.
ASSOCIATED(ptr))
then 79 real,
pointer :: ptr(:,:,:)
80 integer,
intent(in) :: ni, nj, nk
81 if (.not.
ASSOCIATED(ptr))
then 82 allocate(ptr(ni,nj,nk))
88 real,
pointer :: ptr(:,:)
89 integer,
intent(in) :: is, ie, js, je
90 if (.not.
ASSOCIATED(ptr))
then 91 allocate(ptr(is:ie,js:je))
97 real,
pointer :: ptr(:,:,:)
98 integer,
intent(in) :: is, ie, js, je, nk
99 if (.not.
ASSOCIATED(ptr))
then 100 allocate(ptr(is:ie,js:je,nk))
106 real,
allocatable :: ptr(:,:)
107 integer,
intent(in) :: is, ie, js, je
108 if (.not.
ALLOCATED(ptr))
then 109 allocate(ptr(is:ie,js:je))
115 real,
allocatable :: ptr(:,:,:)
116 integer,
intent(in) :: is, ie, js, je, nk
117 if (.not.
ALLOCATED(ptr))
then 118 allocate(ptr(is:ie,js:je,nk))
subroutine safe_alloc_ptr_2d(ptr, is, ie, js, je)
subroutine safe_alloc_allocatable_3d(ptr, is, ie, js, je, nk)
subroutine safe_alloc_ptr_3d(ptr, is, ie, js, je, nk)
subroutine safe_alloc_ptr_1d(ptr, i1, i2)
subroutine safe_alloc_allocatable_2d(ptr, is, ie, js, je)
subroutine safe_alloc_ptr_3d_2arg(ptr, ni, nj, nk)
subroutine safe_alloc_ptr_2d_2arg(ptr, ni, nj)