Skip to content

Commit

Permalink
hw9
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhi0467 committed May 10, 2024
1 parent e228c27 commit 4eb2231
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void SPHBase::compute_non_pressure_acceleration()
for (auto& q : p->neighbors()) {

// Prompt: use the "compute_viscosity_acceleration" function to compute the viscosity acceleration between p and q"
p -> acceleration_ += compute_viscosity_acceleration(p, q) / (ps_.density0());
p -> acceleration_ += compute_viscosity_acceleration(p, q);
}
p -> acceleration_ += gravity_;
}
Expand Down

0 comments on commit 4eb2231

Please sign in to comment.