Skip to content

Commit e9a7688

Browse files
committed
feat: add N-body simulation benchmark in ProXPL.
1 parent 41dbceb commit e9a7688

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

benchmarks/macro/nbody.prox

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ class NBodySystem {
1515
init() {
1616
this.bodies = [];
1717
// Sun
18-
list_push(this.bodies, Body(0, 0, 0, 0, 0, 0, 1.98892e30));
18+
list_push(this.bodies, Body(0, 0, 0, 0, 0, 0, 1.98892 * 1000000000000000000000000000000.0));
1919
// Jupiter
20-
list_push(this.bodies, Body(4.84143144246472090e+00, -1.16032004402742839e+00, -1.03622044471123109e-01,
21-
1.66007664274403694e-03 * 365.24, 7.69901118419740425e-03 * 365.24, -6.90460016972063023e-05 * 365.24,
22-
9.54791938424326609e-04 * 1.98892e30));
20+
list_push(this.bodies, Body(4.84143144246472090, -1.16032004402742839, -0.103622044471123109,
21+
1.66007664274403694 * 0.001 * 365.24, 7.69901118419740425 * 0.001 * 365.24, -6.90460016972063023 * 0.00001 * 365.24,
22+
9.54791938424326609 * 0.0001 * 1.98892 * 1000000000000000000000000000000.0));
2323
// Additional bodies can be added...
2424
}
2525

0 commit comments

Comments
 (0)