How to compile and run as batch?
How to compile and run as batch?
(OP)
I am pretty clueless with Fortran, but would like to convert the following fortran code into a batch mode input
http ://files.e ngineering .com/getfi le.aspx?fo lder=2cb79 806-7bfc-4 809-a490-c 4a1e029f8c 5&file =BJSFM.FOR
- What compiler should I use? G95 seems like a good choice.
- How do I convert it so that it accepts a batch file as input rather than command line?
- What type of modifications to source code need to done to get it to up to par (i.e. fixed format to free format, etc.)
Are there any good manuals on this kind of thing? Thanks for any help.
http
- What compiler should I use? G95 seems like a good choice.
- How do I convert it so that it accepts a batch file as input rather than command line?
- What type of modifications to source code need to done to get it to up to par (i.e. fixed format to free format, etc.)
Are there any good manuals on this kind of thing? Thanks for any help.





RE: How to compile and run as batch?
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: How to compile and run as batch?
But again, I really know next to nothing about Fortran so need to guidance.
Brian
www.espcomposites.com
RE: How to compile and run as batch?
I hope you don't mind me saying so, but this source code requires the attention of an experienced fortan user, not a novice. From a quick scan, I can see that it is old, very old, written in fortran IV or earlier, using Hollerith data and mixing integers with Hollerith data. This has not been part of the standard since before fortran 77, although many current compilers still allow it for the sake of backwards compatibility.
But more seriously there is a severe problem with the code, the GOTO statement on line 128 points to label 240 which is inside the DO 280 and DO 270 loops with the GOTO statement being outside both of these DO loops. This is illegal, because the DO loop counters will not have been given a value when the program flow reaches their CONTINUE statements.
Silverfrost FTN95 correctly refuses to compile the code with this error whilst gfortran does compile the code as it stands but issues a warning message about this problem.
I suggest that you find an experienced fortran programmer to help you.
www.Roshaz.com
RE: How to compile and run as batch?
Thanks for the advice. I am aware of this potential problem with the loop, but "heard" that it would still properly run regardless of this. Either way, this is probably out of my domain and I will need to get someone else involved.
Brian
www.espcomposites.com