[Pw_forum] compiling error during the installation of the GPU release of Quantum ESpresso

Paolo Giannozzi giannozz at democritos.it
Fri Aug 5 14:53:09 CEST 2011


On Aug 3, 2011, at 14:33 , fabrizio gala wrote:

>         IF (err) THEN
>             1
> Error: IF clause at (1) requires a scalar LOGICAL expression

assuming that err is an integer variable, the correct syntax is "IF  
( err > 0 ) THEN"
Some compilers accept integers in logical expressions (0=.false.,  
1=.true.) but
this is nonstandard

P.
---
Paolo Giannozzi, Dept of Chemistry&Physics&Environment,
Univ. Udine, via delle Scienze 208, 33100 Udine, Italy
Phone +39-0432-558216, fax +39-0432-558222







More information about the users mailing list