我要评分
获取效率
正确性
完整性
易理解

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.).