<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I have no serial executable, and have never built one, and it runs fine in parallel (except for this). I fixed the problem by changing:</div><div class=""><div class="">!REC    IF ( opnd ) CLOSE( UNIT = unit, STATUS = status )</div><div class="">    IF ( opnd ) CLOSE( UNIT = unit )</div></div><div class=""><br class=""></div><div class="">in qe-6.2.1_fat/PW/src/buffers.f90 </div><div class=""><br class=""></div><div class="">I think the problem, in my case anyway, is that the inquire shows the file existing, but meanwhile another MPI task deletes the file, so then it tries to delete a non-existing file.</div><div class=""><br class=""></div><div class="">Ron</div><div class=""> </div><br class=""><blockquote type="cite" class=""><div class="" style="margin: 0px;"><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);"><b class="">From: </b></span><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;">Paolo Giannozzi <<a href="mailto:p.giannozzi@gmail.com" class="">p.giannozzi@gmail.com</a>><br class=""></span></div><div class="" style="margin: 0px;"><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);"><b class="">Subject: </b></span><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;"><b class="">Re: [Pw_forum] BUG in ph.x</b><br class=""></span></div><div class="" style="margin: 0px;"><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);"><b class="">Date: </b></span><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;">29 December 2017 at 04:56:22 GMT-5<br class=""></span></div><div class="" style="margin: 0px;"><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);"><b class="">To: </b></span><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;">PWSCF Forum <<a href="mailto:pw_forum@pwscf.org" class="">pw_forum@pwscf.org</a>><br class=""></span></div><div class="" style="margin: 0px;"><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);"><b class="">Reply-To: </b></span><span class="" style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;">PWSCF Forum <<a href="mailto:pw_forum@pwscf.org" class="">pw_forum@pwscf.org</a>><br class=""></span></div><br class=""><br class=""><div dir="ltr" class="">On Thu, Dec 28, 2017 at 11:24 PM, Ronald Cohen <span dir="ltr" class=""><<a href="mailto:rcohen@carnegiescience.edu" target="_blank" class="">rcohen@carnegiescience.edu</a>></span> wrote:<br class=""><br class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div class="" style="word-wrap: break-word;"><div class="" style="font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; text-align: -webkit-auto; word-wrap: break-word;">forrtl: severe (28): CLOSE error, unit 20, file "Unknown"<br class=""></div></div></blockquote><div class=""><br class=""></div><div class="">the file may be unknown, but the error is not: every time I had this error, it was due to a serial executable run in parallel<br class=""><br class=""></div><div class="">Paolo <br class=""></div></div>-- <br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">Paolo Giannozzi, Dip. Scienze Matematiche Informatiche e Fisiche,<br class="">Univ. Udine, via delle Scienze 208, 33100 Udine, Italy<br class="">Phone +39-0432-558216, fax +39-0432-558222<br class=""><br class=""></div></div></div></div></div></div></div><br class=""></blockquote><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">---</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Ronald Cohen</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Extreme Materials Initiative<br class="">Geophysical Laboratory<br class="">Carnegie Institution<br class="">5251 Broad Branch Rd., N.W.<br class="">Washington, D.C. 20015<br class=""><a href="mailto:rcohen@carnegiescience.edu" class="">rcohen@carnegiescience.edu</a><br class="">office: 202-478-8937<br class="">skype: ronaldcohen</div></div>
</div>
<br class=""></body></html>