about summary refs log tree commit diff
diff options
context:
space:
mode:
authoremile <hanemile@protonmail.com>2018-10-10 21:55:47 +0200
committeremile <hanemile@protonmail.com>2018-10-10 21:55:47 +0200
commitb12c1c354638e8cac7644651d6749377136a2f74 (patch)
treed7fb483102782470d7816923c5b78fd250fafe75
parent9c0d702dc2cc3a555c65d416caf79e9c129c2f9e (diff)
removed some debug code
-rw-r--r--forces/forces.go4
-rw-r--r--main.go6
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)
 
 }