<html>#2857: Compiling CarpetX with OpenPMD
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Alejandra Gonzalez</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>submitted</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td>ET_2024_11</td></tr>
<tr><td style='text-align:right'>  Version:</td><td></td></tr>
<tr><td style='text-align:right'>     Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>major</td></tr>
<tr><td style='text-align:right'>Component:</td><td>EinsteinToolkit thorn</td></tr>
</table>

<p>Dear ETK developers,  </p>
<p>While attempting to compile CarpetX with the most recent version of ETK,<br>
everything seemed to go smoothly except when it<br>
tries to build the external library openPMD. Apparently the library<br>
tries to fetch a github repository during compilation, e.g.<br>
nlohmann_json, which is not possible to do on the cluster I'm trying<br>
to do it since it has no connection to the outside.  </p>
<p>Naturally, I downloaded the repository locally, sent it to my cluster<br>
manually and set the path on my cluster optionlist file<br>
<code>simfactory/mdb/optionlists/marenostrum5.cfg</code>:</p>
<p>openPMD_json_src = path/to/my/local/repo  </p>
<p>However during compilation it still attempts to clone the repo and I<br>
still fail to find the correct place to set this path. For this reason I compiled <br>
OpenPMD separately on my system and added the corresponding paths:</p>
<div class="codehilite"><pre><span></span><code><span>OPENPMD_DIR = /home/uib/uib416720/ETK2024/CarpetX/openPMD-api_build</span>
<span>OPENPMD_LIB_DIRS = /home/uib/uib416720/ETK2024/CarpetX/openPMD-api_build/lib</span>
<span>OPENPMD_INC_DIRS = /home/uib/uib416720/ETK2024/CarpetX/openPMD-api_build/openPMD-api/include</span>
<span>openPMD_SOURCE_DIR = /home/uib/uib416720/ETK2024/CarpetX/openPMD-api_build/openPMD-api</span>
</code></pre></div>

<p>to simfactory/mdb/optionlists/marenostrum5.cfg which I see during compilation that simfactory recognizes them:</p>
<div class="codehilite"><pre><span></span><code><span>Setting OPENPMD_DIR to '/home/uib/uib416720/ETK2024/CarpetX/openPMD-api_build'</span>
<span>  Setting OPENPMD_LIB_DIRS to '/home/uib/uib416720/ETK2024/CarpetX/openPMD-api_build/lib'</span>
<span>  Setting OPENPMD_INC_DIRS to '/home/uib/uib416720/ETK2024/CarpetX/openPMD-api_build/openPMD-api/include'</span>
<span>  Setting openPMD_SOURCE_DIR to '/home/uib/uib416720/ETK2024/CarpetX/openPMD-api_build/openPMD-api'</span>
<span>End of options from '/home/uib/uib416720/ETK2024/Carpet
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2857/compiling-carpetx-with-openpmd'>https://bitbucket.org/einsteintoolkit/tickets/issues/2857/compiling-carpetx-with-openpmd</a></p>
</html>