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

siddheshwar chopra sidhusai at gmail.com
Thu Jul 17 08:12:30 CEST 2014


Dear Sir,
Thank you for the help. The addition of ecutrho=`echo $ecut*8 | bc -l`;
solved my problem.
pw.x is working smoothly now.

Regards,


On Tue, Jul 15, 2014 at 4:54 PM, Tone Kokalj <tone.kokalj at ijs.si> wrote:

> On Tue, 2014-07-15 at 15:22 +0530, siddheshwar chopra wrote:
> > Dear Sir,
> >
> > the script is working perfectly fine now. I had to just change
> > "ecutrho" to "$ecutrho".
> >
> > So now it becomes $ecutrho= $ecut*8
>
> This seems rather awkward and it should definitely fail!
>
> If the variable ecutrho is not defined, the shell will expand the
> "$ecutrho= $ecut*8" into "= value*8", where the "value" is the value of
> $ecut variable. Check your generated input file!
>
> As mentioned by others, the script must be written in such a manner that
> the expression $ecut*8 gets evaluated, which can be either achieved by
>
> ecutrho=$[$ecut*8] (for bash only)
>
> or
>
> ecutrho=`echo $ecut*8| bc -l` (for general Bourne shell)
>
>
> Regards,
>
> --
> Anton Kokalj
> J. Stefan Institute, Jamova 39, 1000 Ljubljana, Slovenia
> (tel: +386-1-477-3523 // fax:+386-1-477-3822)
>
> Please, if possible, avoid sending me Word or PowerPoint attachments.
> See:  http://www.gnu.org/philosophy/no-word-attachments.html
>
> _______________________________________________
> 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://lists.quantum-espresso.org/pipermail/users/attachments/20140717/51cfd5e9/attachment.html>


More information about the users mailing list