-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Conversation
Codecov Report
@@ 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
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
src/trustRegion.jl
Outdated
@@ -246,6 +249,7 @@ function SciMLBase.__init(prob::NonlinearProblem{uType, iip}, alg::TrustRegion, | |||
else | |||
u = deepcopy(prob.u0) | |||
end | |||
u_prev = deepcopy(u) |
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.
This is only needed by some algorithms though, right? So in many cases it can be made as an empty array?
This should be fine, we can look into optimizing that copyto! operation later when we get to profiling. |
The last pr got messed up a little so opening a new one. tests pass, formatted with no conflicts!