Definition at line 34 of file ArrayHandlers.f90.
 
◆ extend_double()
  
  | 
        
          | subroutine arrayhandlersmodule::extendptrarray::extend_double | ( | real(dp), dimension(:), intent(inout), pointer, contiguous | array, |  
          |  |  | integer(i4b), intent(in), optional | increment |  
          |  | ) |  |  |  | private | 
 
Definition at line 350 of file ArrayHandlers.f90.
  352     real(DP), 
dimension(:), 
pointer, 
contiguous, 
intent(inout) :: array
 
  353     integer(I4B), 
optional, 
intent(in) :: increment
 
  355     character(len=100) :: ermsg
 
  356     integer(I4B) :: i, inc, lb, n, istat
 
  357     real(DP), 
dimension(:), 
pointer, 
contiguous :: temp => null()
 
  360     if (
present(increment)) 
then 
  363       if (inc < 0) 
call pstop(1, 
"increment must be nonnegative")
 
  371     if (
associated(array)) 
then 
  372       lb = lbound(array, 1)
 
  374       allocate (temp(lb:(lb + n + inc - 1)), stat=istat, errmsg=ermsg)
 
  376         call pstop(138, 
'Error in ArrayHandlersModule, '// &
 
  377                    'could not increase array size:'//ermsg)
 
  378       do i = lb, lb + n - 1
 
  384       allocate (array(inc))
 
 
 
 
◆ extend_integer()
  
  | 
        
          | subroutine arrayhandlersmodule::extendptrarray::extend_integer | ( | integer(i4b), dimension(:), intent(inout), pointer, contiguous | array, |  
          |  |  | integer(i4b), intent(in), optional | increment |  
          |  | ) |  |  |  | private | 
 
Definition at line 389 of file ArrayHandlers.f90.
  391     integer(I4B), 
dimension(:), 
pointer, 
contiguous, 
intent(inout) :: array
 
  392     integer(I4B), 
optional, 
intent(in) :: increment
 
  394     character(len=100) :: ermsg
 
  395     integer(I4B) :: i, inc, lb, n, istat
 
  396     integer(I4B), 
dimension(:), 
pointer, 
contiguous :: temp => null()
 
  399     if (
present(increment)) 
then 
  402       if (inc < 0) 
call pstop(1, 
"increment must be nonnegative")
 
  410     if (
associated(array)) 
then 
  411       lb = lbound(array, 1)
 
  413       allocate (temp(lb:(lb + n + inc - 1)), stat=istat, errmsg=ermsg)
 
  415         call pstop(138, 
'Error in ArrayHandlersModule, '// &
 
  416                    'could not increase array size:'//ermsg)
 
  417       do i = lb, lb + n - 1
 
  423       allocate (array(inc))
 
 
 
 
◆ extend_string()
  
  | 
        
          | subroutine arrayhandlersmodule::extendptrarray::extend_string | ( | character(len=*), dimension(:), pointer, contiguous | array, |  
          |  |  | integer(i4b), optional | increment |  
          |  | ) |  |  |  | private | 
 
Definition at line 428 of file ArrayHandlers.f90.
  430     character(len=*), 
dimension(:), 
pointer, 
contiguous :: array
 
  431     integer(I4B), 
optional :: increment
 
  433     integer(I4B) :: inc, i, n
 
  434     character(len=len(array)), 
dimension(:), 
pointer, 
contiguous :: temp
 
  436     if (
present(increment)) 
then 
  439       if (inc < 0) 
call pstop(1, 
"increment must be nonnegative")
 
  444     if (
associated(array)) 
then 
  447       allocate (array(n + inc))
 
  453       allocate (array(inc))
 
 
 
 
The documentation for this interface was generated from the following file: