- #71
Anglea
- 89
- 0
Please can you help me with this code in FORTRAN 95, attached with the errors
I've written this code as an example of module in F95, but I've got these error message
Anyone could help me please
Code:
module A
implicit none
! DEFINE GLOBAL DATA
integer, parameter :: dp=kind(1.0d0)
integer :: i,n,n_max
!
integer, parameter :: no=30
real(kind=dp), parameter :: zero=0,one=1,two=2
real(dp), dimension(:) :: o,A,r,t,u
real(dp), allocatable :: z(:)
n = size(o)
n = size(A)
n = size(r)
n = size(t)
n = size(u)
write(*,*) 'Input the dimension of matrix z'
read(*,*) no_max
allocate(z(no_max))
!
deallocate(z)
end module A
PHP:
Error: A.f90, line 12: syntax error
detected at <end-of-statement>@WRITE
*** Malformed statement
*** Malformed statement
*** Malformed statement
*** Malformed statement
[f95 terminated - errors found by pass 1]