Message Boards Message Boards

GROUPS:

Get NDSolve to not crash while solving a pde?

Posted 1 year ago
1972 Views
|
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 12.1.1.0]. Thanks a lot for any help.

Attachments:
4 Replies

Tested on 12.2.0.0. 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
Attachments
Remove
or Discard

Group Abstract Group Abstract