-
-
Notifications
You must be signed in to change notification settings - Fork 577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 2026 total reaction #2144
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2144 +/- ##
===========================================
- Coverage 99.38% 99.38% -0.01%
===========================================
Files 355 356 +1
Lines 19308 19297 -11
===========================================
- Hits 19189 19178 -11
Misses 119 119
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, @tinosulzer looks good! just a couple of minor comments
|
||
# Sum variables | ||
if pybamm.xyz_average(j_p).id == pybamm.Scalar(0).id: | ||
a_p = j_p # zero |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a more detailed comment here? on first read setting a
to zero seems wrong
Yeah that’s clearer, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @tinosulzer!
Description
Creates a separate submodel for the total kinetics ("sum of ...." variables
Continuing to break up #2073
Fixes #2026
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
Key checklist:
$ flake8
$ python run-tests.py --unit
$ cd docs
and then$ make clean; make html
You can run all three at once, using
$ python run-tests.py --quick
.Further checks: