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

[FORTRAN] Strange Characters in output

  1. Oct 22, 2012 #1
    Hi, I am trying to compile a code that should work fine, but I am getting errors and also some odd characters are printing on the screen. This is the output:


    ENTER INPUT FILE NAME (INCLUDE EXTENSION NAME)
    blisw.inp
    YOUR INPUT FILE IS
    blisw.inp
    THIS PROGRAM CURV.EXE WILL GENERATE SEVERAL OUTPUT FILES:
    1. OUTPUT FILE NAME
    bliswOUT.TXT5ø…àV5P
    @
    2. SUMMARY OUTPUT FILE NAME
    bliswSUMMARYOUT.TXTtaßé*ƒ`
    3. EXTERNAL VELOCITY IN FILE FORT.11
    4. VELOCITY PROFILE IN FILE FORT.12
    5. VELOCITY PROFILE along Stream Line coordinate System in File fort.10
    6. Shape Factor,Rtheta Reynolds number based on momentum
    thickness along external strea, in File FORT.88
    invalid number: incomprehensible list input
    apparent state: unit 55 named blisw.inp
    last format: list io
    lately reading direct formatted external IO
    Aborted (core dumped)

    The strange thing is that the code has been compiled before (its from a book), and that executable works fine when I specify the input, its only when I compile the source code that I get this error. I have tried several compilers so far (unix environment, silverfrost, g77) and this same thing happens. Any help with this would be very appreciated, thank you.
     
  2. jcsd
  3. Oct 22, 2012 #2
    It would help if you posted the code.
    It would help if you posted the content of the input file ( blisw.inp ? )
     
  4. Oct 22, 2012 #3
  5. Oct 22, 2012 #4

    AlephZero

    User Avatar
    Science Advisor
    Homework Helper

    The code would never have worked properly in standard Fortran, except by good luck.

    You could try adding
    Code (Text):

    INPUT_NAME = " "
    OUTPUT_NAME = " "
    SUMMARY_NAME = " "
     
    at the start of the program. That might get rid of the "junk" characters.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: [FORTRAN] Strange Characters in output
  1. A strange fortran code (Replies: 5)

  2. FORTRAN strange issue (Replies: 7)

Loading...