LinkList OpenCL methods. (See Aqua::CalcServer::LinkList for details)
More...
|
__kernel void | iHoc (__global usize *ihoc, usize N, svec4 n_cells) |
__kernel void | iCell (__global usize *icell, const __global vec *r, const usize N, const vec r_min, const float support, const float h, const svec4 n_cells) |
__kernel void | linkList (const __global usize *icell, __global usize *ihoc, const usize N) |
LinkList OpenCL methods. (See Aqua::CalcServer::LinkList for details)
- Note
- The header CalcServer/LinkList.hcl.in is automatically appended.
◆ iCell()
Compute the cell where each particle is allocated.
- Parameters
-
icell | Cell where each particle is allocated. |
r | Position \( \mathbf{r} \). |
N | Number of particles. |
r_min | Minimum of r. |
support | Kernel support as a factor of h. |
h | Kernel characteristic length. |
n_cells | Number of cells at each direction, and the total number of allocated cells. |
◆ iHoc()
__kernel void iHoc |
( |
__global usize * | ihoc, |
|
|
usize | N, |
|
|
svec4 | n_cells ) |
Set all the cells as empty (i.e. the head of chain of the cell is a particle that does not exist).
- Parameters
-
ihoc | Head of chain of each cell. |
N | Number of particles. |
n_cells | Number of cells at each direction, and the total number of allocated cells. |
◆ linkList()
__kernel void linkList |
( |
const __global usize * | icell, |
|
|
__global usize * | ihoc, |
|
|
const usize | N ) |
Compute the linklist after the sort of the icell array.
- Parameters
-
icell | Cell where each particle is allocated. |
ihoc | Head of chain of each cell. |
N | Number of particles. |