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.
try/catch in matlab for COMSOL
Posted 16.11.2012, 01:05 GMT-5 Version 4.0, Version 4.0a, Version 4.1, Version 4.2, Version 4.2a, Version 4.3, Version 4.3a, Version 4.3b, Version 4.4, Version 5.0, Version 5.1, Version 5.2, Version 5.2a 2 Replies
Please login with a confirmed email address before reporting spam
For example, can I have COMSOL output the iterations as it solves such that if it hits a certain amount, I can quickly tell if I need to skip that set of parameters. This is inside a huge FOR loop as I need to sweep over a very large parametric space.
"??? Java exception occurred:
Exception:
com.comsol.util.exceptions.FlException: Failed to
find a solution for the initial parameter
(rethrown as
com.comsol.util.exceptions.FlException)
(rethrown as
com.comsol.util.exceptions.FlException)
Messages:
The following feature has encountered a problem
The following feature has encountered a problem
Failed to find a solution for the initial
parameter
Maximum number of Newton iterations reached
Returned solution is not converged
- Feature: Stationary Solver 1 (sol1/s1)
- Error: Failed to find a solution for the
initial parameter."
Hello Alexander Warning
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.