<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi,
<div class=""><br class="">
</div>
<div class="">Thank you for reporting the issue with the PGI compiler on Environ. </div>
<div class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class="">If you find other instances or other problems, don’t hesitate to let me know.</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class=""><br class="">
</div>
<div class="">Oliviero</div>
<div class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Jun 24, 2020, at 10:54 AM, Paolo Giannozzi <<a href="mailto:p.giannozzi@gmail.com" class="">p.giannozzi@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class=""><span style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Illegal
 attribute - intent specified for nondummy argumen</span></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>