- #1
morenogabr
- 29
- 0
When simulating N particles in FORTRAN:
- How do I declare x,y,z,vx,vy,vz for arbitrarily large number of particles N?
- How do I write out data for each particle without N write statements?
I intend to have a time-step do loop with a particle do loop inside so that at each time step I cycle through each particle, do the computation, and update the data.
- How do I declare x,y,z,vx,vy,vz for arbitrarily large number of particles N?
- How do I write out data for each particle without N write statements?
I intend to have a time-step do loop with a particle do loop inside so that at each time step I cycle through each particle, do the computation, and update the data.