We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b89a411 commit 46a27aeCopy full SHA for 46a27ae
1 file changed
src/io/load_particle.hpp
@@ -20,8 +20,15 @@ std::vector<Particle> LoadParticlesFromFile(const std::string& filename)
20
std::ifstream in(filename);
21
22
Particle temp;
23
- while (in >> temp.x >> temp.y >> temp.z >> temp.vx >> temp.vy >> temp.vz >> temp.m)
+ // Match this to the file columns: x y z vx vy vz m type
24
+ while (in >> temp.x >> temp.y >> temp.z >> temp.vx >> temp.vy >> temp.vz >> temp.m >> temp.type) {
25
+
26
+ temp.ax = 0;
27
+ temp.ay = 0;
28
+ temp.az = 0;
29
30
p.push_back(temp);
31
+ }
32
33
return p;
34
}
0 commit comments