Skip to content

Reduce amount of calculation for exact solution #277

Open
AbdelhadiKara wants to merge 6 commits into
mainfrom
akara_compute_exact_solution_vector
Open

Reduce amount of calculation for exact solution #277
AbdelhadiKara wants to merge 6 commits into
mainfrom
akara_compute_exact_solution_vector

Conversation

@AbdelhadiKara
Copy link
Copy Markdown
Collaborator

@AbdelhadiKara AbdelhadiKara commented May 19, 2026

Compute exact solution vector once, store it on host and pass it into functions instead of passing ExactSolution instance.

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.

@AbdelhadiKara AbdelhadiKara changed the title exact solution on host-error on device Reduce amount of calculation for exact solution May 19, 2026
@AbdelhadiKara AbdelhadiKara marked this pull request as ready for review May 19, 2026 15:09
@codecov
Copy link
Copy Markdown

codecov Bot commented May 20, 2026

Codecov Report

❌ Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 95.77%. Comparing base (fc5f3e6) to head (678e915).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
include/GMGPolar/solver.h 95.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #277      +/-   ##
==========================================
+ Coverage   89.38%   95.77%   +6.39%     
==========================================
  Files          79       79              
  Lines        9139     8552     -587     
==========================================
+ Hits         8169     8191      +22     
+ Misses        970      361     -609     

☔ View full report in Codecov by Sentry.
📢 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.

@julianlitz julianlitz self-requested a review May 20, 2026 12:02
Comment thread include/GMGPolar/solver.h
for (int i_theta = 0; i_theta < grid.ntheta(); i_theta++) {
Kokkos::parallel_for(
"compute error on host",
Kokkos::MDRangePolicy<Kokkos::DefaultHostExecutionSpace, Kokkos::Rank<2>>({0, 0}, {grid.nr(), grid.ntheta()}),
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.

Less cache efficient access, but for this purpose ok.

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