<div dir="ltr">Hi,<div><br></div><div>I was able to get ET to build with the Brill example.  However, after constructing a par file (attached) I have found that the execution crashes.  The main complaint seems to be that there are not enough prolongation levels associated with the grid functions. One is assigned and Carpet seems to say it needs at least 2. I am attaching the .err file (short) so you&#39;ll get a hint of what I see.  I can perhaps post the .out file to pastebin if that would help.   Indeed all time levels for the grid functions is set to 1. What could be responsible?  Am I missing something in the par file or is there something in the generated code which needs tweaking? Also, the CT method I use needs the Robin outer bc, which is set in the par file.  More needed? </div><div><br></div><div>Thanks.</div><div><br></div><div>Comer</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 7, 2015 at 11:16 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"><div style="word-wrap:break-word"><br><div><span class=""><div>On 7 Sep 2015, at 16:40, Comer Duncan &lt;<a href="mailto:comer.duncan@gmail.com" target="_blank">comer.duncan@gmail.com</a>&gt; wrote:</div><br><blockquote type="cite"><div dir="ltr">Hi Ian,<div><br></div><div>Thanks for noticing that I don&#39;t have the naming correct.  I believe I fixed it. I am attaching the revised script.  However, I still get a crash. Here is the last part of the make with a complaint about sqrtdetg which I don&#39;t understand, as it seems that sqrtdetg is properly mentioned and computed in the script. Can you or someone in the list please let me know what&#39;s the matter now?</div></div></blockquote><div><br></div></span><div>Hi Comer,</div><div><br></div><div>(added CC to mailing list which was lost)</div><div><br></div><div>The problem is that you are taking a derivative of a shorthand; this isn&#39;t possible because shorthands are only defined pointwise.  To take a derivative (finite difference), the variable needs to be a grid function.  sqrtdetg is declared as a shorthand in CT_BrillAnalyticCoefficients.</div><div><br></div><div>You could expand the definition of sqrtdetg in terms of the metric, then differentiate it symbolically wrt the metric, and then the required numerical derivatives could be taken of the metric, which is a grid function.  Alternatively, and much more simply, you could add a grid function which you initialise using sqrtdetg in a previous calculation, and then finite-difference it as you are currently doing.  These will have different numerical truncation errors, but this probably doesn&#39;t matter in your case.</div><div><br></div><div>Kranc should have detected the attempt to use PD on a shorthand.  I have created an issue for this: <a href="https://github.com/ianhinder/Kranc/issues/134" target="_blank">https://github.com/ianhinder/Kranc/issues/134</a>.</div><br><blockquote type="cite"><div><div class="h5"><div dir="ltr"><div><br></div><div><div>Checking status of thorn CT_BrillAnalytic</div><div>COMPILING arrangements/Cosmology/CT_Analytic/src/<a href="http://Boundaries.cc" target="_blank">Boundaries.cc</a></div><div>COMPILING arrangements/Cosmology/CT_Analytic/src/CT_Analytic_BY_Calc.cc</div><div>COMPILING arrangements/Cosmology/CT_BrillAnalytic/src/<a href="http://Boundaries.cc" target="_blank">Boundaries.cc</a></div><div>COMPILING arrangements/Cosmology/CT_BrillAnalytic/src/CT_BrillAnalyticCoefficients.cc</div><div>COMPILING arrangements/Cosmology/CT_Analytic/src/CT_Analytic_ExactBoundary.cc</div><div>In file included from /Users/comerduncan/Cactus/arrangements/Cosmology/CT_BrillAnalytic/src/CT_BrillAnalyticCoefficients.cc:14:0:</div><div>/Users/comerduncan/Cactus/arrangements/Cosmology/CT_BrillAnalytic/src/CT_BrillAnalyticCoefficients.cc: In function &#39;void CT_BrillAnalytic::CT_BrillAnalyticCoefficients_Body(const cGH*, int, int, const CCTK_REAL8*, const CCTK_REAL8*, const CCTK_REAL8*, const int*, const int*, int, CCTK_REAL8* const __restrict__*)&#39;:</div><div>/Users/comerduncan/Cactus/arrangements/Cosmology/CT_BrillAnalytic/src/CT_BrillAnalyticCoefficients.cc:220:84: error: &#39;sqrtdetg&#39; was not declared in this scope</div><div>     const CCTK_REAL PDstandardNth1sqrtdetg CCTK_ATTRIBUTE_UNUSED = PDstandardNth1(&amp;sqrtdetg[index]);</div><div>                                                                                    ^</div><div>/Users/comerduncan/Cactus/arrangements/Cosmology/CT_BrillAnalytic/src/Kranc.hh:120:39: note: in definition of macro &#39;KRANC_GFOFFSET3D&#39;</div><div>   (*(CCTK_REAL const*)&amp;((char const*)(var))[cdi*(i)+cdj*(j)+cdk*(k)])</div><div>                                       ^</div><div>/Users/comerduncan/Cactus/arrangements/Cosmology/CT_BrillAnalytic/src/CT_BrillAnalyticCoefficients.cc:220:68: note: in expansion of macro &#39;PDstandardNth1&#39;</div><div>     const CCTK_REAL PDstandardNth1sqrtdetg CCTK_ATTRIBUTE_UNUSED = PDstandardNth1(&amp;sqrtdetg[index]);</div><div>                                                                    ^</div><div>make[3]: *** [CT_BrillAnalyticCoefficients.cc.o] Error 1</div><div>make[2]: *** [make.checked] Error 2</div><div>make[1]: *** [/Users/comerduncan/Cactus/configs/sim/lib/libthorn_CT_BrillAnalytic.a] Error 2</div><div>make[1]: *** Waiting for unfinished jobs....</div><div>COMPILING arrangements/Cosmology/CT_Analytic/src/CT_Analytic_Exact_Calc.cc</div><div>COMPILING arrangements/Cosmology/CT_Analytic/src/CT_Analytic_ExpandingLattice_Calc.cc</div><div>COMPILING arrangements/Cosmology/CT_Analytic/src/CT_Analytic_LumpBoundary.cc</div><div>COMPILING arrangements/Cosmology/CT_Analytic/src/CT_Analytic_Lump_Calc.cc</div><div>COMPILING arrangements/Cosmology/CT_Analytic/src/CT_Analytic_Poisson_Calc.cc</div><div>COMPILING arrangements/Cosmology/CT_Analytic/src/<a href="http://Kranc.cc" target="_blank">Kranc.cc</a></div><div>COMPILING arrangements/Cosmology/CT_Analytic/src/<a href="http://RegisterMoL.cc" target="_blank">RegisterMoL.cc</a></div><div>COMPILING arrangements/Cosmology/CT_Analytic/src/<a href="http://RegisterSymmetries.cc" target="_blank">RegisterSymmetries.cc</a></div><div>COMPILING arrangements/Cosmology/CT_Analytic/src/<a href="http://Startup.cc" target="_blank">Startup.cc</a></div><div>Creating /Users/comerduncan/Cactus/configs/sim/lib/libthorn_CT_Analytic.a</div><div>make: *** [sim] Error 2</div></div><div><br></div><div>Here is the last</div><div><br>Thanks for your help.</div><div><br></div><div>Comer</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 7, 2015 at 6:21 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"><div style="word-wrap:break-word"><br><div><span><div>On 4 Sep 2015, at 16:11, Comer Duncan &lt;<a href="mailto:comer.duncan@gmail.com" target="_blank">comer.duncan@gmail.com</a>&gt; wrote:</div><br><blockquote type="cite"><div dir="ltr">I have pasted the attempted build to pastebin:  <a href="http://pastebin.com/YNDgRKNV" target="_blank">http://pastebin.com/YNDgRKNV</a><div><br></div><div>There are several complaints there which may be either due to unseen errors in my Kranc script or other unrelated things.  Please let me know if you see something.  Thanks very much.</div></div></blockquote><div><br></div></span><div>Aha!  You have a calculation with a name which is the same as the thorn name.  Kranc uses the thorn name as a C++ namespace, and calculation names as C++ function names, and these are not allowed to conflict.  This is the error you are seeing:</div><div><br></div><div><div><span style="white-space:pre-wrap">        </span>• In file included from /Users/comerduncan/Cactus/arrangements/Cosmology/CT_BrillAnalytic/src/CT_BrillAnalytic.cc:14:0:<br></div><div><span style="white-space:pre-wrap">        </span>• /Users/comerduncan/Cactus/arrangements/Cosmology/CT_BrillAnalytic/src/Kranc.hh:10:28: error: &#39;namespace CT_BrillAnalytic { }&#39; redeclared as different kind of symbol<br></div><div><span style="white-space:pre-wrap">        </span>•  namespace CT_BrillAnalytic {<br></div><div><span style="white-space:pre-wrap">        </span>•                             ^<br></div><div><span style="white-space:pre-wrap">        </span>• In file included from /Users/comerduncan/Cactus/configs/sim/bindings/include/CT_BrillAnalytic/cctk.h:6:0,<br></div><div><span style="white-space:pre-wrap">        </span>•                  from /Users/comerduncan/Cactus/arrangements/Cosmology/CT_BrillAnalytic/src/CT_BrillAnalytic.cc:11:<br></div><div><span style="white-space:pre-wrap">        </span>• /Users/comerduncan/Cactus/configs/sim/bindings/include/CT_BrillAnalytic/cctk_ScheduleFunctions.h:35:6: note: previous declaration &#39;void CT_BrillAnalytic(cGH*)&#39;<br></div><div><span style="white-space:pre-wrap">        </span>•  void CT_BrillAnalytic (CCTK_ARGUMENTS) CCTK_ATTRIBUTE_NONNULL(1);<br></div><div><span style="white-space:pre-wrap">        </span>•       ^<br></div><div><br></div><div>I had never thought of this issue before; Kranc should prevent you from doing this and give an error at Kranc time.  I just created in issue for this: <a href="https://github.com/ianhinder/Kranc/issues/132" target="_blank">https://github.com/ianhinder/Kranc/issues/132</a>.  You should just be able to change the name of the calculation from thornName to thornName &lt;&gt; &quot;_&lt;something&gt;&quot;.</div><div><br></div><div>In general, I would recommend prefixing all calculation names with the thorn name, to avoid possible conflicts with other thorns.  Cactus doesn&#39;t have any thorn-based scoping mechanism, so all scheduled functions are in the same namespace.  You have some calculations called &quot;formgk&quot; and &quot;gupper&quot;.  Probably they are fine, but in principle they could conflict with other thorns, so prefixing the names with the thorn name is much safer.</div><div><br></div><div>Ideally, I think I would like Kranc to automatically add such a prefix, but this would break backward compatibility.  Maybe Kranc should print a warning if the calculation name does not start with the thorn name (<a href="https://github.com/ianhinder/Kranc/issues/133" target="_blank">https://github.com/ianhinder/Kranc/issues/133</a>).</div></div><div><br></div></div><span><div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div>-- </div><div>Ian Hinder</div><div><a href="http://members.aei.mpg.de/ianhin" target="_blank">http://members.aei.mpg.de/ianhin</a></div></div></div></div></div>
</div>
<br></span></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@einsteintoolkit.org" target="_blank">Users@einsteintoolkit.org</a><br>
<a href="http://lists.einsteintoolkit.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.einsteintoolkit.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
</div></div><span>&lt;CT_BrillAnalytic.m&gt;</span></blockquote></div><span class=""><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div>-- </div><div>Ian Hinder</div><div><a href="http://members.aei.mpg.de/ianhin" target="_blank">http://members.aei.mpg.de/ianhin</a></div></div></div></div></div>
</div>
<br></span></div></blockquote></div><br></div>