<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1429157642810_29443">Thank you for your reply. As you say, I have tried to chang the mixer.F (backspace instead of write) , but it did not work. <br><span style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 14px; line-height: 23px;" class="" id="yui_3_16_0_1_1429157642810_31174"> At line 968 of file mixer.F :</span></div><div dir="ltr" id="yui_3_16_0_1_1429157642810_29443"><span style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: 14px; line-height: 23px;" class="" id="yui_3_16_0_1_1429157642810_31368"> write(22,*)':WARNING:K-list has changed'</span><br></div><div dir="ltr" id="yui_3_16_0_1_1429157642810_29443"><br></div> <div dir="ltr" id="yui_3_16_0_1_1429157642810_29443" class="" style=""> </div><br><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Thursday, April 16, 2015 2:19 PM, 李志 <zhili@hfut.edu.cn> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv6842007698"><div><div>Dear Jiayi, </div><div>Please refer to the response from Prof. Blaha below.</div><div>The treatment is same to all I/O errors because of gfortran.</div><div>Also, you may note that compiled wien2k by gfortran is very slow.</div><div>All the best,</div><div>Zhi Li</div><div> #######################################################################</div><div>Please add to line 30 an "ERR=999" statement:<br clear="none"><br clear="none"> READ(nfile,err=999,end=999) <br clear="none">SS_dn(1),SS_dn(2),SS_dn(3),BNAME_dn,NV_dn,NE_dn,WEIGHT_dn<br clear="none"><br clear="none">and let me know if this fixes the problem for gfortran.<br clear="none"><br clear="none">Thanks<br clear="none"><br clear="none">On 12/09/2014 10:18 AM, 李志 wrote:<br clear="none">> Dear All,<br clear="none">> Do you have any experience with Wien2k compiled by gfortran 4.8?<br clear="none">> The compilation finished without error. However, when I do a test, the<br clear="none">> calculation stops with prompt:<br clear="none">><br clear="none">> "At line 30 of file kptin_nv.F<br clear="none">> Fortran runtime error: Sequential READ or WRITE not allowed after EOF<br clear="none">> marker, possibly use REWIND or BACKSPACE"<br clear="none">><br clear="none">> It seems the gfortran 4.8 can't interpret the I/O command in kptin_nv.F<br clear="none">> correctly. I also recompiled with -fno-whole-file option. Unfortunately,<br clear="none">> the problem still appears.<br clear="none">> I attach part of kptin_nv.F here. Anyone can help to resolve this<br clear="none">> problem?<br clear="none">><br clear="none">> 1 SUBROUTINE<br clear="none">> KPTIN_nv(NV_up,NV_dn,ende,BNAME_up,BNAME_dn,WEIGHT_up,WEIGHT_dn,SS_up,SS_dn,NE_up,NE_dn)<br clear="none">> 2<br clear="none">> 3 USE param<br clear="none">> 4 USE parallel<br clear="none">> 5<br clear="none">> 6 IMPLICIT REAL*8(A-H,O-Z)<br clear="none">> 7<br clear="none">> 8 #ifdef Parallel<br clear="none">> 9 include 'mpif.h'<br clear="none">> 10 #endif<br clear="none">> 11<br clear="none">> 12 integer :: NV_up,NV_dn,ende(2)<br clear="none">> 13 character*10 :: BNAME_up,BNAME_dn<br clear="none">> 14 real*8 :: WEIGHT_UP,WEIGHT_dn<br clear="none">> 15 real*8 :: SS_up(3),SS_dn(3)<br clear="none">> 16 integer :: NE_up,NE_dn<br clear="none">> 17 integer :: nfile<br clear="none">> 18<br clear="none">> 19<br clear="none">> 20 nfile=8+1<br clear="none">> 21 if (MYROWHS.eq.0.and.MYCOLHS.eq.0) then<br clear="none">> 22 READ(nfile,end=998)<br clear="none">> SS_up(1),SS_up(2),SS_up(3),BNAME_up,NV_up,NE_up,WEIGHT_up<br clear="none">> 23 goto 111<br clear="none">> 24 998 ende(1)=1<br clear="none">> 25 111 continue<br clear="none">> 26 endif<br clear="none">> 27<br clear="none">> 28 nfile=8+2<br clear="none">> 29 if (MYROWHS.eq.0.and.MYCOLHS.eq.0) then<br clear="none">> 30 READ(nfile,end=999)<br clear="none">> SS_dn(1),SS_dn(2),SS_dn(3),BNAME_dn,NV_dn,NE_dn,WEIGHT_dn<br clear="none">> 31 goto 112<br clear="none">> 32 999 ende(2)=1<br clear="none">> 33 112 continue<br clear="none">> 34 endif<br clear="none">> 35<br clear="none">> 36 #ifdef Parallel<br clear="none">> 37 call mpi_bcast(ende,2,MPI_INTEGER,0,MPI_COMM_WORLD,ierr)<br clear="none">> 38 call mpi_barrier(MPI_COMM_WORLD,ierr)<br clear="none">> 39<br clear="none">> 40 if (ende(1).ne.1) then<br clear="none">> 41 call<br clear="none">> mpi_bcast(SS_up,3,MPI_DOUBLE_PRECISION,0,MPI_COMM_WORLD,ierr)<br clear="none">> 42 call<br clear="none">> mpi_bcast(BNAME_up,10,MPI_CHARACTER,0,MPI_COMM_WORLD,ierr)<br clear="none">> 43 call mpi_bcast(NV_up,1,MPI_INTEGER,0,MPI_COMM_WORLD,ierr)<br clear="none">> 44 call mpi_bcast(NE_up,1,MPI_INTEGER,0,MPI_COMM_WORLD,ierr)<br clear="none">> 45 call<br clear="none">> mpi_bcast(WEIGHT_up,1,MPI_DOUBLE_PRECISION,0,MPI_COMM_WORLD,ierr)<br clear="none">> 46 endif<br clear="none"><br clear="none"><br clear="none"><br clear="none"></div><div class="yiv6842007698yqt3214993279" id="yiv6842007698yqt20265"><blockquote style="padding-left:5px;margin-right:0px;margin-left:5px;border-left-color:rgb(182, 182, 182);border-left-width:2px;border-left-style:solid;">-----原始邮件-----<br clear="none">
<b>发件人:</b> "Jiayi Wu" <jiayi_wu1009@yahoo.com><br clear="none">
<b>发送时间:</b> 2015年4月16日 星期四<br clear="none">
<b>收件人:</b> "wien@zeus.theochem.tuwien.ac.at" <wien@zeus.theochem.tuwien.ac.at>, "wien@zeus.theochem.tuwien.ac.at" <wien@zeus.theochem.tuwien.ac.at><br clear="none">
<b>抄送:</b> <br clear="none">
<b>主题:</b> [SPAM] [Wien] (no subject)<br clear="none"><br clear="none"><div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div id="yiv6842007698"><div id="yiv6842007698yui_3_16_0_1_1429157642810_17130"><div id="yiv6842007698yui_3_16_0_1_1429157642810_17129" style="color:rgb(0, 0, 0);font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;background-color:rgb(255, 255, 255);"><div id="yiv6842007698"><div id="yiv6842007698yui_3_16_0_1_1429157642810_15533"><div id="yiv6842007698yui_3_16_0_1_1429157642810_15532" style="color:rgb(0, 0, 0);font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;background-color:rgb(255, 255, 255);"><div class="yiv6842007698" dir="ltr" id="yiv6842007698yui_3_16_0_1_1429157642810_14704"><span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_14706" style="line-height:23px;font-family:Arial;font-size:14px;">Dear wien2k users</span><tt class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_14707" style="line-height:23px;font-size:14px;">:</tt><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><span id="yiv6842007698yui_3_16_0_1_1429157642810_14705" style="line-height:23px;font-family:Arial;font-size:14px;">I am a new Wien2k user . I am running version 13.1 on debian7.7.0 compiling with gfortran. The purpose of my calculations is to get the DOS of Fe2CrAl including the spin-orbit coupling.</span><span style="line-height:23px;font-family:Arial;font-size:14px;"> </span><span id="yiv6842007698yui_3_16_0_1_1429157642810_17520" style="line-height:23px;font-family:Arial;font-size:14px;">I am following the user guide for this calculation.</span></div><div dir="ltr" id="yiv6842007698yui_3_16_0_1_1429157642810_14704"><span class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><br clear="none"></span></div><div dir="ltr" id="yiv6842007698yui_3_16_0_1_1429157642810_14704"><span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_14731" style="line-height:23px;font-family:Arial;font-size:14px;">runsp_lapw</span><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_14729" style="line-height:23px;font-family:Arial;font-size:14px;">save_lapw case_nrel</span><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><span class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;">initso_lapw</span><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_14730" style="line-height:23px;font-family:Arial;font-size:14px;">runsp_lapw -so</span><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_14746" style="line-height:23px;font-family:Arial;font-size:14px;">There are the case.inso</span><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_17670" style="line-height:23px;font-family:Arial;font-size:14px;">WFFIL</span><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_14747" style="line-height:23px;font-family:Arial;font-size:14px;"> 4 1 0 llmax,ipr,kpot </span><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_14742" style="line-height:23px;font-family:Arial;font-size:14px;"> -10.0000 10.00000 emin,emax (output energy window)</span><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_14743" style="line-height:23px;font-family:Arial;font-size:14px;"> 1. 1. 1. direction of magnetization (lattice vectors)</span><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_14744" style="line-height:23px;font-family:Arial;font-size:14px;"> 2 number of atoms for which RLO is added</span><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_14745" style="line-height:23px;font-family:Arial;font-size:14px;"> 1 -4.97 0.0005 atom number,e-lo,de (case.in1), repeat NX times</span><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_17515" style="line-height:23px;font-family:Arial;font-size:14px;"> 3 -4.97 0.0005 atom number,e-lo,de (case.in1), repeat NX times</span><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_17669" style="line-height:23px;font-family:Arial;font-size:14px;"> 2 2,4 number of atoms for which SO is switch off; atoms</span><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_17518" style="line-height:23px;font-family:Arial;font-size:14px;">But, it happens after I was running runsp_lapw -so . Checking the STDOUT I have the following:</span><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"></div><pre class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_14643" style="line-height:23px;font-family:arial;font-size:14px;">hup: Command not found.
STOP LAPW0 END
STOP LAPW1 END
STOP LAPW1 END
STOP LAPWSO END
STOP LAPW2 END
STOP LAPW2 END
STOP CORE END
STOP CORE END
At line 968 of file mixer.F (unit = 22, file = 'FeCrAlSi.scf')
Fortran runtime error: Sequential READ or WRITE not allowed after EOF marker, possibly use REWIND or BACKSPACE
> stop error</pre><div id="yiv6842007698yui_3_16_0_1_1429157642810_17172"><span class="yiv6842007698" id="yiv6842007698result_box" lang="en" style="line-height:23px;font-family:Arial;font-size:14px;"><span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_17390">Have tried many methods, but those did not work. I</span> <span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_17389">do not</span> <span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_17171">know where was wrong and </span></span><span class="yiv6842007698" id="yiv6842007698result_box" lang="en" style="line-height:23px;font-family:Arial;font-size:14px;"><span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_17388">how should I do</span></span><span class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_17394" style="line-height:23px;font-family:Arial;font-size:14px;">. Please help me, thanks!</span><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><br clear="none" class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;"><span class="yiv6842007698" style="line-height:23px;font-family:Arial;font-size:14px;">Jiayi</span><br clear="none"></div><div class="yiv6842007698" id="yiv6842007698yui_3_16_0_1_1429157642810_17387"><br clear="none" class="yiv6842007698"></div></div></div></div></div></div></div></div></blockquote></div><br clear="none"><span>--<br clear="none"></span><div>Zhi Li</div>
<div>Associate Profesor</div>
<div>School of Materials Science and Enginenring, Hefei University of Technology</div>
<div>TunXi Rd. 193, Hefei 230009, AnHui, China</div>
<div>Cellphone: 15715519289</div>
<div><a rel="nofollow" shape="rect" target="_blank" class="removed-link" href="">http://mse.hfut.edu.cn/zh/index/teacherinfo/tid/89</a></div><div><br clear="none"></div></div></div><br><div class="yqt3214993279" id="yqt30792">_______________________________________________<br clear="none">Wien mailing list<br clear="none"><a shape="rect" ymailto="mailto:Wien@zeus.theochem.tuwien.ac.at" class="removed-link" href="">Wien@zeus.theochem.tuwien.ac.at</a><br clear="none"><a shape="rect" target="_blank" class="removed-link" href="">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a><br clear="none">SEARCH the MAILING-LIST at: <a shape="rect" target="_blank" class="removed-link" href="">http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html</a><br clear="none"></div><br><br></div> </div> </div> </div></div></body></html>