<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Yes that has done the trick!</p>
<p>And you have also made me feel better as well, knowing it wasn't
just me....</p>
<p>Chris<br>
</p>
<br>
<div class="moz-cite-prefix">On 11/03/2017 11:27 AM, Ian Hinder
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:5571F60E-5F97-4922-9B96-57C59B7261EE@aei.mpg.de">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<br>
<div>
<div>On 3 Nov 2017, at 09:22, Chris Stevens <<a
href="mailto:c.stevens@ru.ac.za" moz-do-not-send="true">c.stevens@ru.ac.za</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hi Ian,</p>
<p>thanks for the quick reply.</p>
<p>SCHEDULE WorldTubeExtract_TEST AT CCTK_INITIAL AFTER
WorldTubeExtract_RegisterSlices<br>
{<br>
LANG: C<br>
OPTIONS: LEVEL<br>
} "TEST"</p>
<p>Also the output of Carpet::is_global_mode() is 0 so
definitely not in global mode.<br>
</p>
</div>
</blockquote>
<div><br>
</div>
<div>Hi,</div>
<div><br>
</div>
<div>The problem is that it is in level mode ("OPTIONS: LEVEL").
Level mode is called once per refinement level, and on each
refinement level, there may be multiple components
(rectangular blocks of grid points). A function scheduled in
level mode can access quantities which are defined on a given
refinement level (or, for example, call interpolation or
reduction functions for that level), but not those that are
defined on a given component, for example accessing grid data
like gridfunctions. When you schedule a function in local
mode ("OPTIONS: LOCAL"), it is called once per component, and
then you can access grid data.</div>
<div><br>
</div>
<div>I spent hours recently trying to track down exactly this
problem!</div>
</div>
<br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap:
break-word; -webkit-nbsp-mode: space; -webkit-line-break:
after-white-space;">
<div style="color: rgb(0, 0, 0); letter-spacing: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
word-wrap: break-word; -webkit-nbsp-mode: space;
-webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); letter-spacing: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
word-wrap: break-word; -webkit-nbsp-mode: space;
-webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); letter-spacing: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
word-wrap: break-word; -webkit-nbsp-mode: space;
-webkit-line-break: after-white-space;">
<div>-- </div>
<div>Ian Hinder</div>
<div><a href="http://members.aei.mpg.de/ianhin"
moz-do-not-send="true">http://members.aei.mpg.de/ianhin</a></div>
</div>
</div>
</div>
</div>
</div>
<br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<font size="-1" face="Cantarell" color="#666666">Dr Chris Stevens</font>
<div class="moz-signature">
<div class="moz-signature"> <font size="-1" face="Cantarell"
color="#666666"> </font>
<p><font size="-1" face="Cantarell" color="#666666">Department
of Mathematics</font></p>
<font size="-1" face="Cantarell" color="#666666"> </font>
<p><font size="-1" face="Cantarell" color="#666666">Rhodes
University</font></p>
<p><font color="#666666"><font size="-1"><font
face="Cantarell">Room 5</font></font></font></p>
<p><font color="#666666"><font size="-1"><font
face="Cantarell"> Ph: +27 46 603 8932</font></font></font></p>
<p><font color="#666666"><font size="-1"><font
face="Cantarell">Web: <a moz-do-not-send="true"
href="http://www.chrisdoesmaths.com">www.chrisdoesmaths.com</a></font></font></font></p>
</div>
</div>
</div>
</body>
</html>