Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. swahelian

    Subroutine as an argument

    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...
  2. swahelian

    Subroutine as an argument

    Sorry, but how do I declare a subroutine?
  3. swahelian

    Subroutine as an argument

    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.
  4. swahelian

    Subroutine as an argument

    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...
  5. swahelian

    Subroutine as an argument

    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...

Part and Inventory Search

Back
Top