<html><body><div>Dr. Blaha and other Wien users,<br></div><div><br></div><div>I had the same problem described before, and then I tried the new vec2old_lapw executable that you provided. I tried the simple case of GaAs and it ran well but within the SCF cycle every time it finishes LAPW0 and vec2old_lapw is called it shows the following. <br></div><div><br></div><div>[radi@localhost gaas]$ tail -f STDOUT <br>&nbsp;LAPW0 END<br>'nknown option: `-<br>Usage: tcsh [ -bcdefilmnqstvVxX ] [ argument ... ].<br>&nbsp;LAPW1 END<br>&nbsp;LAPW1 END<br>LAPW2 - FERMI; weighs written<br>&nbsp;LAPW2 END<br>&nbsp;LAPW2 END<br>&nbsp;SUMPARA END<br>&nbsp;CORE&nbsp; END<br>&nbsp;MIXER END<br>ec cc and fc_conv 0 1 1<br>in cycle 2&nbsp;&nbsp;&nbsp; ETEST: 0&nbsp;&nbsp; CTEST: 0<br><br></div><div>It doesnt seem to be an error because it actually converged and I was able to calculate the DOS using  <b>x lapw2 -p -qtl  -c, </b>in which case the following message was shown:<br></div><div><br></div><div>Commandline: <b>x lapw2 -p -qtl  -c</b><br>
Program input is: <b>""</b>
<br>
<br></div>

<pre>running LAPW2 in parallel mode<br>calculating QTL's from parallel vectors<br>Unknown option: `-<br>'<br>Usage: tcsh [ -bcdefilmnqstvVxX ] [ argument ... ].<br> LAPW2 END<br>3148u 0.272s 0:01.26 270.6%        0+0k 0+3128io 0pf+0w<br><span style="overflow: hidden; line-height: 0px;" _mce_style="overflow:hidden;line-height:0px" id="mce_10_start" _mce_type="bookmark"></span><br>I haven't looked in detail at the file you  provided, but if you have any suggestions about how to remove this unknown option warning will be appreciated. <br><span style="overflow: hidden; line-height: 0px;" _mce_style="overflow:hidden;line-height:0px" id="mce_11_start" _mce_type="bookmark"></span></pre><div><pre style="font-family: Helvetica,Arial,sans-serif; font-size: 13px;" _mce_style="font-family: Helvetica,Arial,sans-serif; font-size: 13px;">thank you<br></pre></div><div><pre style="font-family: Helvetica,Arial,sans-serif; font-size: 13px;" _mce_style="font-family: Helvetica,Arial,sans-serif; font-size: 13px;">David Guzman M
Department of Physics &amp; Astronomy
California State University-Los Angeles
(310)528-4841</pre></div><div><br>On Mar 07, 2011, at 07:52 AM, Peter Blaha &lt;pblaha@theochem.tuwien.ac.at&gt; wrote:<br><br><div><blockquote type="cite"><div class="msg-quote"><div class="_stretch">Try the attached version of vec2old_lapw, which is from the next release.<br>
<br>
Make sure you execute      x lapw2 -p -qtl<br>
on the same machines and you have again defined the SCRATCH variable.<br>
<br>
<br>
Am 07.03.2011 15:49, schrieb Tomohiko Tasaka:<br>
&gt; Hi,<br>
&gt;<br>
&gt; thanks for your reply. this fail's occurred in non iterative calculation.<br>
&gt; Umm, I think that vec2old within "lapw2 -p -qtl" always fails in the system which<br>
&gt; has a local scratch setting(i.e. the value of SCRATCH is not "./"). because vec2old<br>
&gt; only copies the vector files into the (same) scratch directory of each client node...<br>
&gt;<br>
&gt; * here is a invoking part of vec2old in lapw2para script:<br>
&gt; 420 qtl:<br>
&gt; 421 echo "calculating QTL's from parallel vectors"<br>
&gt; 422 vec2old_lapw -p -local -$updn<br>
&gt; 423 $exe $def.def $maxproc<br>
&gt; 424 rm $tmp*&gt;&amp;/dev/null<br>
&gt; 425 rm .lapw2${cmplx}para.$$.`hostname`&gt;&amp;/dev/null<br>
&gt; 426 echo "DONE"&gt;.lapw2para<br>
&gt; 427 exit 0<br>
&gt;<br>
&gt; is there anyone who ran into the same problem?<br>
&gt;<br>
&gt; Thanks again, with best regards,<br>
&gt; Tomo<br>
&gt;<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:wien-bounces@zeus.theochem.tuwien.ac.at" _mce_href="mailto:wien-bounces@zeus.theochem.tuwien.ac.at">wien-bounces@zeus.theochem.tuwien.ac.at</a> [mailto:<a href="mailto:wien-bounces@zeus.theochem.tuwien.ac.at" _mce_href="mailto:wien-bounces@zeus.theochem.tuwien.ac.at">wien-bounces@zeus.theochem.tuwien.ac.at</a>] On Behalf Of Laurence Marks<br>
&gt; Sent: Monday, March 07, 2011 10:31 PM<br>
&gt; To: A Mailing list for WIEN2k users<br>
&gt; Subject: Re: [Wien] vec2old_lapw<br>
&gt;<br>
&gt; The vec2old_lapw script is used in a number of places in afm and<br>
&gt; iterative calculations. If you want a special version just for a qtl<br>
&gt; calculation I suggest that you change it to vec2old_mine and add an<br>
&gt; extry in x_lapw, while retaining the original.<br>
&gt;<br>
&gt; I may have misunderstood -- does vec2old fail in a normal iterative<br>
&gt; calculation (e.g. -it or -noHinv)?<br>
&gt;<br>
&gt; 2011/3/7 Tomohiko Tasaka&lt;<a href="mailto:tasaka@affinity-science.com" _mce_href="mailto:tasaka@affinity-science.com">tasaka@affinity-science.com</a>&gt;:<br>
&gt;&gt; Dear All,<br>
&gt;&gt;<br>
&gt;&gt; when executing "x lapw2 -qtl -p" calculation on PC cluster<br>
&gt;&gt; system(with local SCRATCH), I encounter the following error:<br>
&gt;&gt;<br>
&gt;&gt; Error in LAPW2<br>
&gt;&gt;   'l2main' - error reading parallel vectors<br>
&gt;&gt;<br>
&gt;&gt; then, I found that it's because that vec2old_lapw script fails to copy<br>
&gt;&gt; the vector files of other machines. to deal with this problem, I modified<br>
&gt;&gt; vec2old_lapw as below(you can find attached):<br>
&gt;&gt;<br>
&gt;&gt; //-----------------------------------------------------------<br>
&gt;&gt; $ diff vec2old_lapw vec2old_lapw.orig<br>
&gt;&gt; 9d8<br>
&gt;&gt; &lt;  set remotecopy = rcp<br>
&gt;&gt; 12d10<br>
&gt;&gt; &lt;  set exechost=`hostname -f`<br>
&gt;&gt; 84c82<br>
&gt;&gt; &lt;            set status=`$remote $machines[$i] "cd $PWD;$remotecopy $SCRATCH/$file.vector${updn}_$i<br>
&gt;&gt; ${exechost}:${SCRATCH}/$file.vector${updn}_$i"`<br>
&gt;&gt; ---<br>
&gt;&gt;&gt;            set status=`$remote $machines[$i] "cd $PWD;cp $SCRATCH/$file.vector${updn}_$i<br>
&gt;&gt; $file.vector${updn}_$i"`<br>
&gt;&gt; //-----------------------------------------------------------<br>
&gt;&gt;<br>
&gt;&gt; so, what do you think about this modification?<br>
&gt;&gt; if there are any problems, incompatibilities, or better solutions, please advise.<br>
&gt;&gt;<br>
&gt;&gt; Thanks in advance for your time and consideration.<br>
&gt;&gt;<br>
&gt;&gt; With best regards,<br>
&gt;&gt; Tomohiko<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Wien mailing list<br>
&gt;&gt; <a href="mailto:Wien@zeus.theochem.tuwienac.at" _mce_href="mailto:Wien@zeus.theochem.tuwien.ac.at">Wien@zeus.theochem.tuwien.ac.at</a><br>
&gt;&gt; <a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" _mce_href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
-- <br>
<br>
                                       P.Blaha<br>
