<html>#2639: CarpetLib internal error with PreSync and analysis thorns
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Samuel Cupp</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>development version</td></tr>
<tr><td style='text-align:right'> Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>major</td></tr>
<tr><td style='text-align:right'>Component:</td><td>Carpet</td></tr>
</table>
<p>I’ve found a strange error involving variables from analysis thorns with multiple timelevels (such as WeylScal4 and ML_ADMConstraints). The error is</p>
<div class="codehilite"><pre><span></span><span>WARNING level 0 from host r1i6n25.ib0.sawtooth.inl.gov process 0</span>
<span> in thorn CarpetLib, file /home/cuppsamu/toolkit/Cactus/arrangements/Carpet/CarpetLib/src/gdata.cc:315:</span>
<span> -> Internal error: extrapolation in time. variable=ML_ADMCONSTRAINTS::H time=0.040625000000000001 times=[0.018749999999999999,0,-0.018749999999999999]</span>
<span class="c">cactus_intel19: /home/cuppsamu/toolkit/Cactus/arrangements/Carpet/Carpet/src/helpers.cc:275: int Carpet::Abort(const _cGH *, int): Assertion `0' failed.</span>
<span>Rank 0 with PID 185127 received signal 6</span>
</pre></div>
<p>This error comes from repos/carpet/CarpetLib/src/gdata.cc:</p>
<div class="codehilite language-c++"><pre><span></span><span class="kt">void</span> <span class="n">gdata</span><span class="o">::</span><span class="n">find_source_timelevel</span><span class="p">(</span><span class="n">vector</span><span class="o"><</span><span class="n">CCTK_REAL</span><span class="o">></span> <span class="k">const</span> <span class="o">&</span><span class="n">times</span><span class="p">,</span>
<span class="n">CCTK_REAL</span> <span class="k">const</span> <span class="n">time</span><span class="p">,</span> <span class="kt">int</span> <span class="k">const</span> <span class="n">order_time</span><span class="p">,</span>
<span class="n">operator_type</span> <span class="k">const</span> <span class="n">op</span><span class="p">,</span> <span class="kt">int</span> <span class="o">&</span><span class="n">timelevel0</span><span class="p">,</span>
<span class="kt">int</span> <span class="o">&</span><span class="n">ntimelevels</span><span class="p">)</span> <span class="k">const</span> <span class="p">{</span>
<spa
<p><table><tr><td>attachment:</td><td><a href="https://api.bitbucket.org/2.0/repositories/einsteintoolkit/tickets/issues/2639/attachments/backtrace.1.txt">backtrace.1.txt</a></td></tr>
<tr><td>attachment:</td><td><a href="https://api.bitbucket.org/2.0/repositories/einsteintoolkit/tickets/issues/2639/attachments/bbh.par">bbh.par</a></td></tr>
<tr><td>attachment:</td><td><a href="https://api.bitbucket.org/2.0/repositories/einsteintoolkit/tickets/issues/2639/attachments/thornlist.th">thornlist.th</a></td></tr>
</table></p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2639/carpetlib-internal-error-with-presync-and'>https://bitbucket.org/einsteintoolkit/tickets/issues/2639/carpetlib-internal-error-with-presync-and</a></p>
</html>