Eulerian Smoke Simulation on the GPU
kernels/PoissonSolve.cl File Reference

a Poisson solver kernel. More...

Functions

__kernel void poissonSolve (__global float4 *o_pW, __read_only image3d_t _pR, __global float4 *_f, float _h)
 a Poisson solver kernel that uses the Jacobi iteration method. The Poisson equation is assumed to take the form Ax=b.

Detailed Description

a Poisson solver kernel.


Function Documentation

__kernel void poissonSolve ( __global float4 *  o_pW,
__read_only image3d_t  _pR,
__global float4 *  _f,
float  _h 
)

a Poisson solver kernel that uses the Jacobi iteration method. The Poisson equation is assumed to take the form Ax=b.

Parameters:
[in,out]o_pWp vector (Ap=f) [write buffer]
[in]_pRp vector (Ap=f) [read image]
[in]_ff vector (Ap=f) [read buffer]
[in]_hthe simulation cell size
 All Classes Files Functions Variables