Dear Forum,
I am having issues with compiling someone's FORTRAN code. The silver frost compiler is complaining about 'you cannot compare logical values with eq.' on lines 2765 and 2771.
Here are the code snippets for those lines:
c store variables for reguli-falsi, but only if they are smaller than the current values
if (ft(jt).lt.0.0) then
Line2765> if ((ft(jt).gt.fneg.and.lneg.eq..true.).or.lneg.eq..false.) then
tneg=tt(jt)
fneg=ft(jt)
endif
lneg=.true.
else
Line2771> if ((ft(jt).lt.fpos.and.lpos.eq..true.).or.lpos.eq..false.) then
tpos=tt(jt)
fpos=ft(jt)
endif
lpos=.true.
end if