Skip to content
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

Add more idaklu solver options #4249

Closed
wants to merge 69 commits into from

Commits on May 1, 2024

  1. Bump to v24.5rc0

    Saransh-cpp committed May 1, 2024
    Configuration menu
    Copy the full SHA
    f66db40 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. Configuration menu
    Copy the full SHA
    c6a48e8 View commit details
    Browse the repository at this point in the history
  2. Update publish_pypi.yml

    Saransh-cpp authored Jun 25, 2024
    Configuration menu
    Copy the full SHA
    139776e View commit details
    Browse the repository at this point in the history
  3. Remove T flag

    kratman authored Jun 25, 2024
    Configuration menu
    Copy the full SHA
    d8745c8 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. Configuration menu
    Copy the full SHA
    8fc5fd4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e25db2a View commit details
    Browse the repository at this point in the history
  3. Revert "Update CasadiSolverOpenMP.cpp"

    This reverts commit e25db2a.
    MarcBerliner committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    2934ff8 View commit details
    Browse the repository at this point in the history
  4. Update CHANGELOG.md

    MarcBerliner committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    6f75ea2 View commit details
    Browse the repository at this point in the history
  5. stricter tolerances on tests

    `max_number_steps` -> `max_num_steps` to match casadi
    MarcBerliner committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    5392a6a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d3cc479 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Configuration menu
    Copy the full SHA
    da2fe61 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

  1. Update pybamm/solvers/idaklu_solver.py

    Co-authored-by: Eric G. Kratz <[email protected]>
    MarcBerliner and kratman authored Jul 11, 2024
    Configuration menu
    Copy the full SHA
    20e1334 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5e220e9 View commit details
    Browse the repository at this point in the history
  3. Update pybamm/solvers/idaklu_solver.py

    Co-authored-by: Eric G. Kratz <[email protected]>
    MarcBerliner and kratman authored Jul 11, 2024
    Configuration menu
    Copy the full SHA
    0dc7a47 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c85e503 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    83c4267 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1c021a5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b01db78 View commit details
    Browse the repository at this point in the history
  8. (feat): more idaklu options

    MarcBerliner authored and kratman committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    b5bc7b5 View commit details
    Browse the repository at this point in the history
  9. Update CasadiSolverOpenMP.cpp

    MarcBerliner authored and kratman committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    0fcd738 View commit details
    Browse the repository at this point in the history
  10. Revert "Update CasadiSolverOpenMP.cpp"

    This reverts commit e25db2a.
    MarcBerliner authored and kratman committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    8e80887 View commit details
    Browse the repository at this point in the history
  11. Update CHANGELOG.md

    MarcBerliner authored and kratman committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    56ca9eb View commit details
    Browse the repository at this point in the history
  12. stricter tolerances on tests

    `max_number_steps` -> `max_num_steps` to match casadi
    MarcBerliner authored and kratman committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    f0c5a50 View commit details
    Browse the repository at this point in the history
  13. fix tests for macos12 and ubuntu

    MarcBerliner authored and kratman committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    1578770 View commit details
    Browse the repository at this point in the history
  14. Update pybamm/solvers/idaklu_solver.py

    Co-authored-by: Eric G. Kratz <[email protected]>
    MarcBerliner and kratman committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    ae64817 View commit details
    Browse the repository at this point in the history
  15. style: pre-commit fixes

    pre-commit-ci[bot] authored and kratman committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    320f1dd View commit details
    Browse the repository at this point in the history
  16. Update pybamm/solvers/idaklu_solver.py

    Co-authored-by: Eric G. Kratz <[email protected]>
    MarcBerliner and kratman committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    db684e9 View commit details
    Browse the repository at this point in the history
  17. remove unnecessary enumerate

    MarcBerliner authored and kratman committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    003aae3 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    df5ae3f View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    fc97188 View commit details
    Browse the repository at this point in the history
  20. Fix another minor warning

    kratman committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    61eacc6 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    37b1973 View commit details
    Browse the repository at this point in the history
  22. Revert "Merge branch 'idaklu-options' of https://github.com/MarcBerli…

    …ner/PyBaMM into idaklu-options"
    
    This reverts commit 37b1973, reversing
    changes made to b01db78.
    MarcBerliner committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    c71fa5e View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. Configuration menu
    Copy the full SHA
    dad1509 View commit details
    Browse the repository at this point in the history
  2. Fix test pypi worflow (pybamm-team#4217)

    * Update test pypi
    
    * Style fix
    kratman committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    ba2f7a0 View commit details
    Browse the repository at this point in the history
  3. Make function for handling time or reuse an existing one (pybamm-team…

    …#4209)
    
    * Make function for handling time or reuse an existing one
    Fixes pybamm-team#4113
    
    * style: pre-commit fixes
    
    * fixing raises RegEx Error Experiment Test
    
    * fix pre-commit error
    
    * Update pybamm/callbacks.py
    
    Co-authored-by: Eric G. Kratz <[email protected]>
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Agriya Khetarpal <[email protected]>
    Co-authored-by: Valentin Sulzer <[email protected]>
    Co-authored-by: Eric G. Kratz <[email protected]>
    5 people committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    1e582fd View commit details
    Browse the repository at this point in the history
  4. Issue 4224 duration bug (pybamm-team#4239)

    * make longer default duration and calculate it for C-rate
    
    * add tests
    
    * typo
    
    * pybamm-team#4224 add warning for time termination and add abs
    
    * fix tests
    
    * pybamm-team#4224 keep non-C-rate default at 24h for performance reasons
    
    * trying to fix experiment
    
    * fix example
    
    * pybamm-team#4224 eric comments
    
    * fix bug
    valentinsulzer authored and kratman committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    c7ea22f View commit details
    Browse the repository at this point in the history
  5. Fix package directory

    kratman committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    d4c5413 View commit details
    Browse the repository at this point in the history
  6. Update version

    kratman committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    2442907 View commit details
    Browse the repository at this point in the history
  7. bug fixes, add tests

    MarcBerliner committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    313e182 View commit details
    Browse the repository at this point in the history
  8. Apply suggestions from code review

    Co-authored-by: Eric G. Kratz <[email protected]>
    MarcBerliner and kratman authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    276a31e View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2024

  1. Add support for MLIR-based expression evaluation (pybamm-team#4199)

    * Fix CodeCov GHA workflow failure (pybamm-team#3845)
    
    This amends the tag for the CodeCov GitHub Action from `4.1.0` to `v4.1.0`. This was a Dependabot error
    
    * Begin refactor IDAKLU solver to support generalisable expressions [i.e. support more than just casadi functions]
    
    * Continue refactor; compiles but with dlopen error on load; committing to test on another machine
    
    * Refactor: Introduce Expression and ExpressionSet classes
    
    * Restructure Expressions with generics folder and implementation-specific subfolders
    
    * Separate Expression classes
    
    * Template Expression class
    
    * WIP: Subclass expressions (remove templates in order to generalise execution framework)
    
    * Subclass expressions and remove unnecessary template arguments
    
    * Isolate casadi functionality to Expression subclasses
    
    * Add IREE expressions class
    
    * Remove breakpoints
    
    * Map input arguments to (reduced) call signature in MLIR
    
    * Add support for inputs
    
    * Support sensitivities
    
    * Pre-commit
    
    * Support output_variables
    
    * Fix designator order error on linux; remove reference to ninja
    
    * OS-invariant library loading
    
    * Convert some pointer arrays to vectors; fixes sporadic crashes
    
    * Fix bad memory allocations
    
    * Tidy-up code
    
    * Tidy up code
    
    * Resolve jax/iree version numbers
    
    * Conditional compilation of iree code
    
    * Fix compiler variables
    
    * Update noxfile sources list
    
    * Pre-commit
    
    * Make IREE tests conditional on IREE install
    
    * Enable IREE in CI unit/integration testing
    
    * Make demotion optional in idaklu_solver.py (still unsupported by IDAKLU)
    
    * style: pre-commit fixes
    
    * Fix expression tree test given change to bracketed expressions
    
    * Codacy corrections and suppressions
    
    * Enable IREE in unit testing
    
    * style: pre-commit fixes
    
    * Enable IREE in coverage testing
    
    * Restrict IREE install to supported MacOS/Python versions
    
    * Restrict IREE supported macOS installs
    
    * Additional tests for IREE (demotion, output_variables, sensititivies)
    
    * style: pre-commit fixes
    
    * Additional tests (improve test coverage)
    
    * Fix IREE unit test
    
    * Fix sensitivities-sparsity bug; improve tests
    
    * Fix tests
    
    * Improve coverage
    
    * Improve coverage (indirect)
    
    * Suppress IREE warning on reload
    
    * style: pre-commit fixes
    
    * Fix codacy warning
    
    * Fix noxfile docstring
    
    * Update noxfile.py
    
    Co-authored-by: Agriya Khetarpal <[email protected]>
    
    * Update pyproject.toml
    
    Co-authored-by: Agriya Khetarpal <[email protected]>
    
    * style: pre-commit fixes
    
    * Update pybamm/solvers/c_solvers/idaklu.cpp
    
    Co-authored-by: Martin Robinson <[email protected]>
    
    * Update pybamm/solvers/c_solvers/idaklu/Expressions/IREE/IREEFunctions.cpp
    
    Co-authored-by: Martin Robinson <[email protected]>
    
    * Try removing no-cover from expression_tree/function.py
    
    * Remove C from class name
    
    * Clarify Base Expression docstrings
    
    * Remove build-time iree.compiler search in CMakeLists.txt
    
    * Add install note to iree-compiler in pyproject.toml
    
    * Add IREE dependencies to docs
    
    * style: pre-commit fixes
    
    * Refactor MLIR parsing into ModuleParser class
    
    * style: pre-commit fixes
    
    * Add codacy hints
    
    * Codacy fix
    
    * Remove no-cover statements
    
    * style: pre-commit fixes
    
    * Coverage fix
    
    ---------
    
    Co-authored-by: Ferran Brosa Planella <[email protected]>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Agriya Khetarpal <[email protected]>
    Co-authored-by: Martin Robinson <[email protected]>
    5 people authored Jul 15, 2024
    Configuration menu
    Copy the full SHA
    7443243 View commit details
    Browse the repository at this point in the history
  2. Fix directory (pybamm-team#4263)

    Co-authored-by: Eric G. Kratz <[email protected]>
    Saransh-cpp and kratman authored Jul 15, 2024
    Configuration menu
    Copy the full SHA
    ae77c74 View commit details
    Browse the repository at this point in the history
  3. Bump github/codeql-action from 3.25.11 to 3.25.12 in the actions group (

    pybamm-team#4268)
    
    Bumps the actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
    
    
    Updates `github/codeql-action` from 3.25.11 to 3.25.12
    - [Release notes](https://github.com/github/codeql-action/releases)
    - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
    - [Commits](github/codeql-action@b611370...4fa2a79)
    
    ---
    updated-dependencies:
    - dependency-name: github/codeql-action
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: actions
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 15, 2024
    Configuration menu
    Copy the full SHA
    640c9f8 View commit details
    Browse the repository at this point in the history
  4. chore: update pre-commit hooks (pybamm-team#4269)

    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.5.1 → v0.5.2](astral-sh/ruff-pre-commit@v0.5.1...v0.5.2)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Jul 15, 2024
    Configuration menu
    Copy the full SHA
    6c1a559 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. Moving a bunch of unit tests to pytest. (pybamm-team#4264)

    * Moving a bunch of unit tests to pytest
    
    Signed-off-by: Pradyot Ranjan <[email protected]>
    
    * style: pre-commit fixes
    
    * style fix
    
    Signed-off-by: Pradyot Ranjan <[email protected]>
    
    * Update tests/unit/test_models/test_full_battery_models/test_lithium_ion/test_mpm_half_cell.py
    
    Co-authored-by: Agriya Khetarpal <[email protected]>
    
    * Update tests/unit/test_models/test_full_battery_models/test_lithium_ion/test_spm.py
    
    Co-authored-by: Agriya Khetarpal <[email protected]>
    
    * Update tests/unit/test_models/test_full_battery_models/test_lithium_ion/test_spme.py
    
    Co-authored-by: Agriya Khetarpal <[email protected]>
    
    * Update tests/unit/test_parameters/test_parameter_sets_class.py
    
    Co-authored-by: Agriya Khetarpal <[email protected]>
    
    * Update tests/unit/test_parameters/test_parameter_sets_class.py
    
    Co-authored-by: Agriya Khetarpal <[email protected]>
    
    * Update tests/unit/test_plotting/test_plot.py
    
    Co-authored-by: Agriya Khetarpal <[email protected]>
    
    * adding skips
    
    Signed-off-by: Pradyot Ranjan <[email protected]>
    
    * Update tests/unit/test_plotting/test_plot.py
    
    Co-authored-by: Agriya Khetarpal <[email protected]>
    
    * adding reason for skips
    
    Signed-off-by: Pradyot Ranjan <[email protected]>
    
    ---------
    
    Signed-off-by: Pradyot Ranjan <[email protected]>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Agriya Khetarpal <[email protected]>
    3 people authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    4796ba9 View commit details
    Browse the repository at this point in the history
  2. Using tempfile for standard_model_test (pybamm-team#4270)

    * Using tempfile for standard_model_test
    
    Signed-off-by: Pradyot Ranjan <[email protected]>
    
    * style: pre-commit fixes
    
    ---------
    
    Signed-off-by: Pradyot Ranjan <[email protected]>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    prady0t and pre-commit-ci[bot] authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    9afe45e View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. Configuration menu
    Copy the full SHA
    fe39f99 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. Merge pull request pybamm-team#4259 from pybamm-team/v24.5rc2

    Release v24.5rc2
    kratman authored Jul 18, 2024
    Configuration menu
    Copy the full SHA
    740fa50 View commit details
    Browse the repository at this point in the history
  2. fix degradation options when one of the phases has no degradation (py…

    …bamm-team#4163)
    
    * fix degradation options when one of the phases has no degradation
    
    * skip Newman Tobias test
    
    ---------
    
    Co-authored-by: Eric G. Kratz <[email protected]>
    Co-authored-by: Arjun Verma <[email protected]>
    3 people authored Jul 18, 2024
    Configuration menu
    Copy the full SHA
    27c29df View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2024

  1. Removing false flagging of assert statements from tests. (pybamm-team…

    …#4236)
    
    * Removing flase flagging of assert statements from tests
    
    Signed-off-by: Pradyot Ranjan <[email protected]>
    
    * style: pre-commit fixes
    
    * Using ruff to check for asserts
    
    Signed-off-by: Pradyot Ranjan <[email protected]>
    
    * Using TypeError instead of assert
    
    Signed-off-by: Pradyot Ranjan <[email protected]>
    
    * Adding back bandit file
    
    Signed-off-by: Pradyot Ranjan <[email protected]>
    
    * style: pre-commit fixes
    
    * Adding tests
    
    Signed-off-by: Pradyot Ranjan <[email protected]>
    
    ---------
    
    Signed-off-by: Pradyot Ranjan <[email protected]>
    Co-authored-by: Pradyot Ranjan <[email protected]>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Eric G. Kratz <[email protected]>
    4 people authored Jul 19, 2024
    Configuration menu
    Copy the full SHA
    ed412f8 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2024

  1. Configuration menu
    Copy the full SHA
    8e338bc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    99e029b View commit details
    Browse the repository at this point in the history
  3. Revert "Update CasadiSolverOpenMP.cpp"

    This reverts commit e25db2a.
    MarcBerliner committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    8a1a0ed View commit details
    Browse the repository at this point in the history
  4. Update CHANGELOG.md

    MarcBerliner committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    9be2344 View commit details
    Browse the repository at this point in the history
  5. stricter tolerances on tests

    `max_number_steps` -> `max_num_steps` to match casadi
    MarcBerliner committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    1c46de3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ad767a8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    de2e85e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    13d1e78 View commit details
    Browse the repository at this point in the history
  9. Fix pointer issues and added const

    kratman authored and MarcBerliner committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    28ed7eb View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    52082fb View commit details
    Browse the repository at this point in the history
  11. Update pybamm/solvers/idaklu_solver.py

    Co-authored-by: Eric G. Kratz <[email protected]>
    MarcBerliner and kratman committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    9fb9195 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    820e044 View commit details
    Browse the repository at this point in the history
  13. Fix another minor warning

    kratman authored and MarcBerliner committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    ef4fd6b View commit details
    Browse the repository at this point in the history
  14. bug fixes, add tests

    MarcBerliner committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    fa854f9 View commit details
    Browse the repository at this point in the history
  15. Apply suggestions from code review

    Co-authored-by: Eric G. Kratz <[email protected]>
    MarcBerliner and kratman committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    964589c View commit details
    Browse the repository at this point in the history
  16. complete rebase

    MarcBerliner committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    b6dff3f View commit details
    Browse the repository at this point in the history
  17. Delete Options.hpp

    MarcBerliner committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    82fe499 View commit details
    Browse the repository at this point in the history
  18. Create Options.hpp

    MarcBerliner committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    d55a403 View commit details
    Browse the repository at this point in the history