<p>I suggest adding an inquire statement to see what are the properties of the files, e.g. record length etc. this may lead nowhere but might if OSX had some unusual file defaults in fortran. Maybe also search the ifort/OSX lists for hints. I suspect a compiler/OS bug which may have no better fix than what you have done.</p>

<div class="gmail_quote">On Dec 20, 2012 9:35 PM, &quot;Zhu, Jianxin&quot; &lt;<a href="mailto:jxzhu@lanl.gov">jxzhu@lanl.gov</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>
<div>
<div>Gavin, </div>
<div><br>
</div>
<div>I did that and the problem remains. </div>
<div>So at the moment, I will stay with by adding a simple writing statement in the lapwso.f file. </div>
<div><br>
</div>
<div>Thanks, </div>
<div><br>
</div>
<div>Jianxin </div>
<div><br>
</div>
</div>
</div>
<div><br>
</div>
<span>
<div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none">

<span style="font-weight:bold">From: </span>Gavin Abo &lt;<a href="mailto:gsabo@crimson.ua.edu" target="_blank">gsabo@crimson.ua.edu</a>&gt;<br>
<span style="font-weight:bold">Reply-To: </span>A Mailing list for WIEN2k users &lt;<a href="mailto:wien@zeus.theochem.tuwien.ac.at" target="_blank">wien@zeus.theochem.tuwien.ac.at</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Thu, 20 Dec 2012 11:54:37 -0700<br>
<span style="font-weight:bold">To: </span>A Mailing list for WIEN2k users &lt;<a href="mailto:wien@zeus.theochem.tuwien.ac.at" target="_blank">wien@zeus.theochem.tuwien.ac.at</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>Re: [Wien] Some interesting observation with &quot;runsp_lapw -so -orb&quot;on Mac OSX<br>
</div>
<div><br>
</div>
<blockquote style="BORDER-LEFT:#b5c4df 5 solid;PADDING:0 0 0 5;MARGIN:0 0 0 5">
<div>
<div text="#000000" bgcolor="#FFFFFF">
<div>Yes, FPOPT is for mpi parallel not serial.<br>
<br>
For serial, you need for fftw3:<br>
<br>
O   Compiler options:        -free -mp1 -prec-div -pc80 -pad -align -traceback -DFFTW3<br>
R   R_LIB (LAPACK+BLAS):     -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -L/opt/local/fftw3/lib/ -lfftw3<br>
<br>
This requires that you download (



 
<a href="http://fftw.org/download.html" target="_blank">http://fftw.org/download.html</a>)
 and install fftw3.3.3 at /opt/local/fftw3/.  Alternatively, you could use the mkl-fftw3 library.  For that, refer to the Wien2k user guide &quot;11.1.1 Installation tips for mpich and fftw (either version 2.1.5 or 3.3&quot;.<br>

<br>
On 12/20/2012 11:41 AM, Zhu, Jianxin wrote:<br>
</div>
<blockquote type="cite">
<pre>Gavin, 

Yes. I am using serial mode for my Mac machines.

This is what I have in the siteconfig_lapw procedure ---



....
Recommended options for system linuxif111 are:
     Compiler options:        -FR -mp1 -w -prec_div -pc80 -pad -ip
-DINTEL_VML -traceback
     Linker Flags:            $(FOPT)
-L/opt/intel/Compiler/11.1/046/mkl/lib/em64t -pthread
     Preprocessor flags:      &#39;-DParallel&#39;
     R_LIB (LAPACK+BLAS):     -lmkl_lapack -lmkl_intel_lp64
-lmkl_intel_thread -lmkl_core -openmp -lpthread -lguide

Current settings:
 O   Compiler options:        -free -mp1 -prec-div -pc80 -pad -align
-traceback
 L   Linker Flags:            $(FOPT) -L/opt/intel/Composer/mkl/lib
 P   Preprocessor flags       &#39;-DParallel&#39;
 R   R_LIB (LAPACK+BLAS):     -lmkl_intel_lp64 -lmkl_intel_thread
-lmkl_core -liomp5 -lpthread

 S   Save and Quit
 Q   Quit abandon changes

     To change an item select option.

Selection: 





Do you mean I have to put in -DFFTW3 explicitly?

In the OPTIONS file, I do see

current:FPOPT:-FR -mp1 -w -prec_div -pc80 -pad -ip -DINTEL_VML -traceback
-DFFTW3

But that&#39;s for MPI running, right?



If I look at the recommended options (as copied/pasted above), there is no
-DFFTW3 there.

Maybe I haven&#39;t understand your point correctly?

Do you want me to put -DFFTW3 explicitly behind the option FOPT lineso
that it changes from


-free -mp1 -prec-div -pc80 -pad -align -traceback


to 

-free -mp1 -prec-div -pc80 -pad -align -traceback -DFFTW3


?


Thanks, 

Jianxin
</pre>
</blockquote>
<br>
</div>
</div>
_______________________________________________ Wien mailing list <a href="mailto:Wien@zeus.theochem.tuwien.ac.at" target="_blank">
Wien@zeus.theochem.tuwien.ac.at</a> <a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" target="_blank">
http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a> </blockquote>
</span>
</div>

</blockquote></div>