<html>#2369: PreSync circumvents scoping of Cactus grid functions for C/C++ functions.
<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>open</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td>ET_2020_11</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>major</td></tr>
<tr><td style='text-align:right'>Component:</td><td></td></tr>
</table>

<p>Comment (by Steven R. Brandt):</p>
<p>So the only thing that needs to be done here is convert warnings to errors. Correct?</p>
<div class="codehilite"><pre><span></span><span class="gh">diff --git a/lib/sbin/rdwr.pl b/lib/sbin/rdwr.pl</span>
<span class="gh">index 24b3cf12..e1be427c 100644</span>
<span class="gd">--- a/lib/sbin/rdwr.pl</span>
<span class="gi">+++ b/lib/sbin/rdwr.pl</span>
<span class="gu">@@ -527,7 +527,7 @@ sub create_macros</span>
                 $hint = &quot;Check variable or group &#39;${th}::$full_var&#39; and verify &quot;.
                     &quot;correct implementation/thorn name and variable name.&#39;&quot;;
               }
<span class="gd">-              &amp;CST_error(1, &quot;Error in read/write declaration of &#39;${th}::$full_var&#39; for &#39;$nm&#39; in schedule.&quot;</span>
<span class="gi">+              &amp;CST_error(0, &quot;Error in read/write declaration of &#39;${th}::$full_var&#39; for &#39;$nm&#39; in schedule.&quot;</span>
                     ,$hint, $errline, $ccl_file);
               next;
             }
<span class="gu">@@ -536,7 +536,7 @@ sub create_macros</span>
             # the variable type...
             if($vtype eq &quot;CCTK_&quot;) {
               my $hint = &quot;Bad variable group name &#39;$full_var&#39; at $errline&quot;;
<span class="gd">-              &amp;CST_error(1, &quot;Error in read/write declaration $nm schedule. Check variable or group &#39;$full_var&#39;&quot; .</span>
<span class="gi">+              &amp;CST_error(0, &quot;Error in read/write declaration $nm schedule. Check variable or group &#39;$full_var&#39;&quot; .</span>
                     &#39; and verify correct implementation/thorn name and variable name.&#39;
                     ,$hint, $errline, $ccl_file);
               next;
<span class="gu">@@ -569,7 +569,7 @@ sub create_macros</span>
                 if(!defined($decls-&gt;{$full_var})) {
                   my $line = $reads_writes-&gt;{$namekey}-&gt;{$th}-&gt;{$full_var}-&gt;{line};
                   my $hint = &quot;Check access of variable. M
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2369/presync-circumvents-scoping-of-cactus-grid'>https://bitbucket.org/einsteintoolkit/tickets/issues/2369/presync-circumvents-scoping-of-cactus-grid</a></p>
</html>