[FORTRAN] Strange Characters in output

Click For Summary

Discussion Overview

The discussion revolves around issues encountered while compiling a Fortran code, specifically related to strange characters appearing in the output and errors during execution. Participants are exploring potential causes and solutions, focusing on both the code and the input file used.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant reports encountering odd characters in the output and errors when compiling a Fortran code, which previously worked with specified input.
  • Another participant suggests that sharing the code and input file content would be helpful for troubleshooting.
  • A third participant provides a link to the code and input file, indicating the specific program and input being used.
  • One participant argues that the code may not have functioned correctly in standard Fortran and proposes initializing certain variables to potentially eliminate the junk characters in the output.

Areas of Agreement / Disagreement

Participants do not appear to reach a consensus on the cause of the strange characters or the errors, and multiple viewpoints on potential solutions are presented.

Contextual Notes

There are limitations regarding the clarity of the input file's content and the specific details of the code being discussed, which may affect the troubleshooting process.

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.
 
Technology news 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.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 59 ·
2
Replies
59
Views
12K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
11K