mantaflow  0.10
A framework for fluid simulation
Classes | Macros
kernel.h File Reference
#include "general.h"

Go to the source code of this file.

Classes

struct  Manta::KernelBase
 Basic data structure for kernel data, initialized based on kernel type (e.g. single, idx, etc). More...
 

Macros

#define FOR_IJK_BND(grid, bnd)
 
#define FOR_IJK_REVERSE(grid)
 
#define FOR_IDX(grid)   for(IndexInt idx=0, total=(grid).getSizeX()*(grid).getSizeY()*(grid).getSizeZ(); idx<total; idx++)
 
#define FOR_IJK(grid)   FOR_IJK_BND(grid, 0)
 
#define FOR_PARTS(parts)   for(IndexInt idx=0, total=(parts).size(); idx<total; idx++)
 
#define FOR_IJKT_BND(grid, bnd)
 

Macro Definition Documentation

◆ FOR_IJK_BND

#define FOR_IJK_BND (   grid,
  bnd 
)
Value:
for(int k=((grid).is3D() ? bnd : 0),__kmax=((grid).is3D() ? ((grid).getSizeZ()-bnd) : 1); k<__kmax; k++) \
for(int j=bnd; j<(grid).getSizeY()-bnd; j++) \
for(int i=bnd; i<(grid).getSizeX()-bnd; i++)

◆ FOR_IJK_REVERSE

#define FOR_IJK_REVERSE (   grid)
Value:
for(int k=(grid).getSizeZ()-1; k>=0; k--) \
for(int j=(grid).getSizeY()-1; j>=0; j--) \
for(int i=(grid).getSizeX()-1; i>=0; i--)

◆ FOR_IJKT_BND

#define FOR_IJKT_BND (   grid,
  bnd 
)
Value:
for(int t=((grid).is4D() ? bnd : 0); t<((grid).is4D() ? ((grid).getSizeT()-bnd) : 1); ++t) \
for(int k=((grid).is3D() ? bnd : 0); k<((grid).is3D() ? ((grid).getSizeZ()-bnd) : 1); ++k) \
for(int j=bnd; j<(grid).getSizeY()-bnd; ++j) \
for(int i=bnd; i<(grid).getSizeX()-bnd; ++i)