I have a problem with data reading from file.
The contents of the file is:
n a b alpha beta
5 0 3.1415926536 1 -1
But I receiving:
With this line of code I’m traing to visualize the data:
print "(i1, f2.1, f11.10, f5.3, f5.3)", n, a, b, alpha, beta
In the beginning, you will find it beneficial to use list-directed formatting, rather than to specify formats yourself.
If you want to specify formats, read your Fortran documentation and make sure that the edit descriptors match your goals.
For example, F11.10 is not long enough to print the constant (approximately equal to Pi); ten digits after the decimal plus one for the decimal point uses up the field width of 11, leaving no space for the part to the left of the decimal. That is why asterisks were printed instead of the value.