MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: debug compiled function

  • To: mathgroup at
  • Subject: [mg39905] Re: [mg39735] debug compiled function
  • From: "Y.A.Tesiram" <yas at>
  • Date: Tue, 11 Mar 2003 02:36:31 -0500 (EST)
  • Sender: owner-wri-mathgroup at

There is no easy way to debug a compiled function. And the messages are
almost worthless.
I normally comment out say a major portion of the code and then I proceed
by uncommenting major steps in the algorithm, step by step, until the
error is thrown. You can narrow things down pretty quickly in this
fashion provided your code isn't hundreds and hundreds of lines long.

All the best.

On Mon, 3 Mar 2003, Brent Pedersen wrote:

> with certain parameters entered into my compiled function i get:
> CompiledFunction::cfn: Numerical error encountered at instruction 59;
> proceeding with uncompiled evaluation
> how can i most easily find what is instruction 59?
> i would guess there is something i need to wrap in Evaluate[] but can't
> tell what as this is a long function.

  • Prev by Date: trouble solving partial DE
  • Next by Date: Handling expressions. Could any one find a more direct way?
  • Previous by thread: Re: debug compiled function
  • Next by thread: Sum sintaxis