<html>#2385: incorrect normal vector when looping over boundary using CCTK_LOOP3_BND
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Roland Haas</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>Cactus</td></tr>
</table>

<p>Comment (by Roland Haas):</p>
<p>That might be good, yes. </p>
<p>I am not sure if it really is a point further inward though. For the upper boundary (<code>cctki0_idir &gt; 0</code>) the code sets <code>ni = cctki0_imax-i</code> which, for <code>i</code> close to the upper boundary, is actually a number close to <code>0</code>. So it seems to me that it really gives magnitude of distance from the boundary such that the point on the boundary has distance <code>+1</code> (since <code>cctki_imax</code> is exclusive).</p>
<p>I would also want to check two things before / when / very shortly after doing so:</p>
<ul>
<li>is there any code that (tries to) use(s) the ni as they are currently documented (there shouldn’t given that it would be quite horribly wrong)</li>
<li>is there anything provided by the looping macros that does actually give information which boundary one is looping over (ie makes the <code>ccti[012]_dir</code> visible to the caller (which would also seem useful)</li>
</ul>
<p>‌</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2385/incorrect-normal-vector-when-looping-over'>https://bitbucket.org/einsteintoolkit/tickets/issues/2385/incorrect-normal-vector-when-looping-over</a></p>
</html>