Tieske909090
Technical User
For school I have to do a project with Fortran95. Without saying too much about the project, this is my problem:
------------------------------------
implicit none
! Declaration of variables:
integer :: nnodes
integer, dimension(1:nnodes,1:2) :: coor %%error in this line
integer :: i = 0
! Input of the nodes:
write (*,*) 'Number of nodes: '
read (*,*) nnodes
write (*,*) 'Number of nodes is ', nnodes
-------------------------------------------
I need the coor matrix to fill in the coordinates of the nodes later on. But the program gives me this error:
"error 304 - Non-writable expression in READ statement"
I think it has something to do that I didnt give a value to 'nnodes' in that line yet. But if I paste the line to beneath the 'read and write'-lines, it gives this error:
"error 299 - Statement ordering error - INTEGER cannot appear after executable statements"
Anyone can help? Thanks in advance!
Tieske909090
------------------------------------
implicit none
! Declaration of variables:
integer :: nnodes
integer, dimension(1:nnodes,1:2) :: coor %%error in this line
integer :: i = 0
! Input of the nodes:
write (*,*) 'Number of nodes: '
read (*,*) nnodes
write (*,*) 'Number of nodes is ', nnodes
-------------------------------------------
I need the coor matrix to fill in the coordinates of the nodes later on. But the program gives me this error:
"error 304 - Non-writable expression in READ statement"
I think it has something to do that I didnt give a value to 'nnodes' in that line yet. But if I paste the line to beneath the 'read and write'-lines, it gives this error:
"error 299 - Statement ordering error - INTEGER cannot appear after executable statements"
Anyone can help? Thanks in advance!
Tieske909090