<div dir="ltr"><div>Unit 4 is used at the end of the run, so it may be a good idea to close it, or to use unit 5 instead<br><br></div>Paolo<br><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 7, 2016 at 7:23 PM, Roberto Pasianot <span dir="ltr"><<a href="mailto:rpasianot@gmail.com" target="_blank">rpasianot@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ciao Aldo, this works for me<br>
<br>
open(unit=4,file='/dev/stdin')<br>
open(unit=3,file='/dev/stderr')<br>
read(4,*)a<br>
write(3,*)'This is a: ',a<br>
end<br>
<br>
Regards,<br>
<br>
Roberto<br>
<div><div class="h5"><br>
<br>
On 4/7/16, Aldo Ugolotti <<a href="mailto:a.ugolotti@campus.unimib.it">a.ugolotti@campus.unimib.it</a>> wrote:<br>
> Dear qe users,<br>
> I'm trying to modify mm_dispersion file to have it asking interactively for<br>
> some vdw coefficient AND radii. Hence I'm adding few lines to the file, in<br>
> particular a write and a read statement. I get two problems:<br>
> 1) writing to stdout the string gets taken from output file by redirection,<br>
> but using stderr flow the compiler says that it's not defined;<br>
> 2) I'm not able to correctly define an input device for reading the values:<br>
> I've tried "100", "*" and "stdin". In this cases compiling is not a<br>
> problem, but running the code gets always an error saying "unit -4<br>
> unexpected end of file".<br>
> How can I solve this?<br>
><br>
> Thanks in advance,<br>
><br>
> Aldo Ugolotti<br>
> Master's thesist<br>
> Università di Milano-Bicocca<br>
><br>
<br>
</div></div>_______________________________________________<br>
Pw_forum mailing list<br>
<a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>
<a href="http://pwscf.org/mailman/listinfo/pw_forum" rel="noreferrer" target="_blank">http://pwscf.org/mailman/listinfo/pw_forum</a></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Paolo Giannozzi, Dip. Scienze Matematiche Informatiche e Fisiche,<br>Univ. Udine, via delle Scienze 208, 33100 Udine, Italy<br>Phone +39-0432-558216, fax +39-0432-558222<br><br></div></div></div></div></div>
</div>