Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Azorio

    Fortran missing values

    I figured it out nvm.
  2. Azorio

    Fortran missing values

    The ***** appears when I put in a specified format. I took out the specified format statement and the code prints -99.9 through out the entire loop.MY guess is that is overwritting the data in the array and replacing it with -99.9 rather than replacing the values that are not present in the...
  3. Azorio

    Read and Display data in FORTRAN

    mikrom, Sorry, I wasn't aware of the etiquette.
  4. Azorio

    Fortran missing values

    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. The code below print "0.00" where there isn't data to be read. I...
  5. Azorio

    Read and Display data in FORTRAN

    Okay it all works now including the original file. I think changing the FORMAT statement made the difference. Thank you very much.
  6. Azorio

    Read and Display data in FORTRAN

    Salgerman, I tried typing out the values myself by hand and you were right. You're code works beautifully, my code reads the fine but when it comes to the real numbers it's carrying them out to 6 decimal places.There must be some characters that are not allowing my read statement to work...
  7. Azorio

    Read and Display data in FORTRAN

    I ran your program including using testx < testx.txt and it still will not work. Maybe there is something wrong with the file? I don't know what to do.
  8. Azorio

    Read and Display data in FORTRAN

    Salgerman, I am not trying to write the values to a new file. I just want the display to show up in the terminal via PRINT statement. I've tried using a different text editor and that did not work. I don't want to deviate much from my code unless it's absolutely necessary. ie opening the file...
  9. Azorio

    Read and Display data in FORTRAN

    Fjacq, I rewrote the READ statement as you said and I do not get a program error; however, the numerical data is not being printed to the screen. Salgerman, I changed the Y, M, D to integers. I'm not sure what you mean with using a DO WHILE in my program.
  10. Azorio

    Read and Display data in FORTRAN

    I am trying to read and display data from a text file in FORTRAN. Eventually I want to store the data in an array to calculate specific averages but right now I am having trouble getting the data to be read and displayed. With the code below I am getting a program error "STOP ***Input error***"...

Part and Inventory Search

Back
Top