<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Zhang,</div><div><span style="font-family:SimSun"><br></span></div><div>The fortran compiler is set by FCOMP in Makefile.h. For example, I have <br></div><div>FCOMP   = ${MPI_HOME}/bin/mpifort<br></div><div><br></div><div>and earlier I set MPI_HOME = /usr/local</div><div><br></div><div>Note that the mpi* compilers are really just wrappers of ifort or gfortran. For example, I have:</div><div><br></div><div>[rjfarber@cepheus ~]$ /usr/local/bin/mpifort -v<br>ifort version 15.0.3<br></div><div><br></div><div>[rjfarber@cepheus ~]$ /usr/local/bin/mpif90 -v<br>ifort version 15.0.3<br></div><div><br></div><div>Note that ifort is intel's fortran compiler which should be best if you have intel cores in your machine.<br></div><div>If you want to use gfortran, then you'll have to modify your MPI build, I think. I did that a while ago to switch from gfotran to intel, and I don't remember how it works exactly. Stackoverflow likely has some useful info, though.<br></div><div><br></div><div>Best,<br></div><div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">--------<div>Ryan</div></div></div></div></div></div></div><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 15, 2019 at 8:41 AM zdy0903 <<a href="mailto:zdy0903@stu.xjtu.edu.cn">zdy0903@stu.xjtu.edu.cn</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p>
        <span style="font-family:SimSun">Hi <span style="font-family:SimSun;white-space:normal">Ryan</span></span>
</p>
<p>
        <span style="font-family:SimSun"> Thanks for your reply! I think maybe I find the cause of this. But I don't know how to solve it. There is an intel complier ifortran being installed in the CentOS before. And I install the gfortran which is necessary for excuting make. However, it automaticly use ifortran rather than gfortran when excuting make process, which comes out the warnings like</span>
</p>
<p>
        <span style="font-family:SimSun"><strong>ifort: command line warning #10006: ignoring unknown option '-fdefault-real-8'</strong><br>
<strong>ifort: command line warning #10006: ignoring unknown option '-fdefault-double-8'</strong><br>
<strong>ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type</strong><br>
<strong>/usr/local/mpich2//bin/mpif90 -ggdb -c -O2 -fdefault-real-8 -fdefault-double-8 -Wuninitialized  -DMAXBLOCKS=1000 -DNXB=8 -DNYB=8 -DNZB=1 -DN_DIM=2 tmr_create.F90</strong></span>
</p>
<p>
        <span style="font-family:SimSun">  Usually, which complier is applied is set in the Makefile.h. Do you know how to set gfortran in Makefile.h? Or, do you have any other suggestions? Thank you very much!</span>
</p>
<p>
        <span style="font-family:SimSun"><br>
</span>
</p>
<p>
        <span style="font-family:SimSun">Your</span>
</p>
<p>
        <span style="font-family:SimSun">Zhang</span>
</p>
<p>
        <span style="font-family:SimSun">
        </span></p><div>
                <br>
        </div>
<br>

<p></p>
<span style="font-family:SimSun"></span><br>
<br>
<blockquote name="replyContent" class="gmail-m_-871426050065712208ReferenceQuote" style="padding-left:5px;margin-left:5px;border-left:2px solid rgb(182,182,182);margin-right:0px">
        -----原始邮件-----<br>
