Blender V2.61 - r43446
|
Go to the source code of this file.
Defines | |
#define | ADVANCE_POINTERS(p) |
#define | MAX_CALC_ARR 4 |
#define | GRID_REGION_INIT() |
#define | PERFORM_USQRMAXCHECK USQRMAXCHECK(usqr,ux,uy,uz, mMaxVlen, mMxvx,mMxvy,mMxvz); |
#define | LIST_EMPTY(x) mListEmpty.push_back( x ); |
#define | LIST_FULL(x) mListFull.push_back( x ); |
#define | FSGR_ADDPART(x) mpParticles->addFullParticle( x ); |
#define | GRID_REGION_START() |
#define | GRID_LOOP_START() |
#define | GRID_LOOPREG_END() |
#define | old__GRID_LOOP_START() |
Definition in file loop_tools.h.
#define ADVANCE_POINTERS | ( | p | ) |
#define FSGR_ADDPART | ( | x | ) | mpParticles->addFullParticle( x ); |
Definition at line 36 of file loop_tools.h.
Referenced by LbmFsgrSolver::mainLoop().
#define GRID_LOOP_START | ( | ) |
for(int k=kstart;k!=kend;k+=kdir) { \ pFlagSrc = &RFLAG(lev, istart, jstart, k, SRCS(lev)); \ pFlagDst = &RFLAG(lev, istart, jstart, k, TSET(lev)); \ ccel = RACPNT(lev, istart, jstart, k, SRCS(lev)); \ tcel = RACPNT(lev, istart, jstart, k, TSET(lev)); \ for(int j=jstart;j!=jend;++j) { \ /* for(int i=0;i<mLevel[lev].lSizex-2; ) { */ \ for(int i=istart;i!=iend; ) { \ ADVANCE_POINTERS(1); \
Definition at line 145 of file loop_tools.h.
Referenced by LbmFsgrSolver::mainLoop(), LbmFsgrSolver::preinitGrids(), and LbmFsgrSolver::standingFluidPreinit().
#define GRID_LOOPREG_END | ( | ) |
\ } /* i */ \ int i=0; \ ADVANCE_POINTERS(2*gridLoopBound); \ } /* j */ \ /* COMPRESSGRIDS!=1 */ \ /* int i=0; */ \ /* ADVANCE_POINTERS(mLevel[lev].lSizex*2); */ \ } /* all cell loop k,j,i */ \ if(doReduce) { } /* dummy remove warning */ \ }
Definition at line 160 of file loop_tools.h.
Referenced by LbmFsgrSolver::mainLoop(), LbmFsgrSolver::preinitGrids(), and LbmFsgrSolver::standingFluidPreinit().
#define GRID_REGION_INIT | ( | ) |
const int istart = -1+gridLoopBound; \ const int iend = mLevel[mMaxRefine].lSizex-1-gridLoopBound; \ LbmFloat calcCurrentMass=0; \ LbmFloat calcCurrentVolume=0; \ int calcCellsFilled=0; \ int calcCellsEmptied=0; \ int calcNumUsedCells=0; \
Definition at line 17 of file loop_tools.h.
Referenced by LbmFsgrSolver::mainLoop(), LbmFsgrSolver::preinitGrids(), and LbmFsgrSolver::standingFluidPreinit().
#define GRID_REGION_START | ( | ) |
{ /* main_region */ \ int kstart=getForZMinBnd(), kend=getForZMaxBnd(mMaxRefine); \ if(gridLoopBound>0){ kstart=getForZMin1(), kend=getForZMax1(mMaxRefine); } \ int kdir = 1; \ int jstart = gridLoopBound; \ int jend = mLevel[mMaxRefine].lSizey-gridLoopBound; \ const int id=0; \ LbmFloat *ccel = NULL, *tcel = NULL; \ CellFlagType *pFlagSrc=NULL, *pFlagDst=NULL; \ if(mLevel[mMaxRefine].setCurr==1) { \ kdir = -1; \ int temp = kend; \ kend = kstart-1; \ kstart = temp-1; \ temp = id; /* dummy remove warning */ \ } \
Definition at line 39 of file loop_tools.h.
Referenced by LbmFsgrSolver::mainLoop(), LbmFsgrSolver::preinitGrids(), and LbmFsgrSolver::standingFluidPreinit().
#define LIST_EMPTY | ( | x | ) | mListEmpty.push_back( x ); |
Definition at line 34 of file loop_tools.h.
Referenced by LbmFsgrSolver::mainLoop().
#define LIST_FULL | ( | x | ) | mListFull.push_back( x ); |
Definition at line 35 of file loop_tools.h.
Referenced by LbmFsgrSolver::mainLoop().
#define MAX_CALC_ARR 4 |
Definition at line 13 of file loop_tools.h.
#define old__GRID_LOOP_START | ( | ) |
for(int k=kstart;k<kend;++k) { \ for(int j=1;j<mLevel[lev].lSizey-1;++j) { \ for(int i=0;i<mLevel[lev].lSizex-2; ) {
Definition at line 180 of file loop_tools.h.
#define PERFORM_USQRMAXCHECK USQRMAXCHECK(usqr,ux,uy,uz, mMaxVlen, mMxvx,mMxvy,mMxvz); |
Definition at line 33 of file loop_tools.h.
Referenced by LbmFsgrSolver::mainLoop().