Thank you. perhaps did not make it clear. The error is (was)outside this block, as in most cases for segmentation fault function argument mismatch (one of the subroutine calls used in the function). but what would like to know is, how can that cause such an error?
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...
Landed up in more disbelieving stuff. The way i was testing that subroutine (A) was printing the matrix(argument) that was passed on from B and then used that in the test program by reading. Now, it turns out that in the same program if i do this, that is, just print the matrix to a file and...
I have a subroutine let us call it A(x,y,z).
Case 1: A is called from another subroutine say B (B is just one of the subroutines the main function uses-so a lot more .f files are compiled together along with it). The results i get are incorrect.
Case 2: But when i call the same subroutine...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.