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

Home » Public Forums » archive » Problem with RESOLVE_ROUTINE
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
Problem with RESOLVE_ROUTINE [message #75355] Thu, 24 February 2011 11:17
fgg is currently offline  fgg
Messages: 67
Registered: April 2010
Member
Hi,

I'd like to compile a function from within a procedure, and I'm using RESOLVE_ROUTINE for that:

pro test_pro
resolve_routine, 'test_func', /is_function
print, test_func(2)
end

However, this doesn't seem to be working... if I (1) open the function file (see below), (2) change the return statement to x^3, (3) close it without compiling it, and (4) run the procedure above again, it will continue to print "4".

function test_func, x
return, x^2
end

I have no problems if I enter ".COMPILE test_func" at the command line. Any ideas?

Thank you
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: isodensity contours
Next Topic: Passing more than an initial guess to a function used by NEWTON

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

Current Time: Wed Oct 08 17:12:28 PDT 2025

Total time taken to generate the page: 0.00440 seconds