Odesolve question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Odesolve question
As part of an iteration program, Odesolve in a solve-block fails when one or more of the (positive) initial conditions is too large. Of course, a priori, I do not know how large is "too large." This failure causes the program to cease functioning, but the failure is itself information that needs to be returned to the program so that it continues to run. How can I guard against this failure? Any help will be much appreciated.
Solved! Go to Solution.
- Labels:
-
Physics
- Tags:
- odesolve
- solve_block
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
See attached for a possible approach. I'm sure there's a less clumsy method, but I'm having an off day!
Alan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Might be possible using 'on error'. Difficult to tell without seing the actual calculation. Upload the worksheet.
Alan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Alan,
Thank you for your reply. A watered-down worksheet is attached.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
See attached for a possible approach. I'm sure there's a less clumsy method, but I'm having an off day!
Alan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you! I will give it a go.
