diff options
author | emile <hanemile@protonmail.com> | 2018-10-12 15:01:41 +0200 |
---|---|---|
committer | emile <hanemile@protonmail.com> | 2018-10-12 15:01:41 +0200 |
commit | 4bc0947d30ca0fe36259aaae9138d60dce92ab87 (patch) | |
tree | d764eb937294e113c586febdf34fac643d28c8d5 | |
parent | 56a4cd9158b30d6bc05e23a2dafd2528f3d5a187 (diff) |
removed CalcAllForcesOld, for calculating using 1 thread, use CalcAllForces from now on!
-rw-r--r-- | forces/forces.go | 26 |
1 files changed, 0 insertions, 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 -} |