ComputationalScienceLaboratory / ODE-Test-Problems

A MATLAB suite of initial value problems
https://computationalsciencelaboratory.github.io/ODE-Test-Problems/
MIT License
9 stars 2 forks source link

Use prop validation for Problem and remove validateNewState #47

Closed Steven-Roberts closed 1 year ago

AndreyAPopov commented 1 year ago

Everything that follows is with OTP.install version:

All tests run correctly after changing the != to ~=

Then for brusselator:

>> m.Y0 = [3; 1; 3] Error using otp.Problem/set.Y0 Expected Y0 to have 2 components but has 3

>> m.TimeSpan = [0, 1, 2]; Error setting property 'TimeSpan' of class 'otp.Problem'. Value must be a vector with 2 elements.

So that works. Everything else seems to work.