Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Does not throw an error in IFORT

JohnNichols
Valued Contributor III
517 Views
else if(J .gt. (yshift + spy + 20 + spy2) .and. j .lt. (yshift+ spy + 25 +  + spy2)) then

Note double + + 

it should throw an error 

0 Kudos
1 Solution
OP1
New Contributor III
497 Views

This seems perfectly fine, the second "+" is just interpreted as a unary operator.

View solution in original post

1 Reply
OP1
New Contributor III
498 Views

This seems perfectly fine, the second "+" is just interpreted as a unary operator.

Reply