Skip to content
Snippets Groups Projects
Commit 6ffcf237 authored by Adam Nyberg's avatar Adam Nyberg
Browse files

Small PCISPH changes

parent 5621b194
No related branches found
No related tags found
No related merge requests found
......@@ -140,7 +140,7 @@ __global__ void updatePressures(
if (idx < numParticles) {
float deltaP = -density_errors[idx] / A;
pressure_increments[idx] += deltaP;
pressure_increments[idx] = deltaP;
}
}
......
......@@ -101,7 +101,7 @@ void updateParticles(float deltaTime)
// ------------ Iterative Pressure Correction Loop --------------------
const int maxIterations = 5;
const int maxIterations = 3;
for (int iter = 0; iter < maxIterations; ++iter) {
// Launch the boundary correction kernel
......
......@@ -12,7 +12,7 @@ const float h_BOUND_Z_MAX = 4.0f;
const float h_GAS_CONSTANT = 0.02f;
const float h_VISCOSITY = 0.04f;
const float h_PARTICLE_MASS = 0.04f;
const float h_PARTICLE_MASS = 0.01f;
const float h_REST_DENSITY = 800.0f;
const float h_PI = 3.14159265358979323846f;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment