Go to the source code of this file.
◆ gtvarsliceauto()
      
        
          | subroutine gtvarsliceauto  | 
          ( | 
          type(gt_variable), intent(inout)  | 
          var,  | 
        
        
           | 
           | 
          type(gt_variable), intent(in), optional  | 
          compatible  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 15 of file gtvarsliceauto.f90.
References gtvarslice().
   34   type(
gt_variable), 
intent(in), 
optional:: compatible
    36   integer, 
allocatable:: start(:), count(:), stride(:)
    39   allocate(start(nd), count(nd), stride(nd))
    40   if (
present(compatible)) 
then    41     call get_slice(compatible, start, count, stride)
    43       call gtvarslice(var, i, start(i), count(i), stride(i))
    48       if (count(i) < 1) count(i) = 1
    49       call gtvarslice(var, i, start(i), count(i), stride(i))
    52   deallocate(start, count, stride)
 
subroutine gtvarslice(var, dimord, start, count, stride)