<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">Yes, the two cp are needed if redklist part is executed.<br><br><font color="#990099">-----wien-bounces@zeus.theochem.tuwien.ac.at wrote: -----</font><div style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;">To: A Mailing list for WIEN2k users &lt;wien@zeus.theochem.tuwien.ac.at&gt;<br>From: Gavin Abo <gsabo@crimson.ua.edu><br>Sent by: wien-bounces@zeus.theochem.tuwien.ac.at<br>Date: 03/16/2013 04:22PM<br>Subject: Re: [Wien] x kgen -hf &lt;&lt;<br><br><p>I think you shouldn't change it. It looks like the redklist (if statement) needs the two cp lines such that it cannot be simplified.</p> <div class="gmail_quote">On Mar 16, 2013 8:17 AM, "Saeid Jalali" &lt;<a href="mailto:s_jalali_a@yahoo.com" target="_blank">s_jalali_a@yahoo.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top"><div>So in this case, can the run_kgenhf_lapw script a little bit simplifies as follows?</div><div><br></div><div>---------original run_kgenhf_lapw-----------</div> <div>...</div><div><div>x kgen -hf</div><div>mv $file.klist $file.klist_ibz</div><div>mv $file.kgen $file.kgen_ibz</div><div><br></div><div>x kgen -fbz</div><div>mv $file.klist $file.klist_fbz</div><div>mv $file.kgen $file.kgen_fbz</div> <div><br></div><div>if ( $redklist == 'redklist' ) then</div><div>&nbsp; echo " Choose a reduced k-mesh which is a subset of the original one."</div><div>&nbsp; sleep 1</div><div>&nbsp; x kgen -fbz</div><div>&nbsp; mv $file.klist $file.klist_rfbz</div> <div>endif</div><div><br></div><div>cp $file.klist_ibz $file.klist</div><div>cp $file.kgen_ibz $file.kgen</div></div><div>---------------------end------------</div><div><br></div><div>---------------------simplified  run_kgenhf_lapw--------------&nbsp;</div><div><div><div>x kgen -fbz</div><div>mv $file.klist $file.klist_fbz</div><div>mv $file.kgen $file.kgen_fbz</div><div><br></div><div><div>x kgen -hf</div><div>cp $file.klist $file.klist_ibz</div> <div>cp $file.kgen $file.kgen_ibz</div></div><div><br></div><div><br></div><div>if ( $redklist == 'redklist' ) then</div><div>&nbsp; echo " Choose a reduced k-mesh which is a subset of the original one."</div> <div>&nbsp; sleep 1</div><div>&nbsp; x kgen -fbz</div><div>&nbsp; mv $file.klist $file.klist_rfbz</div><div>endif</div><div>---------------------end-----------------------</div></div></div><div><br></div>Two last lines of the script can be removed if we exchange the locations of the x kgen -hf and x kgen -fbz and their associated mv commands. Right?<br> <br>Sincerely yours,<br>S. Jalali<br>/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/<br>Saeid Jalali Asadabadi,<br>Department of Physics, Faculty of  Science,<br>University of Isfahan (UI), Hezar Gerib Avenue,<br>81744 Isfahan, Iran.<br>Phones:<br>Dep. of Phys. &nbsp; :<a href="tel:%2B98-0311-793%202435" value="+983117932435" target="_blank">+98-0311-793 2435</a><br>Office &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<a href="tel:%2B98-0311-793%204776" value="+983117934776" target="_blank">+98-0311-793 4776</a><br> Fax No. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<a href="tel:%2B98-0311-793%204800" value="+983117934800" target="_blank">+98-0311-793 4800</a><br>E-mail &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<a rel="nofollow" href="mailto:sjalali@phys.ui.ac.ir" target="_blank">sjalali@phys.ui.ac.ir</a><br>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; :<a rel="nofollow" href="mailto:sjalali@sci.ui.ac.ir" target="_blank">sjalali@sci.ui.ac.ir</a><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<a rel="nofollow" href="mailto:sjalali@mailaps.org" target="_blank">sjalali@mailaps.org</a><br>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<a rel="nofollow" href="mailto:saeid.jalali.asadabadi@gmail.com" target="_blank">saeid.jalali.asadabadi@gmail.com</a><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<a rel="nofollow" href="mailto:s_jalali_a@yahoo.com" target="_blank">s_jalali_a@yahoo.com</a><br> Homepage &nbsp; &nbsp; &nbsp; &nbsp;:<a rel="nofollow" href="http://sci.ui.ac.ir/%7Esjalali" target="_blank">http://sci.ui.ac.ir/~sjalali</a><br>www &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; :<a rel="nofollow" href="http://www.ui.ac.ir/" target="_blank">http://www.ui.ac.ir</a><br> /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/<br><br><br>--- On <b>Sat, 3/16/13, <a href="mailto:f.tran@pci.uzh.ch" target="_blank">f.tran@pci.uzh.ch</a> <i>&lt;<a href="mailto:f.tran@pci.uzh.ch" target="_blank">f.tran@pci.uzh.ch</a>&gt;</i></b> wrote:<br> <blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px"><br>From: <a href="mailto:f.tran@pci.uzh.ch" target="_blank">f.tran@pci.uzh.ch</a> &lt;<a href="mailto:f.tran@pci.uzh.ch" target="_blank">f.tran@pci.uzh.ch</a>&gt;<br> Subject: [Wien]  x kgen -hf &lt;&lt;<br>To: "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>Date: Saturday, March 16, 2013, 7:02 AM<br><br><div><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif">-hf only means that in addition case.outputkgenhf is generated. The other files are not changed.<br> <br>F. Tran<br><br><font color="#990099">-----<a href="mailto:wien-bounces@zeus.theochem.tuwien.ac.at" target="_blank">wien-bounces@zeus.theochem.tuwien.ac.at</a> wrote: -----</font><div style="padding-left:5px"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px"> To: 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>From: Saeid Jalali <br>Sent by: <a href="mailto:wien-bounces@zeus.theochem.tuwien.ac.at" target="_blank">wien-bounces@zeus.theochem.tuwien.ac.at</a><br> Date: 03/16/2013 02:13PM<br>Subject: [Wien] x kgen -hf &lt;&lt;=?=&gt;&gt; x kgen<br><br><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top"><div>Hi,</div>Are there any differences between x kgen -hf and&nbsp;x kgen? For a (one atomic) fcc case, the generated  case.klist, case.kgen, and case.outputkgen files by x kgen are found to be the same as those generated by x kgen -hf. When do the differences appeared?<br><br>Sincerely yours,<br>S. Jalali<br>/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/<br> Saeid Jalali Asadabadi,<br>Department of Physics, Faculty of Science,<br>University of Isfahan (UI), Hezar Gerib Avenue,<br>81744 Isfahan, Iran.<br>Phones:<br>Dep. of Phys. &nbsp; :<a href="tel:%2B98-0311-793%202435" value="+983117932435" target="_blank">+98-0311-793 2435</a><br> Office &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<a href="tel:%2B98-0311-793%204776" value="+983117934776" target="_blank">+98-0311-793 4776</a><br>Fax No. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<a href="tel:%2B98-0311-793%204800" value="+983117934800" target="_blank">+98-0311-793 4800</a><br> E-mail &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<a rel="nofollow" href="http://mc/compose?to=sjalali@phys.ui.ac.ir" target="_blank">sjalali@phys.ui.ac.ir</a><br>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; :<a rel="nofollow" href="http://mc/compose?to=sjalali@sci.ui.ac.ir" target="_blank">sjalali@sci.ui.ac.ir</a><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<a rel="nofollow" href="http://mc/compose?to=sjalali@mailaps.org" target="_blank">sjalali@mailaps.org</a><br>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<a rel="nofollow" href="http://mc/compose?to=saeid.jalali.asadabadi@gmail.com" target="_blank">saeid.jalali.asadabadi@gmail.com</a><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<a rel="nofollow" href="http://mc/compose?to=s_jalali_a@yahoo.com" target="_blank">s_jalali_a@yahoo.com</a><br> Homepage &nbsp; &nbsp; &nbsp; &nbsp;:<a rel="nofollow" href="http://sci.ui.ac.ir/%7Esjalali" target="_blank">http://sci.ui.ac.ir/~sjalali</a><br>www &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; :<a rel="nofollow" href="http://www.ui.ac.ir/" target="_blank">http://www.ui.ac.ir</a><br>/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/<br></td></tr></tbody></table> <div><font face="Courier New,Courier,monospace">_______________________________________________<br>Wien mailing list<br><a href="mailto:Wien@zeus.theochem.tuwien.ac.at" target="_blank">Wien@zeus.theochem.tuwien.ac.at</a><br> <a rel="nofollow" href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" target="_blank">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a><br></font></div></div></div><div></div></font> </div><br>-----Inline Attachment Follows-----<br><br><div>_______________________________________________<br>Wien mailing list<br><a href="http://mc/compose?to=Wien@zeus.theochem.tuwien.ac.at" target="_blank">Wien@zeus.theochem.tuwien.ac.at</a><br> <a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" target="_blank">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a><br></div></blockquote></td></tr></tbody></table><br>_______________________________________________<br> Wien mailing list<br> <a href="mailto:Wien@zeus.theochem.tuwien.ac.at" target="_blank">Wien@zeus.theochem.tuwien.ac.at</a><br> <a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" target="_blank">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a><br> <br></blockquote></div> <div><font face="Courier New,Courier,monospace" size="2">_______________________________________________<br>Wien mailing list<br>Wien@zeus.theochem.tuwien.ac.at<br><a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a><br></font></div></gsabo@crimson.ua.edu></div></div><div></div></font>