Skip to content

Commit e746d72

Browse files
Update particle.h
1 parent 7df6f0e commit e746d72

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/struct/particle.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ struct alignas(32) Particle {
2020
real x, y, z;
2121
real vx, vy, vz;
2222
real m;
23+
int type;
2324
};
2425

2526
inline void Gravity(Particle& a, Particle& b, real dt)
@@ -53,4 +54,4 @@ inline void Gravity(Particle& a, Particle& b, real dt)
5354
b.vx += bx * dt;
5455
b.vy += by * dt;
5556
b.vz += bz * dt;
56-
}
57+
}

0 commit comments

Comments
 (0)