Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Fortran missing values

  1. Jan 21, 2012 #1
    I am trying to figure out how to represent missing values in an array with a value I know won't be in there for example -99.9.

    A sample of my code, is below. The array "pro" has been read in from a data file of numeric values. I need the do loop range to stay fixed because other parts of the array that I will be working with fill the range, but this specific part does not.

    Code (Text):
    DO i=1,31
    PRINT *, pro(1,3,i)
    END DO
    I have tried setting the array equal to -99.9 before the loop but all that prints is "*****".
  2. jcsd
  3. Mar 15, 2012 #2
    You need to post the entire code. The code that doesn't work
    is what precedes these 3 lines.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook