Is there any data after the WRITE(7, 1 10) line? If yes, write the data into the file specified by "7" in the format specified by "1 10". If there is no data after this trip, then there is something wrong with this statement.
For example:
open(7,file="a.txt ")! Open the file "a.txt" and replace the file name with the number "7" in the program.
Write (7, *)3! Write 3 into the file specified by "7" (that is, "a.txt") in the default format, and the default is an integer.
Write (7, 1 10) 3! Write 3 into the file specified by "7" in the format specified by tag 1 10; The result shows 3.000000 in a.txt,
! Because of the format specified by labelNo. 1 10 is the output real number, with the width accounting for 10, and 6 decimal places are reserved.
Close (7)! Turn off "7" (that is, a.txt)
1 10 format (f 10.6)
2). Complex, parameter:: A=(0. , 1.)
A complex number consists of a real part and an imaginary part, that is, a complex number can be written as w=a+i*b, and both A and B are real numbers;
The function of this statement is to define a complex constant A, whose value is I, that is, A = 0+I *1.0 = i;
Because a is a constant, the value of a cannot be changed in the program.