Return value of this function must match problem size
- March 24, 2025
- 1 reply
- 897 views
Solving ode's I have run into this error before:
I managed to get around it by switching solvers from Radau to BDF, but I still do not know what the message means and changing solvers does not work this time. As shown in the attached (MCAD 11 - converted from MCAD14) worksheet, the denominator of dv does get small but never reaches zero because of the damping factor eta (Increasing eta does help but does not eliminate the problem. and eta should by ~10^{-12} on physical grounds. Setting p0 = 0 in the denominator does eliminate the problem, although I do not see why. So, it does seem like the denominator is the problem, but, if so, I would have expected to get a "calculation does not converge" message. Tried playing around with other parameters to no avail.
Any comments or suggestions would be appreciated.


