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

CleanUp ROCK Methods and Memory Usage ROCK4 #741

Merged
merged 7 commits into from May 20, 2019
Merged

CleanUp ROCK Methods and Memory Usage ROCK4 #741

merged 7 commits into from May 20, 2019

Conversation

deeepeshthakur
Copy link
Contributor

@ChrisRackauckas
Reduces memory usage in ROCK4.
Makes the code more readable and Implementation style now resembles the paper more for both ROCK2 and ROCK4
Also makes one small correction in perform_step

uᵢ₋₃ = u + a₄₁*uᵢ₋₁
u += B₁*uᵢ₋₁
integrator.opts.adaptive && (tmp = B̂₁*uᵢ₋₁)
uᵢ₋₁ = u + (a₂₁ - B₁)*uᵢ₋₁
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ChrisRackauckas This is addition subtraction of the same thing but the only way to avoid it is to add another array. Also both a21 and B1 are constants so I think doing this should not be an issue.

Copy link
Member

Choose a reason for hiding this comment

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

yeah this should be fine.

@codecov
Copy link

codecov bot commented May 20, 2019

Codecov Report

Merging #741 into master will increase coverage by <.01%.
The diff coverage is 96.06%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #741      +/-   ##
==========================================
+ Coverage   71.63%   71.64%   +<.01%     
==========================================
  Files          89       89              
  Lines       29022    29022              
==========================================
+ Hits        20791    20792       +1     
+ Misses       8231     8230       -1
Impacted Files Coverage Δ
src/caches/rkc_caches.jl 96.34% <100%> (-0.25%) ⬇️
src/rkc_utils.jl 78.61% <80%> (+0.13%) ⬆️
src/perform_step/rkc_perform_step.jl 85.76% <96.34%> (+0.21%) ⬆️

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 c3551ae...003ab62. Read the comment docs.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 69.136% when pulling 003ab62 on deeepeshthakur:ROCKReorganisation into c3551ae on JuliaDiffEq:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 69.136% when pulling 003ab62 on deeepeshthakur:ROCKReorganisation into c3551ae on JuliaDiffEq:master.

Copy link
Member

@ChrisRackauckas ChrisRackauckas left a comment

Choose a reason for hiding this comment

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

I like this a lot

@ChrisRackauckas ChrisRackauckas merged commit fa9b61f into SciML:master May 20, 2019
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.

None yet

3 participants