--------------------------------------------------------------------------<br>
Peter BLAHA, Inst.f. Materials Chemistry, TU Vienna, A-1060 Vienna<br>
Phone: +43-1-58801-15671             FAX: +43-1-58801-15698<br>
Email: <a href="mailto:blaha@theochem.tuwien.ac.at" _mce_href="mailto:blaha@theochem.tuwien.ac.at">blaha@theochem.tuwien.ac.at</a>    WWW: <a href="http://info.tuwien.ac.at/theochem/" _mce_href="http://infotuwien.ac.at/theochem/">http://info.tuwien.ac.at/theochem/</a><br>
--------------------------------------------------------------------------<br>
</div><div class="_stretch">#!/bin/tcsh -f<br>
#<br>
#moving casevect* to *.old vector files; takes -p; -up/-dn<br>
#copying case.vectorup* to case.vectordn*; takes -p; -up/-dn/-updn<br>
#copying $SCRATCH/case.vector* to case.vector*; takes -p; -up/-dn/-updn<br>
# <br>
set useremote   = 1             # using remote shell to launch processes<br>
set remote = ssh<br>
set remotecp = scp<br>
if($remote == rsh ) set remotecp = rcp<br>
set file=`pwd`<br>
set file=$file:t                #tail of file-names<br>
<br>
set name        = $0<br>
set bin                = $name:h        #default directory for WIEN-executables<br>
if (-e $bin/parallel_options) then<br>
        source $bin/parallel_options<br>
endif<br>
if ( $?USE_REMOTE ) then<br>
        set useremote = $USE_REMOTE<br>
