Skip to content

Commit

Permalink
examples: add sinc interpoaltion to interpolation notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Apr 4, 2024
1 parent e177cd9 commit bc7bb4a
Show file tree
Hide file tree
Showing 3 changed files with 316 additions and 166 deletions.
5 changes: 5 additions & 0 deletions devito/types/sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,11 @@ class SparseFunction(AbstractSparseFunction):
Controller for memory allocation. To be used, for example, when one wants
to take advantage of the memory hierarchy in a NUMA architecture. Refer to
`default_allocator.__doc__` for more information.
interpolation: String, optional, default='linear'
The interpolation type to be used by the SparseFunction. Supported types
are 'linear' and 'sinc'.
r: int, optional, default=1 for 'linear', 4 for 'sinc'
The radius of the interpolation operators provided by the SparseFunction.
Examples
--------
Expand Down
68 changes: 42 additions & 26 deletions examples/userapi/03_subdomains.ipynb

Large diffs are not rendered by default.

409 changes: 269 additions & 140 deletions examples/userapi/07_sparse_operations.ipynb

Large diffs are not rendered by default.

0 comments on commit bc7bb4a

Please sign in to comment.