<html>#2286: Add the Fishbone-Moncrief initial data thorn to the ET
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Steven R. Brandt</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>new</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td>ET_2019_10</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>EinsteinToolkit thorn</td></tr>
</table>

<p>Comment (by Roland Haas):</p>
<p>What you need is something like  <a data-is-external-link="true" href="https://bitbucket.org/einsteintoolkit/einsteininitialdata/src/f2e6accbb09bec42698149cadd069ef470838a0f/TOVSolver/src/tov.c#lines-513" rel="nofollow">https://bitbucket.org/einsteintoolkit/einsteininitialdata/src/f2e6accbb09bec42698149cadd069ef470838a0f/TOVSolver/src/tov.c#lines-513</a> and <a data-is-external-link="true" href="https://bitbucket.org/einsteintoolkit/einsteininitialdata/src/f2e6accbb09bec42698149cadd069ef470838a0f/TOVSolver/src/tov.c#lines-710" rel="nofollow">https://bitbucket.org/einsteintoolkit/einsteininitialdata/src/f2e6accbb09bec42698149cadd069ef470838a0f/TOVSolver/src/tov.c#lines-710</a> though eg <a data-is-external-link="true" href="https://bitbucket.org/einsteintoolkit/einsteininitialdata/src/f2e6accbb09bec42698149cadd069ef470838a0f/TOVSolver/src/tov.c#lines-557" rel="nofollow">https://bitbucket.org/einsteintoolkit/einsteininitialdata/src/f2e6accbb09bec42698149cadd069ef470838a0f/TO
 VSolver/src/tov.c#lines-557</a> is wrong b/c it does not honor the ID flags.</p>
<p>Something like:</p>
<div class="codehilite"><pre><span></span>do_lapse = CCTK_Equals(initial_lapse, &quot;FishboneMoncriefID&quot;);
do_metric = CCTK_Equals(initial_data, &quot;FishboneMoncriefID&quot;);

for (...) {
  if(do_lapse) alp[idx] = ...
  if(do_metric) {
    gxx[idx] = ...
  }
}
</pre></div>


<p>and if you want to be extra good, you can add something like:</p>
<div class="codehilite"><pre><span></span>if(!(CCTK_Equals(initial_data_setup_method, &quot;init_sime_levels&quot;) ||
  CCTK_Equals(initial_data_setup_method, &quot;init_single_level&quot;)) {
  CCTK_VPARAMWARN(
    &quot;initial_data_setup_method muse be either &#39;foo&#39; or &#39;bar&#39;, but got &#39;%s&#39;,
    initial_data_setup_method);
}
</pre></div>


<p>to check that the <code>InitiaBase::initial_data_setup_method</code> is set to a setting you support. Admittedly few (none other than <code>Carpet</code> which is the code that actually needs to know) codes do so.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2286/add-the-fishbone-moncrief-initial-data'>https://bitbucket.org/einsteintoolkit/tickets/issues/2286/add-the-fishbone-moncrief-initial-data</a></p>
</html>