diff options
-rw-r--r-- | main.go | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/main.go b/main.go index bd4996c..1727d62 100644 --- a/main.go +++ b/main.go @@ -17,23 +17,15 @@ func main() { starsSlice := []structs.Star{} llog.Good("Opening the csv") - starsSlice = csv.Import("data/U_ALL.csv", 0, 25000, starsSlice) + starsSlice = csv.Import("data/U_ALL.csv", 0, 2500, starsSlice) - // Step 1 - llog.Good("Calculate the acting forces") - starsSlice = forces.CalcAllForces(starsSlice, threads) - - llog.Good(fmt.Sprintf("draw the slice and save it to %s\n", path1)) - draw.Slice(starsSlice, path1) - - // Step 2 // Simulate the position of the stars after a specific time for i := 0; i < frames; i++ { llog.Great("--- --- --- --- ---") llog.Great(fmt.Sprintf("Frames %d/%d", i, frames)) llog.Good("Calculate the new Star positions") - starsSlice = forces.NextTimestep(starsSlice, 250000) + starsSlice = forces.NextTimestep(starsSlice, 500000) llog.Good("Calculate the acting forces") starsSlice = forces.CalcAllForces(starsSlice, threads) |