devitocodes / devito

DSL and compiler framework for automated finite-differences and stencil computation
http://www.devitoproject.org
MIT License
537 stars 221 forks source link

api: add support for 45 degree FD approx #2326

Closed mloubout closed 3 months ago

mloubout commented 4 months ago

Add suppport for 45 degree derivatives (usually called RSFD). This only supports cases where the diagonal (45 degree axis) aligns with points at which the fields is defined.

review-notebook-app[bot] commented 4 months ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 92.85714% with 16 lines in your changes are missing coverage. Please review.

Project coverage is 86.67%. Comparing base (f29cb35) to head (47be3e1).

Files Patch % Lines
devito/finite_differences/tools.py 69.23% 7 Missing and 1 partial :warning:
devito/finite_differences/operators.py 71.42% 4 Missing :warning:
devito/finite_differences/differentiable.py 81.81% 1 Missing and 1 partial :warning:
devito/finite_differences/rsfd.py 96.22% 1 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2326 +/- ## ========================================== + Coverage 86.66% 86.67% +0.01% ========================================== Files 231 232 +1 Lines 43260 43409 +149 Branches 8022 8057 +35 ========================================== + Hits 37490 37626 +136 - Misses 5068 5079 +11 - Partials 702 704 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.