<html>#2691: New features to particle_tracerET
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Leonardo Werneck</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>new</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td>ET_2023_05</td></tr>
<tr><td style='text-align:right'>  Version:</td><td></td></tr>
<tr><td style='text-align:right'>     Type:</td><td>enhancement</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>major</td></tr>
<tr><td style='text-align:right'>Component:</td><td></td></tr>
</table>

<p>Comment (by Leonardo Werneck):</p>
<p>Gabriele---</p>
<p>Upon further discussion, the functionality you seek is already provided by the thorn, although it is not its default behavior. For example, the following non-standard output configuration:</p>
<div class="codehilite"><pre><span></span><span class="c">particle_tracerET::output_freq   = 4</span>
<span class="c">particle_tracerET::output_format = &quot;ascii&quot; # Default</span>
</pre></div>


<p>can be made standard by doing</p>
<div class="codehilite"><pre><span></span><span class="c">particle_tracerET::output_freq = 0</span>
<span>&lt;...&gt;</span>
<span class="c">CarpetIOASCII::out1D_every = 128 # Or whatever</span>
<span class="c">CarpetIOASCII::out1D_vars  = &quot;</span>
<span class="c">  &lt;...&gt;</span>
<span class="c">  particle_tracerET::particle_position_arrays{out_every=4}</span>
<span>&quot;</span>
</pre></div>


<p>Note that in the standard output the particle positions would be in the file <code>particle_traceret-particle_position_arrays.x.asc</code>, while the non-standard output file is named <code>particles.asc</code>. In fact one can enable both outputs at the same time using e.g.,</p>
<div class="codehilite"><pre><span></span><span class="c">particle_tracerET::output_freq = 4</span>
<span>&lt;...&gt;</span>
<span class="c">CarpetIOASCII::out1D_every = 128 # Or whatever</span>
<span class="c">CarpetIOASCII::out1D_vars  = &quot;</span>
<span class="c">  &lt;...&gt;</span>
<span class="c">  particle_tracerET::particle_position_arrays{out_every=particle_tracerET::output_freq}</span>
<span>&quot;</span>
</pre></div>


<p>Granted, this is not well documented, so we should add this to the thorn’s documentation.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2691/new-features-to-particle_traceret'>https://bitbucket.org/einsteintoolkit/tickets/issues/2691/new-features-to-particle_traceret</a></p>
</html>