[FORTRAN] Strange Characters in output

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 4K views
zstratto
Messages
6
Reaction score
0
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.
 
on Phys.org
It would help if you posted the code.
It would help if you posted the content of the input file ( blisw.inp ? )
 
Hi Gsal,

The code and input can be found here: http://extras.springer.com/2004/978-3-540-20160-1/document/BLISW_stp3d

The program I am trying to compile is blisw.for, and the input is blisw.inp. Thanks.
 
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.