<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)">
Thank you. Using the new function requires another argument, and I dont know which one. Hence, I think I will have to build OpenMPI with MPI1 compatibility. I am not sure how to do that. Should I download a openmpi1.10? Or are they another method?</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>
<div id="appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Tony Curtis <anthony.curtis@stonybrook.edu><br>
<b>Sent:</b> Friday, August 6, 2021 13:29<br>
<b>To:</b> BolañOs, Simon <sbolanos@UCSD.EDU><br>
<b>Cc:</b> flash-users@flash.uchicago.edu <flash-users@flash.uchicago.edu><br>
<b>Subject:</b> Re: [FLASH-USERS] Compiling issue due to MPI with LaserSlab example</font>
<div> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space"><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Aug 6, 2021, at 4:20 PM, BolañOs, Simon <<a href="mailto:sbolanos@UCSD.EDU" class="">sbolanos@UCSD.EDU</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
Hello,</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
I am trying to compile the LaserSlab example (2D) but I got the following error when compiling :</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<div class="" style="margin:0px; font-style:normal; font-variant-caps:normal; font-weight:normal; font-stretch:normal; font-size:18px; line-height:normal; font-family:"Courier New"; color:rgb(242,242,242); background-color:rgba(0,0,0,0.85)">
<span class="" 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></div>
<div class="" style="margin:0px; font-style:normal; font-variant-caps:normal; font-weight:normal; font-stretch:normal; font-size:18px; line-height:normal; font-family:"Courier New"; color:rgb(255,255,255); background-color:rgba(0,0,0,0.85)">
<span class="" style="font-variant-ligatures:no-common-ligatures"><b class="">io_set_grid_mpi_types.c:198:8:<span class="x_Apple-converted-space"> </span></b></span><span class="" style="font-variant-ligatures:no-common-ligatures; color:rgb(180,36,25)"><b class="">error:<span class="x_Apple-converted-space"> </span></b></span><span class="" style="font-variant-ligatures:no-common-ligatures"><b class="">expected
 expression</b></span></div>
<div class="" style="margin:0px; font-style:normal; font-variant-caps:normal; font-weight:normal; font-stretch:normal; font-size:18px; line-height:normal; font-family:"Courier New"; color:rgb(242,242,242); background-color:rgba(0,0,0,0.85)">
<span class="" style="font-variant-ligatures:no-common-ligatures"><span class="x_Apple-converted-space">       <span class="x_Apple-converted-space"> </span></span>err = MPI_Type_extent(varStencil,&printNewExtent);</span></div>
<div class="" style="margin:0px; font-style:normal; font-variant-caps:normal; font-weight:normal; font-stretch:normal; font-size:18px; line-height:normal; font-family:"Courier New"; color:rgb(47,180,29); background-color:rgba(0,0,0,0.85)">
<span class="" style="font-variant-ligatures:no-common-ligatures"><b class=""><span class="x_Apple-converted-space">             <span class="x_Apple-converted-space"> </span></span>^</b></span></div>
<div class="" style="margin:0px; font-style:normal; font-variant-caps:normal; font-weight:normal; font-stretch:normal; font-size:18px; line-height:normal; font-family:"Courier New"; color:rgb(242,242,242); background-color:rgba(0,0,0,0.85)">
<span class="" style="font-variant-ligatures:no-common-ligatures; color:rgb(255,255,255)"><b class="">/opt/homebrew/include/mpi.h:2865:31:<span class="x_Apple-converted-space"> </span></b></span><span class="" style="font-variant-ligatures:no-common-ligatures"><b class="">note:<span class="x_Apple-converted-space"> </span></b></span><span class="" style="font-variant-ligatures:no-common-ligatures">expanded
 from macro 'MPI_Type_extent'</span></div>
<div class="" style="margin:0px; font-style:normal; font-variant-caps:normal; font-weight:normal; font-stretch:normal; font-size:18px; line-height:normal; font-family:"Courier New"; color:rgb(242,242,242); background-color:rgba(0,0,0,0.85)">
<span class="" style="font-variant-ligatures:no-common-ligatures">#define MPI_Type_extent(...)<span class="x_Apple-converted-space"> <span class="x_Apple-converted-space"> </span></span>THIS_FUNCTION_WAS_REMOVED_IN_MPI30(MPI_Type_extent, MPI_Type_get_extent)</span></div>
<div class="" style="margin:0px; font-style:normal; font-variant-caps:normal; font-weight:normal; font-stretch:normal; font-size:18px; line-height:normal; font-family:"Courier New"; color:rgb(47,180,29); background-color:rgba(0,0,0,0.85)">
<span class="" style="font-variant-ligatures:no-common-ligatures"><b class=""><span class="x_Apple-converted-space">                             <span class="x_Apple-converted-space"> </span></span>^</b></span></div>
<div class="" style="margin:0px; font-style:normal; font-variant-caps:normal; font-weight:normal; font-stretch:normal; font-size:18px; line-height:normal; font-family:"Courier New"; color:rgb(242,242,242); background-color:rgba(0,0,0,0.85)">
<span class="" style="font-variant-ligatures:no-common-ligatures; color:rgb(255,255,255)"><b class="">/opt/homebrew/include/mpi.h:327:59:<span class="x_Apple-converted-space"> </span></b></span><span class="" style="font-variant-ligatures:no-common-ligatures"><b class="">note:<span class="x_Apple-converted-space"> </span></b></span><span class="" style="font-variant-ligatures:no-common-ligatures">expanded
 from macro 'THIS_FUNCTION_WAS_REMOVED_IN_MPI30'</span></div>
<div class="" style="margin:0px; font-style:normal; font-variant-caps:normal; font-weight:normal; font-stretch:normal; font-size:18px; line-height:normal; font-family:"Courier New"; color:rgb(242,242,242); background-color:rgba(0,0,0,0.85)">
<span class="" 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="x_Apple-converted-space"> <span class="x_Apple-converted-space"> </span></span>Use
 " #newfunc " instead.")</span></div>
<br class="">
</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
It seems a MPI function has been deprecated. Do you know how to circumvent such an issue? </div>
</div>
</blockquote>
<br class="">
</div>
<div>The output above explains how to rename the routine (the middle line @ 2865).  Also, e.g. Open-MPI can be built with MPI1 compatibility if you want to go that kind of route.</div>
<div><br class="">
</div>
Tony
<div class=""><br class="">
</div>
</div>
</body>
</html>