<div dir="ltr">Dear Oliviero,<div><br></div><div>Thank you very much for your answer!!</div><div>If I remove both e2 and e2_, the code successfully compiles. However, if I keep the line e2_ = 2.D0 the compiler rightfully complains that e2_ has not been explicitly declared. What declaration should be added?</div><div>Thank you again,</div><div><br></div><div><br></div><div>Michele</div><div><br></div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><font size="2" face="arial, helvetica, sans-serif">--<br>Michele Re Fiorentin, PhD<br> <br>Istituto Italiano di Tecnologia (IIT)<br>Center for Sustainable Future Technologies @ PoliTO<br>via Livorno 60<br>10144 Torino (Italy)</font></div><div dir="ltr"><font size="2" face="arial, helvetica, sans-serif">tel: +39 0110904333<br>email:    <a href="mailto:michele.refiorentin@iit.it" style="color:rgb(17,85,204)" target="_blank">michele.refiorentin@iit.it</a></font></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mer 24 giu 2020 alle ore 18:09 Andreussi, Oliviero <<a href="mailto:Oliviero.Andreussi@unt.edu">Oliviero.Andreussi@unt.edu</a>> ha scritto:<br></div><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 style="word-wrap:break-word;line-break:after-white-space">
Hi,
<div><br>
</div>
<div>Thank you for reporting the issue with the PGI compiler on Environ. </div>
<div><br>
</div>
<div>I am really not sure why there should be an error for e2.  I don’t have access to the PGI compiler and I am not sure I can debug this kind of compilation error, I tried searching on google but with not great success (and gfortran and intel fortran
 do not complain about this). I would try to just change the INTENT(IN) to INTENT(INOUT), which should not be needed, but may fix the compiler concerns. </div>
<div><br>
</div>
<div>Note that if you only need to use pw.x and not cp.x (which is very often the case, as I still have to find a good reason to use cp.x with Environ) e2 is not really passed to environ_initbase(), so in fact e2 is not present. I guess this may be
 the source of confusion of PGI, but the argument is OPTIONAL and the compiler should know this. Anyway, another fix is that you remove e2 from the arguments of the environ_initbase() definition and only keep the line e2_ = 2.D0. </div>
<div><br>
</div>
<div>If you find other instances or other problems, don’t hesitate to let me know.</div>
<div><br>
</div>
<div>Best,</div>
<div><br>
</div>
<div>Oliviero</div>
<div>
<div><br>
<blockquote type="cite">
<div>On Jun 24, 2020, at 10:54 AM, Paolo Giannozzi <<a href="mailto:p.giannozzi@gmail.com" target="_blank">p.giannozzi@gmail.com</a>> wrote:</div>
<br>
<div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">Illegal
 attribute - intent specified for nondummy argumen</span></div>
</blockquote>
</div>
<br>
</div>
</div>

_______________________________________________<br>
Quantum ESPRESSO is supported by MaX (<a href="http://www.max-centre.eu/quantum-espresso" rel="noreferrer" target="_blank">www.max-centre.eu/quantum-espresso</a>)<br>
users mailing list <a href="mailto:users@lists.quantum-espresso.org" target="_blank">users@lists.quantum-espresso.org</a><br>
<a href="https://lists.quantum-espresso.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.quantum-espresso.org/mailman/listinfo/users</a></blockquote></div>