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

Removing Allocation for Inexact Jacobian #266

Merged
merged 5 commits into from
Nov 1, 2023

Conversation

yonatanwesen
Copy link
Contributor

@yonatanwesen yonatanwesen commented Oct 27, 2023

This PR make sure that we don't allocate memory when computing the inexact Jacobian for PT methods. Instead, we just overwrite the jacobian that is already allocated. @avik-pal @ChrisRackauckas

@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

Merging #266 (abaf747) into master (3565824) will decrease coverage by 52.64%.
The diff coverage is 73.33%.

@@             Coverage Diff             @@
##           master     #266       +/-   ##
===========================================
- Coverage   93.04%   40.40%   -52.64%     
===========================================
  Files          19       19               
  Lines        1796     1767       -29     
===========================================
- Hits         1671      714      -957     
- Misses        125     1053      +928     
Files Coverage Δ
src/NonlinearSolve.jl 100.00% <100.00%> (ø)
src/pseudotransient.jl 66.29% <71.42%> (-33.71%) ⬇️

... and 16 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

src/pseudotransient.jl Outdated Show resolved Hide resolved
src/pseudotransient.jl Outdated Show resolved Hide resolved
if J isa SciMLBase.AbstractSciMLOperator
J = J - (1 / alpha) * I
else
J .= J - (1 / alpha) * I
Copy link
Member

Choose a reason for hiding this comment

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

Project.toml Show resolved Hide resolved
src/NonlinearSolve.jl Outdated Show resolved Hide resolved
src/pseudotransient.jl Outdated Show resolved Hide resolved
@ChrisRackauckas ChrisRackauckas merged commit 1e4c3c0 into SciML:master Nov 1, 2023
4 of 11 checks passed
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.

3 participants