YuanFeng Shi 石元峰
DPhil Student (Atomic and Laser Physics) 原子与激光物理博士在读
Dept. of Phys., Univ. of Oxford 牛津大学物理系
Mobile Phone 移动电话: +86 182-1740-2301 / +44 07421-990313
To unsubscribe from the SUNDIALS-USERS list: write to: mailto:SUNDIALS-USERS-...@LISTSERV.LLNL.GOV
Hi,
I’ve encountered a similar issue in a different type of problem at late times in the integration. In my case, I’ve found that restricting the maximum time step to a sufficiently small value at late times generally fixes the problem, although it will likely slow the code unless you build in an additional change to the maximum step size after the difficult time has passed. In your case, your restart may be causing the second integration to take initially smaller steps after the restart just prior to the difficult time that allows the code to successfully get past this time.
I’m not sure why the integrator is unable to successfully recover on its own, especially since the robustness of CVODE is well established. Nonetheless, it seems plausible that, under certain circumstances, once the code completes a step with a step size that is outside the stability range of the integration scheme, it’s somehow unable to recover. One can also fiddle with resetting the error tolerances, and more extremely, changing some of the default settings in CVODE such as the maximum number of corrector convergence iterations, the maximum number of step refinements, the maximum order of the integration, etc. I’ve tried all of these (without necessarily understanding all the ramifications!), but the thing that seems to have worked for me is what I suggested in the first paragraph.
Good luck!
Steve
From:
sundial...@llnl.gov <sundial...@llnl.gov> on behalf of Yuanfeng Shi <00002b89c253b98...@LISTSERV.LLNL.GOV>
Date: Friday, September 27, 2024 at 11:21 AM
To: SUNDIAL...@LISTSERV.LLNL.GOV <SUNDIAL...@LISTSERV.LLNL.GOV>
Subject: [EXTERNAL] [sundials-users] CVODE - Can you please help?
收到此邮件的某些人通常不会收到来自 00002b89c253b98...@listserv.llnl.gov 的电子邮件。了解为什么这一点很重要 |