[FORTRAN] Strange Characters in output

  • Fortran
  • Thread starter zstratto
  • Start date
  • #1
6
0

Main Question or Discussion Point

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.
 

Answers and Replies

  • #2
1,065
53
It would help if you posted the code.
It would help if you posted the content of the input file ( blisw.inp ? )
 
  • #4
AlephZero
Science Advisor
Homework Helper
6,994
291
The code would never have worked properly in standard Fortran, except by good luck.

You could try adding
Code:
INPUT_NAME = " "
OUTPUT_NAME = " "
SUMMARY_NAME = " "
at the start of the program. That might get rid of the "junk" characters.
 

Related Threads on [FORTRAN] Strange Characters in output

  • Last Post
Replies
1
Views
7K
  • Last Post
Replies
7
Views
2K
  • Last Post
Replies
5
Views
4K
Replies
6
Views
3K
Replies
1
Views
4K
  • Last Post
Replies
1
Views
5K
  • Last Post
Replies
3
Views
2K
Replies
2
Views
2K
Replies
1
Views
4K
Replies
3
Views
1K
Top