endif<br>
<br>
if( "$1" == '-h' ) goto help<br>
<br>
unset para<br>
if( "$1" == '-p' ) then<br>
  set para<br>
  shift<br>
#set machines=`grep init .processes | cut -f2 -d: | cut -f1 -d ' ' | xargs`<br>
set machines=`grep " : " .processes | cut -f2 -d: | xargs`<br>
endif<br>
set copy<br>
set updn<br>
unset local<br>
if ( "$1" == '-local' ) then<br>
     set local<br>
     shift<br>
endif<br>
if ( "$1" == '-up' ) set updn=up<br>
if ( "$1" == '-dn' ) set updn=dn<br>
if ( "$1" == '-updn' ) then<br>
   set copy=dn<br>
   set updn=up<br>
endif<br>
if ( "$1" == '-dnup' ) then<br>
   set copy=up<br>
   set updn=dn<br>
endif<br>
<br>
  set scratch=./                   # set directory for vectors and help files<br>
  if ($?SCRATCH) then              #if envronment SCRATCH is set<br>
   set scratch=`echo $SCRATCH  | sed -e 's/\/$//'`/ #set $scratch to that value<br>
  endif                          <br>
  cd $scratch<br>
  if(! $?local) then<br>
     setenv PWD $cwd<br>
  endif<br>
<br>
if( ! $?para ) then<br>
  foreach i ($file.vector${updn}*)<br>
  set i1=`echo $i |grep -v -e '\.old'`<br>
  if ( $i1 != '' ) then<br>
    if (! -z $i ) then<br>
     if( $copy == '') then<br>
       mv $i1 $i1.old<br>
       if($status == 0 ) echo "moving $i1 to $i1.old"<br>
     else<br>
       set target=`echo $i1 | sed s/vector${updn}/vector${copy}/`<br>
       cp $i1 $target<br>
       if($status == 0 ) echo "copy $i1 to $target"<br>
     endif<br>
    endif<br>
  endif<br>
  end<br>
#----------------------------------------------------------<br>
<br>
else <br>
<br>
set i=1<br>
while ( $i &lt;= $#machines )<br>
  if( $copy == '') then<br>
    if ($useremote == 1) then<br>
       if($?local) then<br>
###          $remote $machines[$i] "cd $PWD;cp $SCRATCH/$file.vector${updn}_$i $file.vector${updn}_$i" <br>
###          if($status == 0 ) echo copying vector on $machines[$i] from $SCRATCH to $file.vector${updn}_$i <br>
          $remotecp ${machines[$i]}:${SCRATCH}/$file.vector${updn}_$i ${SCRATCH}/$file.vector${updn}_$i <br>
          if($status == 0 ) echo remote_copy vector from ${machines[$i]}:$SCRATCH/$file.vector${updn}_$i to local  $SCRATCH<br>
       else<br>
          $remote $machines[$i] "cd $PWD;mv $file.vector${updn}_$i $file.vector${updn}_$i.old" <br>
          if($status == 0 ) echo moving vector on $machines[$i] to $file.vector${updn}_$i.old <br>
       endif<br>
    else<br>
       if(! $?local) then<br>
         mv $file.vector${updn}_$i $file.vector${updn}_$i.old<br>
         if($status == 0 ) echo moving vector to $file.vector${updn}_$i.old <br>
       endif<br>
    endif<br>
  else<br>
    set target=`echo $file.vector${updn}_$i | sed s/vector${updn}/vector${copy}/`<br>
    if ($useremote == 1) then<br>
       $remote $machines[$i] "cd $PWD;cp $file.vector${updn}_$i $target" <br>
       if($status == 0 ) echo copying vector$updn on $machines[$i] to $file.vector${copy}_$i <br>
    else<br>
       cp $file.vector${updn}_$i $target<br>
       if($status == 0 ) echo copying vector$updn to $target<br>
    endif<br>
  endif<br>
  @ i ++<br>
end<br>
endif<br>
<br>
exit 0<br>
help:<br>
echo 'usage:    vec2old_lapw [-h -p -local/-up/-dn/-updn ] '<br>
echo 'vec2old moves case.vect* to *.old; takes -p (using .processes); -up/-dn'<br>
echo 'vec2old -updn     copies case.vectorup* to case.vectordn*; takes -p as first parameter;' <br>
echo 'vec2old -p -local [-up/-dn]  copies $SCRATCH/case.vector* to case.vector*; requires -p, takes -up/-dn;' <br>
echo '-p uses .processes file, requires commensurate k-points/proc-number'<br>
exit 1<br>
</div><div class="_stretch">_______________________________________________<br>
Wien mailing list<br>
<a href="mailto:Wien@zeus.theochem.tuwien.ac.at" _mce_href="mailto:Wien@zeus.theochem.tuwien.ac.at">Wien@zeus.theochem.tuwien.ac.at</a><br>
<a href="http://zeustheochem.tuwien.ac.at/mailman/listinfo/wien" _mce_href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a><br>
</div></div></blockquote></div></div></body></html>