For Programmers: Free Programming Magazines  


Home > Archive > Fortran > April 2005 > mixing logical with real in equation









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author mixing logical with real in equation
jam

2005-04-25, 3:59 pm

Hello,

I am looking at some fortran 90 source code that was apparently written
using Visual Fortran and am seeing something I have never seen before
and am surprised that it's legal (or is it?). The code apparently works
but when I compile using Forte on a Sun box it complains as I would
expect.

Here is a snippet of the code. Can someone explain to me how this can
be done and if it's legal?

NT=VSP(4,I)+.5
COND=-((K-1)*T2*(NT.EQ.1)+VOLT*(NT.EQ.2))

Thanks in advance.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com