<div dir="ltr">Thanks for getting back to me, Ian, and thanks for agreeing this does not appear to be a trivial problem. (I&#39;ve been battling it on and off for days.)<br><div><br></div><div>&gt; <span style="font-size:12.8000001907349px">That tells you that alp is defined at the point it is output, but it doesn&#39;t tell you what its state was at the time myadmbaselapse used it. </span><span style="font-size:12.8000001907349px"> </span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">You are absolutely right. I just added a printf() statement outputting </span><span style="font-size:12.8000001907349px">ADMBase::alp</span><span style="font-size:12.8000001907349px"> at iteration 192, at all points on the z=0 plane,</span><span style="font-size:12.8000001907349px"> inside the </span>ADMBaseMcLachlanTester<span style="font-size:12.8000001907349px"> loop that sets </span><span style="font-size:12.8000001907349px">myadmbaselapse=alp. Then I</span><span style="font-size:12.8000001907349px"> re-did the run </span>with ADMBaseMcLachlanTester. After analyzing the output, I can confirm that t<span style="font-size:12.8000001907349px">here are no undefined (nan) values at iteration 192, and alp values from this printf() statement lie in the very reasonable range of 0.25 &lt; alp &lt; 0.995 for all points. Again, this is inconsistent with the data I observe in the </span><span style="font-size:12.8000001907349px">myadmbaselapse </span><span style="font-size:12.8000001907349px">IOASCII 2D file in the z=0 plane, where many undefined values are seen.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Thus I conclude that something bad is happening to </span><span style="font-size:12.8000001907349px">myadmbaselapse after being set at CCTK_ANALYSIS in GLOBAL,LOOP-LOCAL mode at iteration 192, but before the data are written to file at the same iteration, causing perfectly reasonable values to suddenly become undefined. For some reason, the same behavior is not observed in ADMBase::alp...</span></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div>-Zach</div><div><br></div>*     *     *<br>Zachariah Etienne<br>Assistant Professor of Mathematics<div>West Virginia University<br></div></div></div></div>
<br><div class="gmail_quote">On Tue, Jun 2, 2015 at 11:46 AM, Ian Hinder <span dir="ltr">&lt;<a href="mailto:ian.hinder@aei.mpg.de" target="_blank">ian.hinder@aei.mpg.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
On 2 Jun 2015, at 17:40, Zach Etienne &lt;<a href="mailto:zachetie@gmail.com" target="_blank">zachetie@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi Frank,<br>
&gt;<br>
&gt; Thanks for your feedback.<br>
&gt; &gt; You use the ADMBase variables, right?<br>
&gt; My ADMBaseMcLachlanTester thorn (<a href="http://math.wvu.edu/~zetienne/ADMBaseMcLachlanTester.tar.gz" target="_blank">math.wvu.edu/~zetienne/ADMBaseMcLachlanTester.tar.gz</a>) reproduces this issue, and uses *only* ADMBase::alp as input. I would encourage everyone interested to take a look at this thorn, as<br>
&gt; 1) there&#39;s nothing complicated about the ADMBaseMcLachlanTester thorn at all (67 lines of code, including ccl files, includes, and whitespace)<br>
&gt; 2) the included parfiles run on a single desktop computer needing only 5GB of RAM<br>
&gt; 3) it takes only ~15 mins to evolve to timestep 192<br>
&gt;<br>
&gt; &gt; Could you output the variables your analysis depends on, and see if the nan values come from there?<br>
&gt; Absolutely! I just performed a run with ADMBaseMcLachlanTester, setting myadmbaselapse to alp every 64 iterations, and confirmed that there are *no* undefined (nan) values in the (IOASCII 2D output of) ADMBase::alp (at any iteration, upto and including iteration 192), while again, there are a very large number of undefined values in myadmbaselapse at iteration 192...<br>
&gt;<br>
&gt; So myadmbaselapse is not undefined because ADMBase::alp is undefined.<br>
<br>
</span>That tells you that alp is defined at the point it is output, but it doesn&#39;t tell you what its state was at the time myadmbaselapse used it.  I think you can add a call to CCTK_OutputVarAs or something in the routine, and you will get an output at that point.  <a href="http://einsteintoolkit.org/documentation/ReferenceManual/ReferenceManualch2.html#x4-139000A2" target="_blank">http://einsteintoolkit.org/documentation/ReferenceManual/ReferenceManualch2.html#x4-139000A2</a><br>
<br>
So maybe something like<br>
<br>
CCTK_OutputVarAs(cctkGH, &quot;ADMBaseMcLachlanTester::myadmbaselapse&quot;, &quot;myadmbaselapse_when_set&quot;)<br>
<br>
and you should get your 2D output at the point the variable is set.  You could do the same for alp, to see what it is being set from.  Or you could use printf.<br>
<div><div><br>
--<br>
Ian Hinder<br>
<a href="http://members.aei.mpg.de/ianhin" target="_blank">http://members.aei.mpg.de/ianhin</a><br>
<br>
</div></div></blockquote></div><br></div></div>