diff options
author | Daniel Genrich <daniel.genrich@gmx.net> | 2008-04-18 18:12:42 +0400 |
---|---|---|
committer | Daniel Genrich <daniel.genrich@gmx.net> | 2008-04-18 18:12:42 +0400 |
commit | 2318e47ae90558e5929db9bf1166f358e67c5c69 (patch) | |
tree | 41fc603468dbcda7557ebcc2f0b331f5e0749e4f /intern/elbeem | |
parent | 60de9d9b2f748381e35bb4f73351f7293292d78a (diff) |
Fluid bugfix [#8395] [#6200]: this should solve the popping/inconsistency/flickering issue with fluids, please give feedback :)
Diffstat (limited to 'intern/elbeem')
-rw-r--r-- | intern/elbeem/intern/solver_util.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/elbeem/intern/solver_util.cpp b/intern/elbeem/intern/solver_util.cpp index a6685babe68..ef98b7f21d0 100644 --- a/intern/elbeem/intern/solver_util.cpp +++ b/intern/elbeem/intern/solver_util.cpp @@ -112,7 +112,8 @@ void LbmFsgrSolver::prepareVisualization( void ) { const CellFlagType nbflag = RFLAG_NB(lev, i,j,k, workSet,l); if(nbflag&CFInter){ intercnt++; } - if(l!=mainGravDir) continue; // only check bnd along main grav. dir + // check all directions otherwise we get bugs with splashes on obstacles + // if(l!=mainGravDir) continue; // only check bnd along main grav. dir //if((nbflag&CFBnd)&&(nbflag&CFBndNoslip)){ noslipbnd=1; } if((nbflag&CFBnd)){ noslipbnd=1; } } @@ -140,11 +141,10 @@ void LbmFsgrSolver::prepareVisualization( void ) { if(val<minval) val = minval; *mpIso->lbmGetData(i,j,ZKOFF) += minval-( val * mIsoWeight[13] ); } -#endif // SURFACE_ENH>0 - } else { // all others, unused? continue; } +#endif // SURFACE_ENH>0 *mpIso->lbmGetData( i-1 , j-1 ,ZKOFF-ZKD1) += ( val * mIsoWeight[0] ); *mpIso->lbmGetData( i , j-1 ,ZKOFF-ZKD1) += ( val * mIsoWeight[1] ); |