comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » mpfit
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
mpfit [message #94820] Wed, 25 October 2017 23:34 Go to next message
Bhuvi is currently offline  Bhuvi
Messages: 1
Registered: October 2017
Junior Member
Hi,
I am using mpfit to fit the voigt profile to the given data. But I am getting an error like this
GDL> res=mpfit('voigt',p0,functargs=fa,STATUS=staus,ERRMSG=errmsg )
GDL> print,res
nan
GDL> print,errmsg
ERROR: recursion detected; you cannot run MPFIT recursively

How do we know where is the recursion happening and how to avoid the recursion?
Re: mpfit [message #94843 is a reply to message #94820] Thu, 02 November 2017 08:54 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Thursday, October 26, 2017 at 2:34:38 AM UTC-4, Bhuvi wrote:
> Hi,
> I am using mpfit to fit the voigt profile to the given data. But I am getting an error like this
> GDL> res=mpfit('voigt',p0,functargs=fa,STATUS=staus,ERRMSG=errmsg )
> GDL> print,res
> nan
> GDL> print,errmsg
> ERROR: recursion detected; you cannot run MPFIT recursively
>
> How do we know where is the recursion happening and how to avoid the recursion?

I'm guessing you had one MPFIT session crash in the middle of a fit, then you tried to run it again. As documented in mpfit.pro, you can run MPFIT_RESET_RECURSION to reset the recursion detection.

Craig
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How Could I read dates(strings) into a structure?
Next Topic: how to read date as structure

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 07:24:11 PDT 2025

Total time taken to generate the page: 0.00468 seconds