AQUAgpusph 5.0.4
Loading...
Searching...
No Matches
planes.cl File Reference

Bounding boxes for processes. More...

Include dependency graph for planes.cl:

Functions

__kernel void local_mask (const __global int *imove, const __global vec *r, __global usize *mpi_local_mask, vec mpi_plane_r, vec mpi_plane_n, unsigned int mpi_plane_proc, usize N)
 Set the masks to let AQUAgpusph to which process each particle belongs.
__kernel void neigh_mask (const __global int *imove, const __global vec *r, __global usize *mpi_neigh_mask, vec mpi_plane_r, vec mpi_plane_n, unsigned int mpi_plane_proc, usize N)
 Set the masks to let AQUAgpusph to which process each particle is neighbour of.

Detailed Description

Bounding boxes for processes.

Function Documentation

◆ local_mask()

__kernel void local_mask ( const __global int * imove,
const __global vec * r,
__global usize * mpi_local_mask,
vec mpi_plane_r,
vec mpi_plane_n,
unsigned int mpi_plane_proc,
usize N )

Set the masks to let AQUAgpusph to which process each particle belongs.

Just fluid particles are exchanged

Parameters
imoveMoving flags
  • imove > 0 for regular fluid particles
  • imove = 0 for sensors
  • imove < 0 for boundary elements/particles
mpi_local_maskParticles that shall be handled by another process from now on
mpi_plane_rBounding plane position
mpi_plane_nOutward bounding plane normal
mpi_plane_procNeighbour process
NNumber of particles

◆ neigh_mask()

__kernel void neigh_mask ( const __global int * imove,
const __global vec * r,
__global usize * mpi_neigh_mask,
vec mpi_plane_r,
vec mpi_plane_n,
unsigned int mpi_plane_proc,
usize N )

Set the masks to let AQUAgpusph to which process each particle is neighbour of.

Just fluid particles are exchanged

Parameters
imoveMoving flags
  • imove > 0 for regular fluid particles
  • imove = 0 for sensors
  • imove < 0 for boundary elements/particles
mpi_neigh_maskParticles that shall be sent to another process so it can consider them as neighbours
mpi_plane_rBounding plane position
mpi_plane_nOutward bounding plane normal
mpi_plane_procNeighbour process
NNumber of particles