I want to use an internal read as follows:
if (iStnPress /= 99999) read(iStnPress, '(f5.1)') StnPress
Here, iStnPress is declared an integer; StnPress is declared real.
Before the line is executed, iStnPress has been read as '9245'.
My hope was to have StnPress be set to '924.5'
Unfortunately, I get a runtime crash w/ IVF, with the hint that it's taking '9245' to be a unit number.
Any thoughts? Am I trying to do the impossible?