Skip to content

Commit c27ad39

Browse files
committed
Issue #89
1 parent 26e96e8 commit c27ad39

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,17 @@ lazily.
9898
Of course, standard operators from vector calculus like gradient, divergence and curl are also available
9999
as shortcuts.
100100

101+
If one or more axis of your grid are periodic, you can specify that when defining the derivative or later
102+
when setting the grid. For example:
103+
104+
```python
105+
d_dx = Diff(0, dx, periodic=True)
106+
107+
# or later
108+
d_dx = Diff(0)
109+
d_dx.set_grid({0: {"h": dx, "periodic": True}})
110+
```
111+
101112
More examples can be found [here](https://findiff.readthedocs.io/en/latest/source/examples.html) and in [this blog](https://medium.com/p/7e54132a73a3).
102113

103114
### Accuracy Control

0 commit comments

Comments
 (0)