Here's an example:<font size="4"><br></font><div class="post-text"><font size="4">
        </font><pre class="lang-c prettyprint prettyprinted"><font size="4"><code><span class="com">#include</span><span class="pln"> </span><span class="str"><mpi.h></span><span class="pln">
</span><span class="kwd">double</span><span class="pln"> f</span><span class="pun">()</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
    </span><span class="kwd">double</span><span class="pln"> timer </span><span class="pun">=</span><span class="pln"> MPI_Wtime</span><span class="pun">();</span><span class="pln">
    </span><span class="kwd">return</span><span class="pln"> timer</span><span class="pun">;</span><span class="pln">
</span><span class="pun">}</span></code></font></pre>

<p>What I am searching for is some set of mock MPI functions, so I can <font size="4"><code>#include <mpi_mocks.h></code></font> instead of mpi.h and get it compiled without linking to MPI library. It could also be something like <font size="4"><code>#define MOCK</code></font> which will trigger this behavior in mpi.h. It feels, like I've stumbled on something like this, but I cannot find it right now.</p>

</div><br>