From a759b1c59e63f5515a03183fba79d36491b2d717 Mon Sep 17 00:00:00 2001 From: emile Date: Fri, 19 Oct 2018 17:49:44 +0200 Subject: Adjusted the method for defining how big a star should be drawn. --- main.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'main.go') 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) + } } -- cgit 1.4.1