<div dir="ltr"><div>This is the whole list of opts.</div><div><br></div><div>> ftn --cray-print-opts=all</div><div>-I/opt/cray/pe/libsci/17.06.1/INTEL/16.0/x86_64/include -I/opt/cray/pe/mpt/7.6.0/gni/mpich-intel/16.0/include -I/opt/cray/rca/2.2.15-6.0.4.1_13.1__g46acb0f.ari/include -I/opt/cray/alps/6.4.1-6.0.4.0_7.2__g86d0f3d.ari/include -I/opt/cray/xpmem/2.2.2-6.0.4.0_3.1__g43b0535.ari/include -I/opt/cray/gni-headers/5.0.11-6.0.4.0_7.2__g7136988.ari/include -I/opt/cray/pe/pmi/5.0.12/include -I/opt/cray/ugni/6.0.14-6.0.4.0_14.1__ge7db4a2.ari/include -I/opt/cray/udreg/2.3.2-6.0.4.0_12.2__g2f9c3ee.ari/include -I/opt/cray/wlm_detect/1.2.1-6.0.4.0_22.1__gd26a3dc.ari/include -I/opt/cray/krca/2.2.2-6.0.4.0_5.2__g4614cf3.ari/include -I/opt/cray-hss-devel/8.0.0/include -L/opt/cray/pe/libsci/17.06.1/INTEL/16.0/x86_64/lib -L/opt/cray/dmapp/default/lib64 -L/opt/cray/pe/mpt/7.6.0/gni/mpich-intel/16.0/lib -L/opt/cray/dmapp/default/lib64 -L/opt/cray/pe/mpt/7.6.0/gni/mpich-intel/16.0/lib -L/usr/common/software/darshan/3.1.4/lib -L/opt/cray/rca/2.2.15-6.0.4.1_13.1__g46acb0f.ari/lib64 -L/opt/cray/alps/6.4.1-6.0.4.0_7.2__g86d0f3d.ari/lib64 -L/opt/cray/xpmem/2.2.2-6.0.4.0_3.1__g43b0535.ari/lib64 -L/opt/cray/pe/pmi/5.0.12/lib64 -L/opt/cray/ugni/6.0.14-6.0.4.0_14.1__ge7db4a2.ari/lib64 -L/opt/cray/udreg/2.3.2-6.0.4.0_12.2__g2f9c3ee.ari/lib64 -L/opt/cray/pe/atp/2.1.1/libApp -L/lib64 -L/opt/cray/wlm_detect/1.2.1-6.0.4.0_22.1__gd26a3dc.ari/lib64 -Wl,@/usr/common/software/darshan/3.1.4/share/ld-opts/darshan-base-ld-opts -lfmpich -lmpichcxx -Wl,--start-group -ldarshan -ldarshan-stubs -Wl,--end-group -lz -Wl,--no-as-needed,-lAtpSigHandler,-lAtpSigHCommData -Wl,--undefined=_ATP_Data_Globals -Wl,--undefined=__atpHandlerInstall -lpthread -lmpichf90_intel -lrt -lugni -lpmi -lm -lpthread -ldl -lsci_intel_mpi -lsci_intel -lm -ldl -lmpich_intel -lrt -lugni -lpthread -lpmi -lm -ldl -lpmi -lpthread -lalpslli -lpthread -lwlm_detect -lalpsutil -lpthread -lrca -lxpmem -lugni -lpthread -ludreg -lsci_intel -lm -lpthread -ldl -lhugetlbfs</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 10, 2017 at 1:58 PM, Klaus Weide <span dir="ltr"><<a href="mailto:klaus@flash.uchicago.edu" target="_blank">klaus@flash.uchicago.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, 9 Nov 2017, Yingchao Lu wrote:<br>
<br>
> Using ftn compiler on cori, segmentation fault is encountered and<br>
> backtracked to the subroutine in hy_memReleaseBlkPtr.F90.<br>
><br>
</span>....<br>
<span class="">><br>
> I solved it by using -DPOINTER_INTENT_OUT=pointer. Does this cause problems<br>
> for any other part of the code?<br>
<br>
</span>Hi Yingchao,<br>
<br>
You solution is a good one. It should not cause any problems with either<br>
the current or near-future versions of the code.<br>
<br>
The header file "FortranLangFeatures.fh" (included already in releases<br>
since FLASH 4.2 or so) is used to enable or disable use of a couple of<br>
compiler features that were introduced officially in Fortran 2003 or 2008,<br>
but are also implemented by many compilers that don't fully support those<br>
standards. These features, including using INTENT(OUT) on POINTER variable<br>
declaration, can help a compiler in making optimization decisions, and can<br>
help eliminate code errors. None of them are needed for code correctness.<br>
<br>
If you can come up with a preprocessor test for detecting your compiler<br>
that has problems with "POINTER,INTENT(OUT)", along the lines of the tests<br>
already in Simulation/<wbr>FortranLangFeatures.fh, you should add it there;<br>
and I would appreciate a copy so we can make it available in the next code<br>
release!<br>
<span class="HOEnZb"><font color="#888888"><br>
Klaus<br>
</font></span></blockquote></div><br></div>