Dear Sir, the script is working perfectly fine now. I had to just change "ecutrho" to "$ecutrho". So now it becomes $ecutrho= $ecut*8
Regards, On Tue, Jul 15, 2014 at 2:39 PM, Lorenzo Paulatto < lorenzo.paulatto at impmc.upmc.fr> wrote: > 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: paulatzhttp://www.impmc.upmc.fr/~paulatto/ > 23-24/4?16 Bo?te courrier 115, 4 place Jussieu 75252 Paris C?dex 05 > > > _______________________________________________ > Pw_forum mailing list > Pw_forum at pwscf.org > http://pwscf.org/mailman/listinfo/pw_forum > -- *Dr. Siddheshwar chopra,* *M.Sc., Ph.D (Physics)Assistant Professor (Physics),* *Amity University, Noida, India.* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://pwscf.org/pipermail/pw_forum/attachments/20140715/19316615/attachment.html
