From b12c1c354638e8cac7644651d6749377136a2f74 Mon Sep 17 00:00:00 2001 From: emile Date: Wed, 10 Oct 2018 21:55:47 +0200 Subject: removed some debug code --- forces/forces.go | 4 ---- main.go | 6 +++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/forces/forces.go b/forces/forces.go index e204e39..d39d7fd 100644 --- a/forces/forces.go +++ b/forces/forces.go @@ -108,9 +108,6 @@ func CalcAllForces(starSlice []structs.Star, threads int) []structs.Star { go forcesThread(starSlice, localRangeStart, localRangeEnd, channel) } - fmt.Printf("\nsliceLength = %d\n", sliceLength) - fmt.Printf("localRangeLen = %d\n", localRangeLen) - // Handle errors (10004 stars, but 1250 stars per thread, so 4 stars are not calculate and block the queue) if sliceLength > localRangeLen { @@ -123,7 +120,6 @@ func CalcAllForces(starSlice []structs.Star, threads int) []structs.Star { } // Initialize a new progress bar - fmt.Printf("len(starSlice) = %d", len(starSlice)) bar := pb.New(len(starSlice)).Prefix("Stars: ") bar.Start() diff --git a/main.go b/main.go index b4f5f2e..a86cc7a 100644 --- a/main.go +++ b/main.go @@ -20,15 +20,15 @@ func main() { {structs.Coord{X: 30000, Y: -30000}, structs.Force{0, 0}, 500000000}, } - llog.Good("Opening the csv") + llog.Good("Opening the csv\n") starsSlice = csv.Import("data/U_ALL.csv", 0, 50000, starsSlice) - llog.Good("Calculate the acting forces") + llog.Good("Calculate the acting forces\n") starsSlice = forces.CalcAllForces(starsSlice, threads) path := "out_2.png" - llog.Good(fmt.Sprintf("draw the slice and save it to %s", path)) + llog.Good(fmt.Sprintf("draw the slice and save it to %s\n", path)) draw.Slice(starsSlice, path) } -- cgit 1.4.1