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

Bastin's radius update scheme #191

Merged
merged 10 commits into from
Jun 21, 2023
Merged

Conversation

yash2798
Copy link
Member

The last pr got messed up a little so opening a new one. tests pass, formatted with no conflicts!

@yash2798 yash2798 marked this pull request as ready for review June 20, 2023 22:07
@codecov
Copy link

codecov bot commented Jun 20, 2023

Codecov Report

Merging #191 (88b93b4) into master (8d009b9) will decrease coverage by 0.05%.
The diff coverage is 93.33%.

❗ Current head 88b93b4 differs from pull request most recent head a8f4c33. Consider uploading reports for the commit a8f4c33 to get more accurate results

@@            Coverage Diff             @@
##           master     #191      +/-   ##
==========================================
- Coverage   93.77%   93.73%   -0.05%     
==========================================
  Files           7        7              
  Lines         675      718      +43     
==========================================
+ Hits          633      673      +40     
- Misses         42       45       +3     
Impacted Files Coverage Δ
src/trustRegion.jl 96.95% <93.33%> (-0.67%) ⬇️

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

@@ -246,6 +249,7 @@ function SciMLBase.__init(prob::NonlinearProblem{uType, iip}, alg::TrustRegion,
else
u = deepcopy(prob.u0)
end
u_prev = deepcopy(u)
Copy link
Member

Choose a reason for hiding this comment

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

This is only needed by some algorithms though, right? So in many cases it can be made as an empty array?

@ChrisRackauckas
Copy link
Member

This should be fine, we can look into optimizing that copyto! operation later when we get to profiling.

@ChrisRackauckas ChrisRackauckas merged commit 0abdc34 into SciML:master Jun 21, 2023
@yash2798 yash2798 deleted the ys/bastin_new branch July 7, 2023 13:43
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