On Friday, October 14, 2022 at 5:45:24 AM UTC-7,
muppe...@googlemail.com wrote:
> gah4 schrieb am Freitag, 14. Oktober 2022 um 09:53:10 UTC+2:
> > ....
> > The question seems not to be what is the file format, but why.
> > Or another way to look at it, how to write that from Fortran.
(snip)
>. So I would like to create the bulk files with one or more Fortran programs
> automatically and start NASTRAN via the command line in a batch file in a second step.
(snip)
> The reason for my question was indeed how to write this in Fortran as simply as possible.
> I keep searching. If I find a solution, I'll write about it.
As well as I know it, there is the 8 column form and 16 column form, and a program
to convert the latter to the former.
It seems to me that the easiest way is to write the latter and use that program.
Current Fortran input routines will accept values without the E,
but not always write them. I am not sure that Fortran 66 programs would
write them, but the standard sounds like they might.
(I believe some will write them with three digit exponents, though.)
If the number is positive, you don't need to leave a column for sign.
If the exponent is only one digit, you don't need a leading zero.
And you don't need the E if you have the sign.
But I don't think they will write them that way now.
There is also a free-form input routine, and I believe again a program to convert
to the 8 column form.