- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm geting the following error:
Run-Time Check Failure #3 - The variable 'R' is being used without being defined.
The trouble is I don't have any variables called R, not in the routine it breaks in, nor anywhere else (well I have a real, parameter :: R = 8314.4in one of the includes, but I'm sure it wouldn't complain with that?). I want to check for use of undefined variables, however this isn't helping me.
Any idea what's going on?
Adrian
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is a bug in this feature, introduced some time after the initial 9.0 release, that causes the name of the variable in the message to be wrong nearly all the time. The fix for this is complicated but is in the works.
All I can suggest for now is to look at which variables are referenced at the point the error occurs.
All I can suggest for now is to look at which variables are referenced at the point the error occurs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunately it's on a return statement :(
Adrian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Perhaps the function value was never defined?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, spot on. :)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page