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

examples: Fix ADER notebook numbering #2450

Merged
merged 2 commits into from
Sep 25, 2024
Merged

examples: Fix ADER notebook numbering #2450

merged 2 commits into from
Sep 25, 2024

Conversation

EdCaunt
Copy link
Contributor

@EdCaunt EdCaunt commented Sep 9, 2024

No description provided.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@EdCaunt EdCaunt added the examples examples label Sep 9, 2024
Copy link

codecov bot commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.01%. Comparing base (fb4b50e) to head (6c73a86).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2450   +/-   ##
=======================================
  Coverage   87.01%   87.01%           
=======================================
  Files         239      239           
  Lines       44958    44958           
  Branches     8390     8390           
=======================================
  Hits        39118    39118           
  Misses       5108     5108           
  Partials      732      732           

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

examples/seismic/tutorials/16_ader_fd.ipynb Show resolved Hide resolved
@@ -5,7 +5,7 @@
"id": "31226b14-e907-4503-9918-a09163363217",
Copy link
Contributor

@mloubout mloubout Sep 13, 2024

Choose a reason for hiding this comment

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

Is there an actual reason why? Or it "just works"


Reply via ReviewNB

examples/seismic/tutorials/16_ader_fd.ipynb Show resolved Hide resolved
examples/seismic/tutorials/16_ader_fd.ipynb Show resolved Hide resolved
@@ -5,7 +5,7 @@
"id": "31226b14-e907-4503-9918-a09163363217",
Copy link
Contributor

@mloubout mloubout Sep 13, 2024

Choose a reason for hiding this comment

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

nitpicking:

Might be nicer to avoid those function and to add an option for the derivatives to "expand/simplify". so that you just need grad(div(p)) for graddiv for example.


Reply via ReviewNB

@@ -5,7 +5,7 @@
"id": "31226b14-e907-4503-9918-a09163363217",
Copy link
Contributor

@mloubout mloubout Sep 13, 2024

Choose a reason for hiding this comment

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

Choose one you derive in the math and leave the rest outII

Something needs to be said about ABCs. It is a bit non intuitive and potentially dangerous that it doesn't need any so there needs to be some explanation why


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added an explanation. Essentially the discretisation introduces numerical diffusion where the solution is non-smooth, so when the wave hits the zero padding, it will diffuse outwards (although the zeroes never get updated).

@mloubout mloubout merged commit 20a9de8 into master Sep 25, 2024
31 checks passed
@mloubout mloubout deleted the fix_notebook_number branch September 25, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants