diff options
author | emile <hanemile@protonmail.com> | 2018-10-19 17:49:44 +0200 |
---|---|---|
committer | emile <hanemile@protonmail.com> | 2018-10-19 17:49:44 +0200 |
commit | a759b1c59e63f5515a03183fba79d36491b2d717 (patch) | |
tree | 22c2c9c8379d8f2a511b67eb729dd2aa65564510 /main.go | |
parent | d468ff69c1b83ae41e03c92045c03fed35201833 (diff) |
Adjusted the method for defining how big a star should be drawn.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/main.go b/main.go index de319c4..97d9986 100644 --- a/main.go +++ b/main.go @@ -15,12 +15,10 @@ func main() { var threads int = 8 var frames int = 1 var rangeStart int = 0 - var rangeEnd int = 5000 + var rangeEnd int = 50000 // the slice starsSlice stores the star structures - starsSlice := []structs.Star2D{ - {C: structs.Vec2{}, M: 5E8}, - } + starsSlice := []structs.Star2D{} logplus.LogNeutral("Opening the csv") starsSlice = csv.Import("data/U_ALL.csv", rangeStart, rangeEnd, starsSlice) @@ -36,8 +34,9 @@ func main() { logplus.LogNeutral("Calculate the acting accelerations") starsSlice = forces.CalcAllAccelerations(starsSlice, threads) - outputName := fmt.Sprintf("out_%d.png", i+1) + outputName := fmt.Sprintf("out_%d.png", i+3) logplus.LogNeutral(fmt.Sprintf("draw the slice and save it to %s\n", outputName)) draw.Slice(starsSlice, outputName) + } } |