mirror of
https://github.com/gonum/gonum.git
synced 2025-10-23 23:23:15 +08:00
spatial/barneshut: clean up lint
This commit is contained in:
@@ -5,6 +5,8 @@
|
|||||||
package barneshut_test
|
package barneshut_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"log"
|
||||||
|
|
||||||
"golang.org/x/exp/rand"
|
"golang.org/x/exp/rand"
|
||||||
|
|
||||||
"gonum.org/v1/gonum/spatial/barneshut"
|
"gonum.org/v1/gonum/spatial/barneshut"
|
||||||
@@ -56,7 +58,10 @@ func Example_galaxy() {
|
|||||||
// this step may be omitted and ForceOn will
|
// this step may be omitted and ForceOn will
|
||||||
// perform the naive quadratic calculation
|
// perform the naive quadratic calculation
|
||||||
// without building the data structure.
|
// without building the data structure.
|
||||||
plane.Reset()
|
err := plane.Reset()
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
// Calculate the force vectors using the theta
|
// Calculate the force vectors using the theta
|
||||||
// parameter...
|
// parameter...
|
||||||
|
Reference in New Issue
Block a user