<div dir="ltr">Thank you very much for the help! <div>The problem is solved now.</div><div><br></div><div>Best regards,</div><div>Fatemeh</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, Sep 5, 2025 at 8:21 AM Samuel Tootle <<a href="mailto:tootle@itp.uni-frankfurt.de">tootle@itp.uni-frankfurt.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
 
  
 
 <div>
  <span dir="ltr" style="margin-top:0px;margin-bottom:0px">Hi Fatemeh,</span>
  <br>
  <br><span dir="ltr" style="margin-top:0px;margin-bottom:0px">In addition to Konrad's correct notes, I want to addresd the build issues:</span>
  <br>
  <br>
  <blockquote style="border-left:3px solid rgb(204,204,204);padding-left:10px;margin:0px">
   <span dir="ltr" style="margin-top:0px;margin-bottom:0px">"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:0px;margin-bottom:0px">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:0px;margin-bottom:0px">KADATH_DIR = $(HOME)/fuka</span>
   <br>
   <br><span dir="ltr" style="margin-top:0px;margin-bottom:0px">KADATH_INC_DIRS = $(KADATH_DIR)/include</span>
   <br><span dir="ltr" style="margin-top:0px;margin-bottom:0px"> </span>
   <br>
   <br><span dir="ltr" style="margin-top:0px;margin-bottom:0px">KADATH_LIB_DIRS = $(KADATH_DIR)/lib"</span>
   <br>
  </blockquote>
  <br>
  <br><span dir="ltr" style="margin-top:0px;margin-bottom:0px">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:0px;margin-bottom:0px">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:0px;margin-bottom:0px">All the best,</span>
  <br><span dir="ltr" style="margin-top:0px;margin-bottom:0px">Samuel</span>
  <br>
  <div>
   <span dir="ltr" style="margin-top:0px;margin-bottom:0px">Volunteer Physicist </span>
   <br>
  </div>
  <div>
   <div dir="ltr">
    <p>Sep 5, 2025 08:04:51 Konrad Topolski <<a href="mailto:topolski@itp.uni-frankfurt.de" target="_blank">topolski@itp.uni-frankfurt.de</a>>:</p>
   </div>
   <blockquote style="margin:0px;border-left:3px solid rgb(204,204,204);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 <<a href="mailto:f.h.noori@gmail.com" target="_blank">f.h.noori@gmail.com</a>> napisał(a):<br><br>
       </p>
    <blockquote type="cite" cite="http://CAEFxYT7f2=GXYuESMV+-40KLiRzCXqpHGbX2+D+kCshcSdkAHg@mail.gmail.com">
     <div dir="ltr">
      <p><span style="color:rgb(0,0,0);font-family:arial,sans-serif">Hi all, </span></p>
      <div>
       <p><span style="color:rgb(0,0,0);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:rgb(0,0,0);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:rgb(0,0,0);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:rgb(0,0,0);font-family:arial,sans-serif">KADATH_DIR = $(HOME)/fuka</span></p>
       <p 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:rgb(0,0,0);font-family:arial,sans-serif"><span style="font-variant-ligatures:no-common-ligatures">KADATH_INC_DIRS</span><span style="font-variant-ligatures:no-common-ligatures"> = $(KADATH_DIR)/include</span></span></p>
       <p> </p>
       <p 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:rgb(0,0,0);font-family:arial,sans-serif"><span style="font-variant-ligatures:no-common-ligatures">KADATH_LIB_DIRS</span><span style="font-variant-ligatures:no-common-ligatures"> = </span><span style="font-variant-ligatures:no-common-ligatures">$(KADATH_DIR)/lib</span></span></p>
       <p 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 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:rgb(0,0,0);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 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 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:rgb(0,0,0);font-family:arial,sans-serif"><span style="font-variant-ligatures:no-common-ligatures">Then I removed the old Kadath:</span></span></p>
       <p 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 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 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:rgb(0,0,0);font-family:arial,sans-serif"><span 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:rgb(0,0,0);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>
        <div>
         <div>
          <div>
            
          </div>
         </div>
        </div>
        <div dir="ltr">
         <span style="color:rgb(0,0,0);font-family:arial,sans-serif"><code>Error: Thorn kadathimporter <span>not</span> <span>found</span> Error: Thorn kadaththorn <span>not</span> <span>found</span> Activation failed - <span>2</span> errors <span>in</span> activation <span>sequence</span> </code></span>
        </div>
       </div>
       <p><span style="color:rgb(0,0,0);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>
        <div>
         <div>
          <div>
            
          </div>
         </div>
        </div>
        <div dir="ltr">
         <span style="color:rgb(0,0,0);font-family:arial,sans-serif"><code>ActiveThorns = "volomnia bnstrackergen bnsanalysis pizzanumutils" </code></span>
        </div>
       </div>
       <p><span style="color:rgb(0,0,0);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:rgb(0,0,0);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:rgb(0,0,0);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>
 </div>
</blockquote></div>