Skip to content

Commit

Permalink
Issue #89
Browse files Browse the repository at this point in the history
  • Loading branch information
maroba committed Dec 16, 2024
1 parent 26e96e8 commit c27ad39
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,17 @@ lazily.
Of course, standard operators from vector calculus like gradient, divergence and curl are also available
as shortcuts.

If one or more axis of your grid are periodic, you can specify that when defining the derivative or later
when setting the grid. For example:

```python
d_dx = Diff(0, dx, periodic=True)

# or later
d_dx = Diff(0)
d_dx.set_grid({0: {"h": dx, "periodic": True}})
```

More examples can be found [here](https://findiff.readthedocs.io/en/latest/source/examples.html) and in [this blog](https://medium.com/p/7e54132a73a3).

### Accuracy Control
Expand Down

0 comments on commit c27ad39

Please sign in to comment.