Message Boards Message Boards


Get NDSolve to not crash while solving a pde?

Posted 1 year ago
4 Replies
1 Total Likes

I am attempting to solve a pde, but after executing for a long period of time, I don't get a solution. It seems Mathematica crashes as all variables in the notebook are rendered void of values. [I am running on MacBook Pro, v. 10.15.7, 16GB RAM, Mathematica version]. Thanks a lot for any help.

4 Replies

Tested on I aborted it after consumption of 80GBytes of memory.

FWIW When I encounter or anticipate this sort of issue in production code, I usually wrap the operation in a VerificationTest[], with constraints on time and/or memory as required. That way I don't lose the whole kernel when the function runs away, and any messages are caught and available for debugging.

Thank you, Kirk. I am new to using Mathematica so still learning. I hope to get some guidance on how we can solve the problem. Do you think it is running out of memory in which chase I could consider running it on a larger machine? Thanks so much.

Posted 1 year ago

Thank you very much. I will work through these suggestions over the next few days.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract