Wednesday 15 September 2010

fortran - Assigning variable number to complex array -


I want to specify the complex array as the variable. Like my code

  Complex indices (3,3) integer i, j do i = 1,3 do j = 1,3 write index (i, j) = (i, j) (*, *) Ends (I, J) ending   

and in this case I am getting an error

  symbol should be in this context A fixed parameter [I] index (i, j) = (i, j)    

You should use the function to assign complex that you want to assign.

  Complex indices (3,3) integer I, j do i = 1,3 do j = 1,3 Indx (i, j) = to write CMPLX (I, J)   

The syntax you tried is only Continuous Literals .

No comments:

Post a Comment