<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 3 Nov 2017, at 09:22, Chris Stevens &lt;<a href="mailto:c.stevens@ru.ac.za">c.stevens@ru.ac.za</a>&gt; 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>
      &nbsp; LANG: C<br>
      &nbsp; 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"). &nbsp;Level mode is called once per refinement level, and on each refinement level, there may be multiple components (rectangular blocks of grid points). &nbsp;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. &nbsp;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>--&nbsp;</div><div>Ian Hinder</div><div><a href="http://members.aei.mpg.de/ianhin">http://members.aei.mpg.de/ianhin</a></div></div></div></div></div>
</div>
<br></body></html>