Error with Logical Variables
Symptom
The following error is reported during compilation:
pr3d.f:88.21:
WANTSQRTS = (FSCOP == .TRUE.)
1
Error: Logicals at (1) must be compared with .eqv. instead of ==
make: *** [spider_linux_gfort.a(pr3d.o)] Error 1
Cause
The equivalence of logical variables required by the standard Fortran should use .eqv. The Intel compiler supports the == extension.
Procedure
Change WANTSQRTS = (FSCOP == .TRUE.) to WANTSQRTS = (FSCOP .eqv. .TRUE.).
Parent topic: Common Problems (Intel Extension)