<b>发件人:</b><span id="gmail-m_-871426050065712208rc_from">"Ryan Farber" <<a href="mailto:rjfarber@umich.edu" target="_blank">rjfarber@umich.edu</a>></span><br>
<b>发送时间:</b><span id="gmail-m_-871426050065712208rc_senttime">2019-05-13 23:46:26 (星期一)</span><br>
<b>收件人:</b> zdy0903 <<a href="mailto:zdy0903@stu.xjtu.edu.cn" target="_blank">zdy0903@stu.xjtu.edu.cn</a>><br>
<b>抄送:</b> flash-users <<a href="mailto:flash-users@flash.uchicago.edu" target="_blank">flash-users@flash.uchicago.edu</a>><br>
<b>主题:</b> Re: [FLASH-USERS] How to install FLASH4.6 in centOS<br>
<br>
        <div dir="ltr">
                <div>
                        Hi Zhang,
                </div>
                <div>
                        <br>
                </div>
                <div>
                        It sounds like there is an issue with the Makefile.h in your /...path_to_flash/sites/your_hostname/Makefile.h file. (Though, if you haven't created a directory in sites matching your hostname then it'll use the Makefile.h in sites/Prototypes/Linux/ (unless that has changed between 4.2.2 and 4.6)).
                </div>
                <div>
                        <br>
                </div>
                <div>
                        Have you updated the Makefile.h with the new paths for mpich, hdf5, etc It sounds like you have since it compiled successfully.
                </div>
                <div>
                        The warnings suggest you may have forgotten to modify FFLAGS_OPT. I'm not intimately familiar with compiler options, but I use -r8 to make fortran reals default to double precision.
                </div>
                <div>
                        <br>
                </div>
                <div>
                        I haven't seen your runtime error before, but think it would be a good idea for you to look over your Makefile.h (double check MPI_PATH or MPI_HOME (whichever is used later on), HDF5_PATH and so on are correct for the system, double check FCOMP, COMP, CPPCOMP, LINK have correct paths for the system, and that FFLAGS_OPT (or FFLAGS_DEBUG if you're using '-debug' setup option) and CFLAGS_OPT have the desired compiler options.
                </div>
                <div>
                        <br>
                </div>
                <div>
                        Best,<br>
                </div>
                <div>
                        <div>
                                <div dir="ltr" class="gmail-m_-871426050065712208m_476938929680454139gmail_signature">
                                        <div dir="ltr">
                                                <div>
                                                        <div dir="ltr">
                                                                <div dir="ltr">
                                                                        --------
                                                                        <div>
                                                                                <span style="font-family:SimSun">Ryan</span>
                                                                        </div>
                                                                </div>
                                                        </div>
                                                </div>
                                        </div>
                                </div>
                        </div>
<br>
                </div>
        </div>
<br>
        <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">
                        On Mon, May 13, 2019 at 10:08 AM zdy0903 <<a href="mailto:zdy0903@stu.xjtu.edu.cn" target="_blank">zdy0903@stu.xjtu.edu.cn</a>> wrote:<br>
                </div>
                <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                        <span style="font-family:SimSun"></span><span style="font-family:SimSun"> 
                        <p>
                                <span>Hi!</span> 
                        </p>
                        <p>
                                <span> </span> 
                        </p>
                        <p>
                                <span><span> 
Recently, we want to install FLASH4.6 and related application like
mpich, HDF5, Hypre in centOS system. Before, we have successfully install it on
Ubuntu system. However, after all the intallation, we meet several problems.</span></span> 
                        </p>
                        <p>
                                <span> </span> 
                        </p>
                        <p>
                                <span><span> 
Firstly, when excuting "make" process, we meet a warning like: </span></span> 
                        </p>
                        <p>
                                <i><span>warning
#10006: ignoring unknown option '-fdefault-real-8'</span></i> 
                        </p>
                        <p>
                                <i><span>warning
#10006: ignoring unknown option '-fdefault-double-8'</span></i> 
                        </p>
                        <p>
                                <i><span>warning
#10157: ignoring option '-W'; argument is of wrong type </span></i> 
                        </p>
                        <p>
                                <span> </span> 
                        </p>
                        <p>
                                <span><span>  This
is not shown on the installation process for ubuntu system. However, it can
still “make” sucessfully. But when we excute mpich -np 2 ./flash4, there is
problem like: </span></span> 
                        </p>
                        <p>
                                <i><span>./flash4:
symbol lookup error: ./flash4: undefined symbol: for__pthread_mutex_unlock_ptr</span></i> 
                        </p>
                        <p>
                                <i><span>./flash4:
symbol lookup error: ./flash4: undefined symbol: for__pthread_mutex_unlock_ptr </span></i> 
                        </p>
                        <p>
                                <span> </span> 
                        </p>
                        <p>
                                <span><span>  And
the process stop immediately.</span></span> 
                        </p>
                        <p>
                                <span> </span> 
                        </p>
                        <p>
                                <span><span>  we
use CentOS 6.1, mpich3.3 hypre-2.11.1 hdf5-1.8.17. Do you know how to solve
this problem?</span></span> 
                        </p>
                        <p>
                                <span> </span> 
                        </p>
                        <p>
                                <span><span> 
Thank you very much!</span></span> 
                        </p>
                        <p>
                                <span> </span> 
                        </p>
                        <p>
                                <span> </span> 
                        </p>
                        <p>
                                <span> </span> 
                        </p>
                        <p>
                                <span>Yours</span> 
                        </p>
                        <p>
                                <span> </span> 
                        </p>
                        <p>
                                <span>Zhang</span> 
                        </p>
</span><br>
                </blockquote>
        </div>
</blockquote></blockquote></div>