AQUAgpusph 4.1.2
Loading...
Searching...
No Matches
Functions
UnSort.cl.in File Reference

Unsorting arrays OpenCL methods. (See Aqua::CalcServer::UnSort for details) More...

Functions

__kernel void unsort (const __global unsigned int *id, const __global T *input, __global T *output, unsigned int N)
 

Detailed Description

Unsorting arrays OpenCL methods. (See Aqua::CalcServer::UnSort for details)

Note
The header CalcServer/UnSort.hcl.in is automatically appended.

Function Documentation

◆ unsort()

__kernel void unsort ( const __global unsigned int *  id,
const __global T *  input,
__global T *  output,
unsigned int  N 
)

Unsort a desired variable.

Parameters
idOriginal id of each particle.
inputInput unsorted array
outputOutput sorted array
NNumber of elements into the variable.