Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
General Suggested Debugging Method
Posted Mar 10, 2011, 10:55 a.m. EST 2 Replies
Please login with a confirmed email address before reporting spam
This is a general question about debugging COMSOL models. I'd like to know the most efficient way to debug problems with a model... let me explain...
In written code it's pretty easy to comment out sections of the code and test the remaining to see where the errors are. If it doesn't solve the problem, the original code is still there and easy to uncomment to go back to what it was. But as far as I know there's no analogous method in COMSOL - once you change something the original is gone. For example, I want to try a different boundary condition equation, or change some variables, or solve with a single reaction instead of multiple reactions.
Right now it seems to me the only way to do this kind of testing/debugging *and keep my original information* (key point) is to save as a new model any changes I make. But it seems there's got to be a better way...or is there?
I don't want to get into the particular problem I'm having at this moment - this is a question that is independent of that.
Thanks for any suggestions...
In written code it's pretty easy to comment out sections of the code and test the remaining to see where the errors are. If it doesn't solve the problem, the original code is still there and easy to uncomment to go back to what it was. But as far as I know there's no analogous method in COMSOL - once you change something the original is gone. For example, I want to try a different boundary condition equation, or change some variables, or solve with a single reaction instead of multiple reactions.
Right now it seems to me the only way to do this kind of testing/debugging *and keep my original information* (key point) is to save as a new model any changes I make. But it seems there's got to be a better way...or is there?
I don't want to get into the particular problem I'm having at this moment - this is a question that is independent of that.
Thanks for any suggestions...
2 Replies Last Post Mar 11, 2011, 12:36 p.m. EST