I2304 multiple models to solver#2481
Conversation
…eam/PyBaMM into i2304-multiple-models-to-solver
…eam/PyBaMM into i2304-multiple-models-to-solver
Codecov ReportBase: 99.72% // Head: 99.72% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #2481 +/- ##
===========================================
- Coverage 99.72% 99.72% -0.01%
===========================================
Files 270 270
Lines 19487 19502 +15
===========================================
+ Hits 19434 19448 +14
- Misses 53 54 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
valentinsulzer
left a comment
There was a problem hiding this comment.
Thanks, looks good and sorry for slow review.
In longer-term future, it would be better if the model itself (rather than the solver) stored the setting up functions, since it seems a bit weird to restrict one model instance per solver. But I'm happy to merge this for now as it fixes the existing bug
|
Thanks @tinosulzer! I'll make those fixes. FYI, I'm quite happy with one-model-one-solver approach. There is always going to be significant setup for any model-solver pairing, and it makes sense to have setup stuff done within an |
|
Ok fair enough, if it isn't broken don't fix it I guess Updates look good so happy to merge once tests pass (merging develop should do it) |
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Description
IDAKLU solver cannot setup more than one model. We have decided to restrict the
BaseSolverto only setup a single model at at time. If multiple models are passed in aRuntimeErroris raisedFixes #2304
Type of change
Key checklist:
$ flake8$ python run-tests.py --unit$ cd docsand then$ make clean; make htmlYou can run all three at once, using
$ python run-tests.py --quick.Further checks: