slm: OpenCL code base  0.1
Functions
Hillslope lengths

Measure hillslope lengths. More...

Functions

__kernel void hillslope_lengths (__global const float2 *seed_point_array, __global const bool *mask_array, __global const float2 *uv_array, __global const uint *mapping_array, __global const uint *label_array, __global float *traj_length_array)
 TBD. More...
 

Detailed Description

Measure hillslope lengths.

Function Documentation

◆ hillslope_lengths()

__kernel void hillslope_lengths ( __global const float2 *  seed_point_array,
__global const bool *  mask_array,
__global const float2 *  uv_array,
__global const uint *  mapping_array,
__global const uint *  label_array,
__global float *  traj_length_array 
)

TBD.

Compiled if KERNEL_HILLSLOPE_LENGTHS is defined.

Parameters
[in]seed_point_arraylist of initial streamline point vectors, one allotted to each kernel instance
[in]mask_arraygrid pixel mask (padded), with true = masked, false = good
[in]uv_arrayflow unit velocity vector grid (padded)
[in,out]mapping_arrayflag grid recording status of each pixel (padded)
[in,out]label_arraylabel grid giving the ID of the subsegment to which this pixel belongs (padded); the MSB is set if left flank
[out]traj_length_arraylist of lengths of each trajectory; one per seed_point_array vector
Returns
void

Definition at line 37 of file lengths.cl.