<html>#2952: GRHayLET/IllinoisGRMHD convert_*_to_*.c magnetic sector subleties
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Maxwell Rizzo</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>new</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td></td></tr>
<tr><td style='text-align:right'>     Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td>EinsteinToolkit thorn</td></tr>
</table>

<p>convert_HydroBase_to_IllinoisGRMHD.c</p>
<ol>
<li>
<p>HydroBase Aphi is directly copied into IllinoisGRMHD phitilde on line <a data-is-external-link="true" href="https://github.com/GRHayL/GRHayLET/blob/9b01f8839d44db2ba928d2af7d1bc6b5178d54eb/IllinoisGRMHD/src/convert_HydroBase_to_IllinoisGRMHD.c#L29" rel="nofollow">29</a>. A comment in the interface says "# phitilde (=Phi*psi^6)", and another "sqrt{gamma} Phi", so I believe the direct copy is missing a factor of Psi^6 or sqrt(det gamma). It is also missing a <code>mag_factor</code> scaling of 1/4pi when compared to the Avec copying, I am not sure if it is correct without it or it should have it given <code>mag_factor</code>/<code>rescale_magnetics</code> is on by default.</p>
</li>
<li>
<p>IllinoisGRMHD Ax/Ay/Az are face centered staggered, Aphi is vertex centered. They are populated directly from HydroBase cell centered quantities. This is a bit subtle for Initial Data thorns to interface with properly, it is somewhat documented but could be a bit clearer.</p>
</li>
</ol>
<p>convert_IllinoisGRMHD_to_HydroBase.c</p>
<ol>
<li>Only HydroBase Bvec is repopulated. HydroBase Avec and Aphi are not refilled (probably due to centering mismatch). This is probably fine as the magnetic field is the more interesting quantity for diagnostics, but it could be useful for debugging or consistency.</li>
</ol>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2952/grhaylet-illinoisgrmhd-convert_-_to_-c'>https://bitbucket.org/einsteintoolkit/tickets/issues/2952/grhaylet-illinoisgrmhd-convert_-_to_-c</a></p>
</html>