Commit c47edda 1 parent ea91184 commit c47edda Copy full SHA for c47edda
File tree 1 file changed +3
-0
lines changed
SphWaterfall/SphWaterfall/src/simulation
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ void SphManager::computeLocalDensity(SphParticle& particle) {
168
168
for (auto & neighbour : neighbour_particles) {
169
169
if (particle == neighbour.second .first ) {
170
170
neighbours = neighbour.second .second ;
171
+ break ;
171
172
}
172
173
}
173
174
@@ -189,6 +190,7 @@ Vector3 SphManager::computeDensityAcceleration(SphParticle& particle) {
189
190
for (auto & neighbour : neighbour_particles) {
190
191
if (particle == neighbour.second .first ) {
191
192
neighbours = neighbour.second .second ;
193
+ break ;
192
194
}
193
195
}
194
196
@@ -239,6 +241,7 @@ Vector3 SphManager::computeViscosityAcceleration(SphParticle& particle) {
239
241
for (auto & neighbour : neighbour_particles) {
240
242
if (particle == neighbour.second .first ) {
241
243
neighbours = neighbour.second .second ;
244
+ break ;
242
245
}
243
246
}
244
247
You can’t perform that action at this time.
0 commit comments