Skip to content

Conversation

@valentinsulzer
Copy link
Member

Description

Some changes to the expression tree simplification logic.
Fixes #1816

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.

  • New feature (non-breaking change which adds functionality)
  • Optimization (back-end change that speeds up the code)
  • Bug fix (non-breaking change which fixes an issue)

Key checklist:

  • No style issues: $ flake8
  • All tests pass: $ python run-tests.py --unit
  • The documentation builds: $ cd docs and then $ make clean; make html

You can run all three at once, using $ python run-tests.py --quick.

Further checks:

  • Code is commented, particularly in hard-to-understand areas
  • Tests added that prove fix is effective or that feature works

Copy link
Member

@brosaplanella brosaplanella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, happy to merge when tests pass. Let's remember to add the CHANGELOG and add dion for bug reports.

@codecov
Copy link

codecov bot commented Dec 2, 2021

Codecov Report

Merging #1831 (8de3ee9) into develop (18449d7) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1831   +/-   ##
========================================
  Coverage    99.26%   99.26%           
========================================
  Files          345      345           
  Lines        18900    18944   +44     
========================================
+ Hits         18761    18805   +44     
  Misses         139      139           
Impacted Files Coverage Δ
pybamm/discretisations/discretisation.py 99.78% <ø> (ø)
pybamm/expression_tree/binary_operators.py 99.55% <100.00%> (+0.03%) ⬆️
pybamm/expression_tree/vector.py 100.00% <100.00%> (ø)
pybamm/spatial_methods/finite_volume.py 98.12% <100.00%> (-0.03%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 18449d7...8de3ee9. Read the comment docs.

@valentinsulzer valentinsulzer merged commit f1ec706 into develop Dec 2, 2021
@valentinsulzer valentinsulzer deleted the issue-1816-domain-error branch December 2, 2021 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DomainError when using ce-constant electrolyte transport parameters in submodel surface form="differential"

3 participants