Skip to content

Extrapolation::None Fallback if PolarGrid is not Suitable for Extrapolation - #305

Open
julianlitz wants to merge 2 commits into
mainfrom
litz_fallback
Open

Extrapolation::None Fallback if PolarGrid is not Suitable for Extrapolation#305
julianlitz wants to merge 2 commits into
mainfrom
litz_fallback

Conversation

@julianlitz

Copy link
Copy Markdown
Collaborator

Merge Request - GuideLine Checklist

Guideline to check code before resolve WIP and approval, respectively.
As many checkboxes as possible should be ticked.

Checks by code author:

Always to be checked:

  • There is at least one issue associated with the pull request.
  • New code adheres with the coding guidelines
  • No large data files have been added to the repository. Maximum size for files should be of the order of KB not MB. In particular avoid adding of pdf, word, or other files that cannot be change-tracked correctly by git.

If functions were changed or functionality was added:

  • Tests for new functionality has been added
  • A local test was succesful

If new functionality was added:

  • There is appropriate documentation of your work. (use doxygen style comments)

If new third party software is used:

  • Did you pay attention to its license? Please remember to add it to the wiki after successful merging.

If new mathematical methods or epidemiological terms are used:

  • Are new methods referenced? Did you provide further documentation?

Checks by code reviewer(s):

  • Is the code clean of development artifacts e.g., unnecessary comments, prints, ...
  • The ticket goals for each associated issue are reached or problems are clearly addressed (i.e., a new issue was introduced).
  • There are appropriate unit tests and they pass.
  • The git history is clean and linearized for the merge request. All reviewers should squash commits and write a simple and meaningful commit message.
  • Coverage report for new code is acceptable.
  • No large data files have been added to the repository. Maximum size for files should be of the order of KB not MB. In particular avoid adding of pdf, word, or other files that cannot be change-tracked correctly by git.

@julianlitz
julianlitz requested a review from EmilyBourne July 27, 2026 20:03
@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 15.00000% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.41%. Comparing base (7ea8655) to head (3d95751).

Files with missing lines Patch % Lines
include/GMGPolar/setup.h 15.00% 17 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #305   +/-   ##
=======================================
  Coverage   97.41%   97.41%           
=======================================
  Files          79       79           
  Lines        8653     8662    +9     
=======================================
+ Hits         8429     8438    +9     
  Misses        224      224           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread include/GMGPolar/setup.h
Comment on lines +645 to +650
if (print) {
std::cerr << "[Extrapolation Warning] Angular mismatch at i_theta = " << i_theta << "\n"
<< " left = " << left << ", right = " << right << "\n"
<< " expected = " << expected_mid << ", actual = " << actual_mid << "\n"
<< " diff = " << diff << " (tol = " << tolerance << ")\n";
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

How would I get this message to be displayed given that all calls pass print=false and that checkUniformRefinement is private?

Comment thread include/GMGPolar/setup.h
Comment on lines +36 to +39
if (checkUniformRefinement(grid_, strict_tol, false)) {
// within strict tolerance: nothing to do
}
else if (checkUniformRefinement(grid_, warn_tol, false)) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if (checkUniformRefinement(grid_, strict_tol, false)) {
// within strict tolerance: nothing to do
}
else if (checkUniformRefinement(grid_, warn_tol, false)) {
if (checkUniformRefinement(grid_, strict_tol, false)) {
// within strict tolerance: nothing to do
}
else if (checkUniformRefinement(grid_, warn_tol, false)) {

Maybe you should pass something like verbose_ > 1 instead of false?

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.

2 participants