ranjith1009
Programmer
This is a portion of a program i am working on.
-------------------------
write(*,*) psi,t,NOB,pi
qn=IDINT((psi-t)*NOB/(2*pi)+0.5d0)
write(*,*) t,qn
write(*,*) 'line'
-----------------
output for first write statement:
2.0943951023931953 0.0000000000000000 3 3.1415926535897931
output for second write statement:
0.0000000000000000 1
output for third write statement:
line
------------------------
I get the error "Segmentation fault".
The variable qn is not used anywhere else (it was for debugging purpose).
And this error no more appears if i change the statement to:
write(*,*) t,qn+1
Irrespective of whatever exists before and after the portion of the code i pasted above (and error most likely is from outside this-third write executed!), these look quite strange. If anyone has some thoughts, it will be a great occasion for me to learn.
addtl info: using f95 compiler on linux.
Thanks,
Ranjith.
-------------------------
write(*,*) psi,t,NOB,pi
qn=IDINT((psi-t)*NOB/(2*pi)+0.5d0)
write(*,*) t,qn
write(*,*) 'line'
-----------------
output for first write statement:
2.0943951023931953 0.0000000000000000 3 3.1415926535897931
output for second write statement:
0.0000000000000000 1
output for third write statement:
line
------------------------
I get the error "Segmentation fault".
The variable qn is not used anywhere else (it was for debugging purpose).
And this error no more appears if i change the statement to:
write(*,*) t,qn+1
Irrespective of whatever exists before and after the portion of the code i pasted above (and error most likely is from outside this-third write executed!), these look quite strange. If anyone has some thoughts, it will be a great occasion for me to learn.
addtl info: using f95 compiler on linux.
Thanks,
Ranjith.