Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/elbeem')
-rw-r--r--intern/elbeem/intern/solver_util.cpp6
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] );