[Pw_forum] PW.X WORKS ONCE AND NEXT TIME DOESN'T.. FOR THE SAME INPUT FILE..

Lorenzo Paulatto lorenzo.paulatto at impmc.upmc.fr
Tue Jul 15 11:09:12 CEST 2014


On 07/15/2014 10:15 AM, Giovanni Cantele wrote:
> the shell script is not able to make mathematical operations, so if 
> you write
> ecutrho=$ecut*8


Actually, the bash shell can do some integer arithmetic. This would work:
   ecutrho = $[$ecut*8]

hth

-- 
Dr. Lorenzo Paulatto
IdR @ IMPMC -- CNRS & Université Paris 6
+33 (0)1 44 275 084 / skype: paulatz
http://www.impmc.upmc.fr/~paulatto/
23-24/4é16 Boîte courrier 115, 4 place Jussieu 75252 Paris Cédex 05

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/users/attachments/20140715/5427c224/attachment.html>


More information about the users mailing list