<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I am trying to compile the LaserSlab example (2D) but I got the following error when compiling :</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:18.0px 'Courier New';color:#f2f2f2;background-color:rgba(0, 0, 0, 0.85)">
<span style="font-variant-ligatures:no-common-ligatures">/src/hypre/include -ggdb -c -O2 -Wuninitialized -D_FORTIFY_SOURCE=2 -Wno-error=implicit-function-declaration -DFLASH_3T -DMAXBLOCKS=1000 -DNXB=16 -DNYB=16 -DNZB=1 -DN_DIM=2 -DDarwin io_set_grid_mpi_types.c</span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:18.0px 'Courier New';color:#ffffff;background-color:rgba(0, 0, 0, 0.85)">
<span style="font-variant-ligatures:no-common-ligatures"><b>io_set_grid_mpi_types.c:198:8:
</b></span><span style="font-variant-ligatures:no-common-ligatures;color:#b42419"><b>error:
</b></span><span style="font-variant-ligatures:no-common-ligatures"><b>expected expression</b></span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:18.0px 'Courier New';color:#f2f2f2;background-color:rgba(0, 0, 0, 0.85)">
<span style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">       
</span>err = MPI_Type_extent(varStencil,&printNewExtent);</span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:18.0px 'Courier New';color:#2fb41d;background-color:rgba(0, 0, 0, 0.85)">
<span style="font-variant-ligatures:no-common-ligatures"><b><span class="Apple-converted-space">             
</span>^</b></span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:18.0px 'Courier New';color:#f2f2f2;background-color:rgba(0, 0, 0, 0.85)">
<span style="font-variant-ligatures:no-common-ligatures;color:#ffffff"><b>/opt/homebrew/include/mpi.h:2865:31:
</b></span><span style="font-variant-ligatures:no-common-ligatures;color:#000000"><b>note:
</b></span><span style="font-variant-ligatures:no-common-ligatures">expanded from macro 'MPI_Type_extent'</span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:18.0px 'Courier New';color:#f2f2f2;background-color:rgba(0, 0, 0, 0.85)">
<span style="font-variant-ligatures:no-common-ligatures">#define MPI_Type_extent(...)<span class="Apple-converted-space"> 
</span>THIS_FUNCTION_WAS_REMOVED_IN_MPI30(MPI_Type_extent, MPI_Type_get_extent)</span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:18.0px 'Courier New';color:#2fb41d;background-color:rgba(0, 0, 0, 0.85)">
<span style="font-variant-ligatures:no-common-ligatures"><b><span class="Apple-converted-space">                             
</span>^</b></span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:18.0px 'Courier New';color:#f2f2f2;background-color:rgba(0, 0, 0, 0.85)">
<span style="font-variant-ligatures:no-common-ligatures;color:#ffffff"><b>/opt/homebrew/include/mpi.h:327:59:
</b></span><span style="font-variant-ligatures:no-common-ligatures;color:#000000"><b>note:
</b></span><span style="font-variant-ligatures:no-common-ligatures">expanded from macro 'THIS_FUNCTION_WAS_REMOVED_IN_MPI30'</span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:18.0px 'Courier New';color:#f2f2f2;background-color:rgba(0, 0, 0, 0.85)">
<span style="font-variant-ligatures:no-common-ligatures">#define THIS_FUNCTION_WAS_REMOVED_IN_MPI30(func, newfunc) _Static_assert(0, #func " was removed in MPI-3.0.<span class="Apple-converted-space"> 
</span>Use " #newfunc " instead.")</span></p>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
It seems a MPI function has been deprecated. Do you know how to circumvent such an issue? </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Cheers,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
SImon,</div>
</body>
</html>