stable
This commit is contained in:
@@ -36,7 +36,8 @@ namespace FluidSim.Core
|
||||
{
|
||||
if (_pipeSystem == null || _boundarySystem == null) return;
|
||||
|
||||
int nSub = SubStepCount;
|
||||
int nSub = _pipeSystem.GetRequiredSubSteps((float)_dt, 0.8f);
|
||||
nSub = Math.Max(nSub, SubStepCount); // never go below fixed minimum
|
||||
float dtSub = (float)(_dt / nSub);
|
||||
|
||||
for (int sub = 0; sub < nSub; sub++)
|
||||
|
||||
Reference in New Issue
Block a user