Hi All.
I am computing a quantity within a loop and would like to write it to a file. i am getting a frustrating error (and it is supposed to be a simple thing). Can you guys see where i am going wrong:
open ( unit=40, file='ce')
do J = 0, N2
Ce(J) = D1*dexp(-D3*J*dx)+D2
write (40,200) J, Ce(J)
end do
close (unit=40)
this is the error i am receiving:
write (40,200) J, Ce(J)
^
Undefined label, first referenced at (^)
what am i doing wrong?
I am computing a quantity within a loop and would like to write it to a file. i am getting a frustrating error (and it is supposed to be a simple thing). Can you guys see where i am going wrong:
open ( unit=40, file='ce')
do J = 0, N2
Ce(J) = D1*dexp(-D3*J*dx)+D2
write (40,200) J, Ce(J)
end do
close (unit=40)
this is the error i am receiving:
write (40,200) J, Ce(J)
^
Undefined label, first referenced at (^)
what am i doing wrong?