slm: OpenCL code base  0.1
Functions
writearray.cl File Reference

Functions to write to slc & slc grid arrays using atomic ops (mask-checked and not) More...

Go to the source code of this file.

Functions

static void atomic_write_sl_data (__global uint *slt, __global uint *slc, const float l_trajectory)
 Add the current streamline length (l_trajectory) to the current pixel of the slt accumulation array. More...
 
static void check_atomic_write_sl_data (const uint idx, uint *prev_idx, const bool mask_flag, __global uint *slt, __global uint *slc, const float l_trajectory)
 Extended version of atomic_write_sl_data() to include testing whether the current pixel is masked, and an assignment of the previous pixel index to the current pixel index. More...
 

Detailed Description

Functions to write to slc & slc grid arrays using atomic ops (mask-checked and not)

Author
CPS
Bug:
No known bugs

Definition in file writearray.cl.