diff options
author | 2021-07-20 22:31:44 -0700 | |
---|---|---|
committer | 2021-07-20 22:31:44 -0700 | |
commit | 736dee3382fbf570ff910cd9dfeec66642e218e0 (patch) | |
tree | 55a3cc8d4a62035c37a63eaae53349d31f3e543f /Python/pywarpx/picmi.py | |
parent | d96a6513347e6bcf234e46347e2740f36327b7ab (diff) | |
download | WarpX-736dee3382fbf570ff910cd9dfeec66642e218e0.tar.gz WarpX-736dee3382fbf570ff910cd9dfeec66642e218e0.tar.zst WarpX-736dee3382fbf570ff910cd9dfeec66642e218e0.zip |
ChecksumAPI: yt 4+ ds.force_periodicity() (#2117)
* ChecksumAPI: yt 4+ ds.force_periodicity()
Mitigate issues of the form
```
RuntimeError: yt attempted to read outside the boundaries of a non-periodic domain along dimension 0.
Region left edge = -7.5e-06 code_length, Region right edge = 7.500000000000002e-06 code_length
Dataset left edge = -7.5e-06 code_length, Dataset right edge = 7.5e-06 code_length
This commonly happens when trying to compute ghost cells up to the domain boundary. Two possible solutions are to select a smaller region that does not border domain edge (see https://yt-project.org/docs/analyzing/objects.html?highlight=region)
or override the periodicity with
ds.force_periodicity()
```
* make yt3 compatible
Diffstat (limited to 'Python/pywarpx/picmi.py')
0 files changed, 0 insertions, 0 deletions