Topic: Operands of comparison operator...
Hello all.
Is there a way to have the compiler allow this comparison? See below.
Error: Operands of comparison operator '.eq.' at (1) are INTEGER(4)/CHARACTER(3)
Below are some code snippets from the original FORTRAN 77 code.
CALL INPUT( 1,'XDO ','XDI ',XDO,XDI)
SUBROUTINE INPUT(K,A,B,C,D)
INTEGER * 4 A,B
51 IF(A.EQ.'XDO'.AND.B.EQ.'XDI')I=1
This results in: Error: Operands of comparison operator '.eq.' at (1) are INTEGER(4)/CHARACTER(3)
I am trying to preserve the original code in its entirety. If changes need to made to allow for the proper comparison, what would the change be?
Any help would be greatly appreciated. Thanks.