<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<span dir="ltr" style="margin-top:0; margin-bottom:0;">Hi Fatemeh,</span>
<br>
<br><span dir="ltr" style="margin-top:0; margin-bottom:0;">In addition to Konrad's correct notes, I want to addresd the build issues:</span>
<br>
<br>
<blockquote style="border-left:3px solid #ccc; padding-left:10px;margin:0;">
<span dir="ltr" style="margin-top:0; margin-bottom:0;">"At first, I was getting a mismatch error (Assertion ndim==nbr_points.get_ndim()), which suggests an incompatibility between Spritz’s bundled Kadath and the external version of FUKA/Kadath I used to generate the initial data.</span>
<br>
<br><span dir="ltr" style="margin-top:0; margin-bottom:0;">To fix this, I tried to build Spritz against my own external Kadath installation (~/fuka/lib/libkadath.a) instead of the one bundled in the Einstein Toolkit. I did this by disabling these thorns in my thornlist: Fuka/kadath_pizza, Fuka/KadathImporter and Fuka/KadathThorn. I also added the following lines to my ET_2024_05/Cactus/simfactory/mdb/optionlists/<machine>.cfg</span>
<br>
<br><span dir="ltr" style="margin-top:0; margin-bottom:0;">KADATH_DIR = $(HOME)/fuka</span>
<br>
<br><span dir="ltr" style="margin-top:0; margin-bottom:0;">KADATH_INC_DIRS = $(KADATH_DIR)/include</span>
<br><span dir="ltr" style="margin-top:0; margin-bottom:0;"> </span>
<br>
<br><span dir="ltr" style="margin-top:0; margin-bottom:0;">KADATH_LIB_DIRS = $(KADATH_DIR)/lib"</span>
<br>
</blockquote>
<br>
<br><span dir="ltr" style="margin-top:0; margin-bottom:0;">You are likely correct if there is a pre compiled version of Fuka with spritz. If the data was generated with the latest release (since June 25), there is a discrepancy with how the numerical domains are constructed and stored as noted in the Readme. Linking against the latest library should resolve the ndim error.</span>
<br>
<br><span dir="ltr" style="margin-top:0; margin-bottom:0;">Regarding your cfg, I believe you have to use brackets, not parentheses, e.g. ${HOME_KADATH}, for the etk config parser to recognize environment variables.</span>
<br>
<br><span dir="ltr" style="margin-top:0; margin-bottom:0;">All the best,</span>
<br><span dir="ltr" style="margin-top:0; margin-bottom:0;">Samuel</span>
<br>
<div class="fairemail_signature">
<span dir="ltr" style="margin-top:0; margin-bottom:0;">Volunteer Physicist </span>
<br>
</div>
<div class="fairemail_quote">
<div dir="ltr">
<p>Sep 5, 2025 08:04:51 Konrad Topolski <topolski@itp.uni-frankfurt.de>:</p>
</div>
<blockquote style="margin:0;border-left:3px solid #ccc; padding-left:10px;">
<p>Hi Fatemeh,</p>
<p>The thorns you've disabled in the thornlist are responsible for the import of the data in the ADMBase / Hydrobase variables and interact directly with the FUKA exporters (in the bundled/separate FUKA installation). As such, they are necessary to import FUKA ID and simultaneously independent of the thorns you use for subsequent evolution.</p>
<p>The kadathimport thorn provides the headers for the import functions for specific initial data, whose implementation is then linked from libkadath.a. </p>
<p>I would recommend that you uncomment the thorns in the thornlist, recompile (kadath library linking is still governed by the .cfg file, which shouldn't change) and re-enable the thorns in the parameter file so that they're active and the ETK can schedule the import routines in the appropriate bins.</p>
<p>I was actually unaware that bnsanalysis and related analysis thorns depend on the kadath importer thorns. Is this a custom extension or is it possible that some other thorn lists them as depencencies? </p>
<p>In any case, doing the above should help.</p>
<p>Best regards</p>
<p>Konrad</p>
<p><br><br>
W dniu: Czwartek, Wrzesień 04, 2025 17:02 CEST, Fatemeh Hossein Nouri <f.h.noori@gmail.com> napisał(a):<br><br>
</p>
<blockquote type="cite" cite="CAEFxYT7f2=GXYuESMV+-40KLiRzCXqpHGbX2+D+kCshcSdkAHg@mail.gmail.com">
<div dir="ltr">
<p><span style="color:#000000;font-family:arial, sans-serif;">Hi all, </span></p>
<div>
<p><span style="color:#000000;font-family:arial, sans-serif;">I’ve been trying to run Spritz using initial data generated by the latest version of FUKA for a BNS simulation, but I’ve run into issues related to the Kadath libraries.</span></p>
<p><span style="color:#000000;font-family:arial, sans-serif;">At first, I was getting a mismatch error (<code>Assertion ndim==nbr_points.get_ndim()</code>), which suggests an incompatibility between Spritz’s bundled Kadath and the external version of FUKA/Kadath I used to generate the initial data.</span></p>
<p><span style="color:#000000;font-family:arial, sans-serif;">To fix this, I tried to build Spritz against my own external Kadath installation (<code>~/fuka/lib/libkadath.a</code>) instead of the one bundled in the Einstein Toolkit. I did this by disabling these thorns in my thornlist: <span style="font-variant-ligatures:no-common-ligatures;">Fuka/kadath_pizza, Fuka/KadathImporter and Fuka/KadathThorn. I also added the following lines to my ET_2024_05/Cactus/simfactory/mdb/optionlists/<machine>.cfg</span></span></p>
<p><span style="color:#000000;font-family:arial, sans-serif;">KADATH_DIR = $(HOME)/fuka</span></p>
<p class="gmail-p1" style="margin:0px;font-variant:normal;font-feature-settings:normal;font-size-adjust:none;font-weight:normal;line-height:normal;font-kerning:auto;font-stretch:normal;font-style:normal;"><span style="color:#000000;font-family:arial, sans-serif;"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;">KADATH_INC_DIRS</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;"> = $(KADATH_DIR)/include</span></span></p>
<p> </p>
<p class="gmail-p1" style="margin:0px;font-variant-alternates:normal;font-feature-settings:normal;font-size-adjust:none;font-variant-east-asian:normal;line-height:normal;font-kerning:auto;font-stretch:normal;font-variant-numeric:normal;"><span style="color:#000000;font-family:arial, sans-serif;"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;">KADATH_LIB_DIRS</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;"> = </span><span style="font-variant-ligatures:no-common-ligatures;">$(KADATH_DIR)/lib</span></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-alternates:normal;font-feature-settings:normal;font-size-adjust:none;font-variant-east-asian:normal;line-height:normal;font-kerning:auto;font-stretch:normal;font-variant-numeric:normal;"><br>
</p>
<p class="gmail-p1" style="margin:0px;font-variant-alternates:normal;font-feature-settings:normal;font-size-adjust:none;font-variant-east-asian:normal;line-height:normal;font-kerning:auto;font-stretch:normal;font-variant-numeric:normal;"><span style="color:#000000;font-family:arial, sans-serif;"><span style="font-variant-ligatures:no-common-ligatures;">One question so far: Did I do things correctly?</span></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-alternates:normal;font-feature-settings:normal;font-size-adjust:none;font-variant-east-asian:normal;line-height:normal;font-kerning:auto;font-stretch:normal;font-variant-numeric:normal;"><br>
</p>
<p class="gmail-p1" style="margin:0px;font-variant-alternates:normal;font-feature-settings:normal;font-size-adjust:none;font-variant-east-asian:normal;line-height:normal;font-kerning:auto;font-stretch:normal;font-variant-numeric:normal;"><span style="color:#000000;font-family:arial, sans-serif;"><span style="font-variant-ligatures:no-common-ligatures;">Then I removed the old Kadath:</span></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-alternates:normal;font-feature-settings:normal;font-size-adjust:none;font-variant-east-asian:normal;line-height:normal;font-kerning:auto;font-stretch:normal;font-variant-numeric:normal;"><br>
</p>
<p class="gmail-p1" style="margin:0px;font-variant-alternates:normal;font-feature-settings:normal;font-size-adjust:none;font-variant-east-asian:normal;line-height:normal;font-kerning:auto;font-stretch:normal;font-variant-numeric:normal;"> </p>
<p class="gmail-p1" style="margin:0px;font-variant-alternates:normal;font-feature-settings:normal;font-size-adjust:none;font-variant-east-asian:normal;line-height:normal;font-kerning:auto;font-stretch:normal;font-variant-numeric:normal;"><span style="color:#000000;font-family:arial, sans-serif;"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;">rm -rf configs/Spritz_LORENE/build/</span><span style="font-variant-ligatures:no-common-ligatures;">Kadath</span></span></p>
<p><span style="color:#000000;font-family:arial, sans-serif;">The code compiles fine, but when I try to run the executable with my parameter file, using the '-S' option, I get:</span></p>
<div class="gmail-contain-inline-size gmail-rounded-2xl gmail-relative gmail-bg-token-sidebar-surface-primary">
<div class="gmail-sticky gmail-top-9">
<div class="gmail-absolute end-0 gmail-bottom-0 gmail-flex gmail-h-9 gmail-items-center gmail-pe-2">
<div class="gmail-bg-token-bg-elevated-secondary gmail-text-token-text-secondary gmail-flex gmail-items-center gmail-gap-4 gmail-rounded-sm gmail-px-2 gmail-font-sans gmail-text-xs">
</div>
</div>
</div>
<div class="gmail-overflow-y-auto gmail-p-4" dir="ltr">
<span style="color:#000000;font-family:arial, sans-serif;"><code class="gmail-whitespace-pre!">Error: Thorn kadathimporter <span class="gmail-hljs-keyword">not</span> <span class="gmail-hljs-built_in">found</span> Error: Thorn kadaththorn <span class="gmail-hljs-keyword">not</span> <span class="gmail-hljs-built_in">found</span> Activation failed - <span class="gmail-hljs-number">2</span> errors <span class="gmail-hljs-keyword">in</span> activation <span class="gmail-hljs-keyword">sequence</span> </code></span>
</div>
</div>
<p><span style="color:#000000;font-family:arial, sans-serif;">The confusing part is that my <code>ActiveThorns</code> line in the <code>.par</code> file does not explicitly list <code>KadathThorn</code> or <code>KadathImporter</code>:</span></p>
<div class="gmail-contain-inline-size gmail-rounded-2xl gmail-relative gmail-bg-token-sidebar-surface-primary">
<div class="gmail-sticky gmail-top-9">
<div class="gmail-absolute end-0 gmail-bottom-0 gmail-flex gmail-h-9 gmail-items-center gmail-pe-2">
<div class="gmail-bg-token-bg-elevated-secondary gmail-text-token-text-secondary gmail-flex gmail-items-center gmail-gap-4 gmail-rounded-sm gmail-px-2 gmail-font-sans gmail-text-xs">
</div>
</div>
</div>
<div class="gmail-overflow-y-auto gmail-p-4" dir="ltr">
<span style="color:#000000;font-family:arial, sans-serif;"><code class="gmail-whitespace-pre! gmail-language-ccl">ActiveThorns = "volomnia bnstrackergen bnsanalysis pizzanumutils" </code></span>
</div>
</div>
<p><span style="color:#000000;font-family:arial, sans-serif;">Yet Spritz fails because those thorns are missing. From what I understand, some of the thorns I’m using (like <code>volomnia</code>, <code>bnstrackergen</code>, or <code>bnsanalysis</code>) depend on <code>KadathThorn</code> and <code>KadathImporter</code>, so they are indirectly required.</span></p>
<p><span style="color:#000000;font-family:arial, sans-serif;">The core problem:</span></p>
<p><span style="color:rgb(0,0,0);font-family:arial,sans-serif;">- I need to keep </span><code style="color:rgb(0,0,0);">KadathThorn</code><span style="color:rgb(0,0,0);font-family:arial,sans-serif;"> and </span><code style="color:rgb(0,0,0);">KadathImporter</code><span style="color:rgb(0,0,0);font-family:arial,sans-serif;"> active, since my parameter file requires them through dependencies.</span></p>
<p><span style="color:rgb(0,0,0);font-family:arial,sans-serif;">- But I also need them to link against my external Kadath (</span><code style="color:rgb(0,0,0);">~/fuka/lib/libkadath.a</code><span style="color:rgb(0,0,0);font-family:arial,sans-serif;">) so that the FUKA initial data is compatible.</span></p>
<p><span style="color:#000000;font-family:arial, sans-serif;">Would you have suggestions on the cleanest way to make the ET <code>KadathThorn</code> and <code>KadathImporter</code> use my external Kadath library? Is there a recommended workflow for this?</span></p>
<p><span style="color:rgb(0,0,0);font-family:arial,sans-serif;">Thanks in advance for your help!</span></p>
<p><span style="color:rgb(0,0,0);font-family:arial,sans-serif;">Bests,</span></p>
<p><span style="color:rgb(0,0,0);font-family:arial,sans-serif;">Fatemeh Nouri</span></p>
<p><br>
</p>
</div>
</div>
</blockquote>
<p><br><br><br>
</p>
</blockquote>
</div>
</body>
</html>