Skip to content

Fix ::Array{Float64,1} use case in QNDF - #1085

Merged
ChrisRackauckas merged 4 commits into
SciML:masterfrom
utkarsh530:BDFFix
Mar 17, 2020
Merged

ChrisRackauckas merged 4 commits into
SciML:masterfrom
utkarsh530:BDFFix

Conversation

@utkarsh530

Copy link
Copy Markdown
Member

Fixes #1076. @ChrisRackauckas please review.

@coveralls

coveralls commented Mar 16, 2020 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+3.6%) to 86.833% when pulling 8c8adb1 on utkarsh530:BDFFix into 869258e on JuliaDiffEq:master.

Comment thread src/perform_step/bdf_perform_step.jl Outdated
ϕ = zero(γ)
for i = 1:k
ϕ += γₖ[i]*D[i]
ϕ = ϕ .+ γₖ[i]*D[i] # Done .+ because of +(::Rational{Int64}, ::Array{Float64,1}) use case

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
ϕ = ϕ .+ γₖ[i]*D[i] # Done .+ because of +(::Rational{Int64}, ::Array{Float64,1}) use case
ϕ .+= γₖ[i]*D[i]

@codecov

codecov Bot commented Mar 16, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #1085 into master will decrease coverage by 17.49%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1085      +/-   ##
==========================================
- Coverage   76.98%   59.48%   -17.5%     
==========================================
  Files          95       95              
  Lines       31435    31332     -103     
==========================================
- Hits        24199    18637    -5562     
- Misses       7236    12695    +5459
Impacted Files Coverage Δ
src/caches/bdf_caches.jl 13.74% <ø> (-74.92%) ⬇️
src/perform_step/bdf_perform_step.jl 11.55% <0%> (-71.19%) ⬇️
src/caches/rkn_caches.jl 0% <0%> (-100%) ⬇️
src/caches/symplectic_caches.jl 0% <0%> (-100%) ⬇️
src/caches/prk_caches.jl 0% <0%> (-100%) ⬇️
src/caches/pdirk_caches.jl 0% <0%> (-100%) ⬇️
src/perform_step/prk_perform_step.jl 0% <0%> (-96.5%) ⬇️
src/perform_step/rkn_perform_step.jl 0% <0%> (-96.37%) ⬇️
src/perform_step/pdirk_perform_step.jl 0% <0%> (-95.46%) ⬇️
src/caches/nordsieck_caches.jl 0% <0%> (-90.17%) ⬇️
... and 51 more

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 869258e...8c8adb1. Read the comment docs.

@utkarsh530

Copy link
Copy Markdown
Member Author

@ChrisRackauckas please review.

@ChrisRackauckas

Copy link
Copy Markdown
Member

Test failure looks real.

@utkarsh530

Copy link
Copy Markdown
Member Author

@ChrisRackauckas I have made the changes. Please have a look.

@kanav99

kanav99 commented Mar 17, 2020

Copy link
Copy Markdown
Contributor

Strange, the Appveyor test looks very strange, though I have re run the travis one, that one was a fluke

@ChrisRackauckas

Copy link
Copy Markdown
Member

AppVeyor is just timing out and needs to skip the new mass matrix tests.

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.

QNDF and QBDF Fail in OOP with arrays

4 participants