diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2020-03-25 15:46:47 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2020-03-25 18:08:05 +0300 |
commit | 04ab677761649312354c4257753520f5df575e81 (patch) | |
tree | 9478e136ed61f4d2970480d8bd9555b042bca15e /intern | |
parent | 035a3760afd23c3b28a845ba23f500931799e52b (diff) |
Fluid: Small fix for secondary particles
Small tweak to ensure index will not run out of bounds during secondary particle computation.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/mantaflow/intern/strings/liquid_script.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/mantaflow/intern/strings/liquid_script.h b/intern/mantaflow/intern/strings/liquid_script.h index 9321cc15466..e9222fc7d93 100644 --- a/intern/mantaflow/intern/strings/liquid_script.h +++ b/intern/mantaflow/intern/strings/liquid_script.h @@ -361,7 +361,8 @@ def liquid_step_particles_$ID$():\n\ interpolateGrid(target=phi_sp$ID$, source=phiTmp_s$ID$)\n\ interpolateGrid(target=phiOut_sp$ID$, source=phiOut_s$ID$)\n\ \n\ - setObstacleFlags(flags=flags_sp$ID$, phiObs=phiObs_sp$ID$, phiOut=None, phiIn=None) # phiIn not needed\n\ + # phiIn not needed, bwidth to 0 because we are omitting flags.initDomain()\n\ + setObstacleFlags(flags=flags_sp$ID$, phiObs=phiObs_sp$ID$, phiOut=None, phiIn=None, boundaryWidth=0)\n\ flags_sp$ID$.updateFromLevelset(levelset=phi_sp$ID$)\n\ \n\ # Actual secondary particle simulation\n\ |