about summary refs log tree commit diff
diff options
context:
space:
mode:
authoremile <hanemile@protonmail.com>2018-10-08 17:26:00 +0200
committeremile <hanemile@protonmail.com>2018-10-08 17:26:00 +0200
commitff38efae6116b1d1845d1f5c02ed977934c64ac6 (patch)
tree6335e7e3deccd0792155d13bfb9b20611ee01c77
parent02f224459476d45ef31a8ed344aba1dd810e2607 (diff)
Basic logging
-rw-r--r--main.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/main.go b/main.go
index 0cdd637..43240ef 100644
--- a/main.go
+++ b/main.go
@@ -5,6 +5,7 @@ import (
 	"./draw"
 	"./forces"
 	"./structs"
+	"fmt"
 )
 
 func main() {
@@ -15,8 +16,15 @@ func main() {
 		{structs.Coord{X: 100, Y: 500}, structs.Force{0, 0}, 1000},
 	}
 
-	csv.Import("data/structure03.ita.uni-heidelberg.de_26635.csv", 0, 4000, starsSlice)
+	fmt.Printf("%-60s", "Opening the csv")
+	starsSlice = csv.Import("data/structure03.ita.uni-heidelberg.de_26635.csv", 0, 4000, starsSlice)
+	fmt.Printf("Done\n")
 
+	fmt.Printf("%-60s", "Calculate the forces")
 	forces.CalcAllForces(starsSlice)
+	fmt.Printf("Done\n")
+
+	fmt.Printf("%-60s", "Plotting the stars")
 	draw.Slice(starsSlice, "out.png")
+	fmt.Printf("Done\n")
 }