Research Article

Performance Optimization of 3D Lattice Boltzmann Flow Solver on a GPU

Algorithm 7

Skeleton of IF-statement used in LBM kernel.
()  IF(cell_type == FLUID)
()x = a;
()  ELSE
()x = b;