- #1
s_hy
- 61
- 0
Hi all,
I got this error:
after executing below code:
what is that mean of specifier D?
thank you
I got this error:
Code:
rm -f *.o *.mod *.MOD *.exe *.stackdump main
gfortran -g -I/usr/include -c main.f90
gfortran -g -I/usr/include -c subroutines.f90
subroutines.f90:21.16:
10 format(data,'i3.3','.dat')
1
Error: Positive width required in format specifier D at (1)
subroutines.f90:13.22:
write (filename,10) a
1
Error: FORMAT label 10 at (1) not defined
make: *** [subroutines.o] Error 1
./runcase.sh: line 11: ./main: No such file or directory
after executing below code:
Code:
subroutine outputtest
implicit none
integer :: a,io, i,j,k,ierror
double precision, dimension (500,500) :: x,y,z
character (len=20) :: filename
open(200,file=filename, status = 'new', action = 'write', iostat = ierror)
do a = 1,20
write (filename,10) a
open (100,file = filename)
do i = 1,299
do j = 1,299
write (200,*) x(120,120),y(120,120),z(120,120)
end do
end do
! write(*,*) a
10 format(data,'i3.3','.dat')
end do
end subroutine
what is that mean of specifier D?
thank you