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

fix condition of combining edge points #39

Merged
merged 2 commits into from
Dec 31, 2022
Merged

fix condition of combining edge points #39

merged 2 commits into from
Dec 31, 2022

Conversation

iintSjds
Copy link
Member

@iintSjds iintSjds commented Dec 31, 2022

Fixed a bug that causes error when constructing log densed grids.
Old constructor of LDG combine two panel points only when p[2]-p[1]<minterval, and this leads to construction of Log grids with bound[2]-bound[1]==minterval, which will be rejected by the recently updated assertion 0<minterval<bound[2]-bound[1].
The condition is adjusted to p[2]-p[1]<=2minterval, which still guarantees minimal interval is smaller than minterval, while eliminates cases with too small interval.

@iintSjds iintSjds added the bug Something isn't working label Dec 31, 2022
@codecov-commenter
Copy link

codecov-commenter commented Dec 31, 2022

Codecov Report

Merging #39 (ffca25b) into dev (406b611) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##              dev      #39   +/-   ##
=======================================
  Coverage   51.03%   51.03%           
=======================================
  Files          10       10           
  Lines        1354     1354           
=======================================
  Hits          691      691           
  Misses        663      663           
Impacted Files Coverage Δ
src/grid/composite.jl 89.85% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@iintSjds iintSjds merged commit 6a3d99a into dev Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants