<html>#2948: HydroBaseX: Missing HydroBase features (Aphi GF, conditional storage, split init)
<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>CarpetX</td></tr>
</table>
<p>Current HydroBaseX has a single routine that zeros all the variables it declares, along with a single parameter controlling whether this routine runs: <code>initial_hydro</code>. This parameter was used/extended by initial data thorns when they provide hydro quantities.</p>
<p>Following the legacy Carpet/HydroBase convention, <code>initial_hydro</code> should only control the minimal hydro fields, with other GFs accompanied by corresponding <code>initial_*</code> parameters and routines. The current implementation works, but is awkward for initial hydro data thorns to integrate with: they can either avoid using <code>initial_hydro</code> themselves and let HydroBaseX zero all fields and place their data ontop of that, or they can manually zero the fields they are not providing, which is unnecessary when HydroBaseX should be able to do it. </p>
<p>Additionally, HydroBaseX is missing the <code>Aphi</code> GF. This is the electric potential, and adding it would round out the EM support alongside <code>Bvec</code> and <code>Avec</code>.</p>
<p>Lastly, modularizing this initialization should allow conditional storage to be restored, storing optional hydro fields only when the corresponding <code>initial_*</code> parameter is not <code>"none"</code>, following HydroBase. This should also provide a minor memory/performance improvement.</p>
<p>Addressed by already open PR: <a data-is-external-link="true" href="https://github.com/EinsteinToolkit/CarpetX/pull/385" rel="nofollow">#385</a></p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2948/hydrobasex-missing-hydrobase-features-aphi'>https://bitbucket.org/einsteintoolkit/tickets/issues/2948/hydrobasex-missing-hydrobase-features-aphi</a></p>
</html>