<html>#2534: Evolution of grid arrays with Mol no longer works
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td></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>Comment (by Yosef Zlochower):</p>
<p>The following patch seems to “fix” the problem.</p>
<div class="codehilite"><pre><span></span><span class="gh">diff --git a/Carpet/src/Poison.cc b/Carpet/src/Poison.cc</span>
<span class="gh">index 12fc3d3..39a989a 100644</span>
<span class="gd">--- a/Carpet/src/Poison.cc</span>
<span class="gi">+++ b/Carpet/src/Poison.cc</span>
<span class="gu">@@ -131,12 +131,16 @@ void PoisonGroup(cGH const *const cctkGH, int const group,</span>
END_LOCAL_MAP_LOOP;
// mark as invalid
<span class="gd">- for (int var = 0; var < nvar; ++var) {</span>
<span class="gd">- int const map0 = 0;</span>
<span class="gd">- ggf *const ff = arrdata.AT(group).AT(map0).data.AT(var);</span>
<span class="gd">- assert(ff);</span>
<span class="gd">- for (int tl = min_tl; tl <= max_tl; ++tl) {</span>
<span class="gd">- ff->set_valid(mglevel, reflevel, tl, CCTK_VALID_NOWHERE);</span>
<span class="gi">+ // Exclude CCTK_ARRAY from this</span>
<span class="gi">+ if (CCTK_GroupTypeI(group) != CCTK_ARRAY)</span>
<span class="gi">+ {</span>
<span class="gi">+ for (int var = 0; var < nvar; ++var) {</span>
<span class="gi">+ int const map0 = 0;</span>
<span class="gi">+ ggf *const ff = arrdata.AT(group).AT(map0).data.AT(var);</span>
<span class="gi">+ assert(ff);</span>
<span class="gi">+ for (int tl = min_tl; tl <= max_tl; ++tl) {</span>
<span class="gi">+ ff->set_valid(mglevel, reflevel, tl, CCTK_VALID_NOWHERE);</span>
<span class="gi">+ }</span>
}
}
</pre></div>
<p></p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2534/evolution-of-grid-arrays-with-mol-no'>https://bitbucket.org/einsteintoolkit/tickets/issues/2534/evolution-of-grid-arrays-with-mol-no</a></p>
</html>