'How can I debug nwilling to write output files compilation terminated in fortran?
Fortran compile error: It says: unwilling to write output files compilation terminated. Can you please take a look into my fortran code?
program potential implict none !variable real8 r, theta , V ! given variable integer4 n
!assign values
r = 0.82 ! unit in meter
theta = pi/4
x = cos(theta)
n = 14 ! i am using n = 14 for f14
V = potential(r, theta,n) !
!input/output
11 write(,) V ! "Electrical Potential at r= 0.82m and theta = pi/4 radian is", V
end
!defining two functions and inside the funtion I am using conditions
function potential(r, theta, n)
12 write(*, ) 2f(n, theta)/(r**15) go to 11
! end function potential
function potential(r, theta, n)
write(*, *) 2*f(n, theta)/(r**15)
go to 12
! end function potential
Fortran compile error: It says: unwilling to write output files compilation terminated.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
