<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.emailquote, li.emailquote, div.emailquote
        {mso-style-name:emailquote;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:1.0pt;
        border:none;
        padding:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello Kurt.<o:p></o:p></p>
<p class="MsoNormal">I am not an expert in Flash.<o:p></o:p></p>
<p class="MsoNormal">As Xingfu has said this is a problem related to the environment setup with mpich<o:p></o:p></p>
<p class="MsoNormal">Specifically it will be the INCLUDEDIR<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But first have a look here:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><a href="https://fedora.pkgs.org/30/fedora-x86_64/mpich-3.2.1-9.fc30.i686.rpm.html"><span style="color:blue">https://fedora.pkgs.org/30/fedora-x86_64/mpich-3.2.1-9.fc30.i686.rpm.html</span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#212529">This build also include support for using the 'module environment' to select<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#212529">which MPI implementation to use when multiple implementations are installed.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#212529">If you want MPICH support to be automatically loaded, you need to install the<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#212529">mpich-autoload package.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I would learn about using the Modules environment.<o:p></o:p></p>
<p class="MsoNormal">All you have to do to set up the environment correctly if you use modules is<o:p></o:p></p>
<p class="MsoNormal">module load mpich<o:p></o:p></p>
<p class="MsoNormal">make<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Actually that README does say that if you install mpich-autoload you will get it loaded automatically.<o:p></o:p></p>
<p class="MsoNormal">I would still use Modules though as it gives you flexibility to use different MPI implementations<o:p></o:p></p>
<p class="MsoNormal"><a href="https://pkgs.org/download/environment(modules)"><span style="color:blue">https://pkgs.org/download/environment(modules)</span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Let me know if I can be of help with getting Modules installed.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In Redhat derived distros, and I think on Debian also, there is an ‘mpi-selector’ tool which I used<o:p></o:p></p>
<p class="MsoNormal">to swap between the installed MPIs. I would still use Modules though.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>From:</b> flash-users-bounces@flash.uchicago.edu <flash-users-bounces@flash.uchicago.edu>
<b>On Behalf Of </b>Kurt Williams<br>
<b>Sent:</b> 01 June 2020 14:17<br>
<b>To:</b> flash-users@flash.uchicago.edu<br>
<b>Subject:</b> [FLASH-USERS] gfortran and mpif.h<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p><span style="color:#CE1126">[EXTERNAL EMAIL] <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">Hello all,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Thank you in advance for your assistance – and apologies in if this has been answered before.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I’ve been having trouble configuring FLASH for my first use. I’m using the latest (stable) Fedora build and have installed mpich, hdf5, NetCDF and the GCC using the yum installer.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I have attempted to run the Sedov code as described in the documentation, but am having trouble when trying to make it. Apparently I’m missing a mpif.h file. Specifically I am getting the error:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>$ make</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>rm -f reorder.sh</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>/usr/lib64/mpich/gfortran -ggdb -c -O2 -fdefault-real-8 -fdefault-double-8 -Wuninitialized  -DMAXBLOCKS=1000 -DNXB=8 -DNYB=8 -DNZB=1 -DN_DIM=2 local_tree.F90</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>local_tree.F90:185: Error: Can't open included file 'mpif.h'</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>make: *** [Makefile:116: local_tree.mod] Error 1</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Times New Roman",serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Trying to use “rpm –ql mpich” to find all the mpi files has turned up nothing referencing mpif.h or mpif90, and swapping gfortran for mpif90 in the makefile doesn’t seem to fix it, either.<br>
<br>
I have attached my makefile as a txt, in case it could shed light on the issue.<br>
<br>
If anyone has any advice, I’d be extremely appreciative.<br>
<br>
Thank you, <br>
Kurt<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Times New Roman",serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Times New Roman",serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Times New Roman",serif"> </span><o:p></o:p></p>
</div>
</div>
</body>
</html>