Failing Gracefully

I added the code to test whether or not the coupling succeeded or failed. At this point, I also realize while yes, the code does work (just had one fail out on me) simply having it stop isn’t such a graceful failure. The .backstep function passes a success or failure variable and that’s a good thing, but the BCIMA (in order to work with the ABCIMA software and my eventual hopes of automated numerical experiments) needs to do something other than simply fail loudly (no matter how ideal this may ordinarily be).

What I need it to do, in some sense, is to go ahead and tell ABCIMA “Hey, I failed” and for ABCIMA to go “Okay, I’ll just try again with a different sample setup.” I’m sure there’s a way to work that out and still keep a simple control structure, so I’m investigating the break() function to see what I can see.

No comments yet

Leave a reply