<!DOCTYPE html>
<html data-lt-installed="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body style="padding-bottom: 1px;">
<p>Hi, Sergey!</p>
<p>thanks for the patch! LGTM with a minor below.</p>
<p>Sergey</p>
<div class="moz-cite-prefix">On 12/26/25 12:17, Sergey Kaplun wrote:<br>
</div>
<p><br>
</p>
<p><snipped></p>
<blockquote type="cite"
cite="mid:08a795fca1a2e9d431822ab7fc4e459c57e8126d.1766738771.git.skaplun@tarantool.org">
<pre wrap="" class="moz-quote-pre">
+
+ assert(energy(bodies, nbody) == -0.16907516382852447179,
+ "Correct start energy")</pre>
</blockquote>
seems broken indentation
<blockquote type="cite"
cite="mid:08a795fca1a2e9d431822ab7fc4e459c57e8126d.1766738771.git.skaplun@tarantool.org">
<pre wrap="" class="moz-quote-pre">
+ for _ = 1, N do advance(bodies, nbody, 0.01) end
+ end,
+ checker = function()
+ if N == DEFAULT_N then
+ assert(energy(bodies, nbody) == -0.16908313397890917251,
+ "Correct result energy")
+ end
+ return true
+ end,
+ items = N,
+})
-offsetMomentum(bodies, nbody)
-io.write( string.format("%0.9f",energy(bodies, nbody)), "\n")
-for i=1,N do advance(bodies, nbody, 0.01) end
-io.write( string.format("%0.9f",energy(bodies, nbody)), "\n")
+bench:run_and_report()
</pre>
</blockquote>
</body>
<lt-container></lt-container>
</html>