NickFort:
I tried the external declaration. It compiles and runs but mrqmin fails to give results.
mikrom:
This is the exact text in the "Numerical Recipies" book:
SUBROUTINE mrqmin(x,y,sig,ndata,a,ia,ma,covar,alpha,nca,
* chisq,funcs,alamda)
INTEGER ma,nca,ndata,ia(ma),MMAX
REAL...
Sorry, I misedited my original post, causing confusion. The error should have been:
e6.f(57): error #6404: This name does not have a type, and must have an explicit type. [FUNCS]
&funcs, alamda)
------^
compilation aborted for e6.f (code 1)
In other words: fgauss is funcs.
fgauss is a subroutine in the numerical recipes library (which I link to when I compile the program).
Oke, I declared fgauss as real. It compiles, but when I run the program I get the following error:
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC...
I am new to programming in fortran and am working with the numerical recipes subroutine mrqmin. It takes the following arguments:
mrqmin(x,y,sig,ndata,a,ia,ma,covar,alpha,nca,chisq,funcs,alamda)
The argument funcs is a subroutine wich I declare at the end of my program. Now, when I compile my...
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.