<html>#2946: CarpetX includes `<omp.h>` when OpenMP is not enabled
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Maxwell Rizzo</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>new</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></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>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td>CarpetX</td></tr>
</table>

<p>Two files, <code>CarpetX/src/driver.cxx</code> at <a data-is-external-link="true" href="https://github.com/EinsteinToolkit/CarpetX/blob/8883b4199b26f0f6bd41d41c0ba5b94d46e84b51/CarpetX/src/driver.cxx#L22" rel="nofollow">L22</a> and <code>.../boundaries.cxx</code> at <a data-is-external-link="true" href="https://github.com/EinsteinToolkit/CarpetX/blob/8883b4199b26f0f6bd41d41c0ba5b94d46e84b51/CarpetX/src/boundaries.cxx#L9" rel="nofollow">L9</a>, include <code><omp.h></code> without checking whether <code>_OPENMP</code> is defined, unlike other CarpetX files such as <code>CarpetX/src/schedule.cxx</code> at <a data-is-external-link="true" href="https://github.com/EinsteinToolkit/CarpetX/blob/8883b4199b26f0f6bd41d41c0ba5b94d46e84b51/CarpetX/src/schedule.cxx#L19" rel="nofollow">L19</a>. This always includes OpenMP when compiling CarpetX, which can cause compile time failure for systems that do not provide OpenMP, even with OpenMP disabled.</p>
<p>This bug was encountered when compiling CarpetX while OpenMP is not enabled with macOS Clang, which does not provide OpenMP by default.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2946/carpetx-includes-when-openmp-is-not'>https://bitbucket.org/einsteintoolkit/tickets/issues/2946/carpetx-includes-when-openmp-is-not</a></p>
</html>