From 4bc0947d30ca0fe36259aaae9138d60dce92ab87 Mon Sep 17 00:00:00 2001 From: emile Date: Fri, 12 Oct 2018 15:01:41 +0200 Subject: removed CalcAllForcesOld, for calculating using 1 thread, use CalcAllForces from now on! --- forces/forces.go | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/forces/forces.go b/forces/forces.go index 8927309..1cab4a0 100644 --- a/forces/forces.go +++ b/forces/forces.go @@ -169,29 +169,3 @@ func NextTimestep(starSlice []structs.Star, deltat int) []structs.Star { return newSlice } - -// old deprecated function (no threading) -func CalcAllForcesOld(starSlice []structs.Star) []structs.Star { - var newSlice []structs.Star - - bar := pb.StartNew(len(starSlice)).Prefix("Stars Done: ") - bar.SetWidth(80) - - for index := range starSlice { - bar.Increment() - - var force = forces(starSlice, index) - - newStar := structs.Star{ - structs.Coord{starSlice[index].C.X, starSlice[index].C.Y}, - structs.Force{force.X, force.Y}, - starSlice[index].Mass, - } - - newSlice = append(newSlice, newStar) - } - - bar.FinishPrint("") - - return newSlice -} -- cgit 1.4.1