[yt-svn] commit/yt: atmyers: fix bug for 2D WarpX data.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Apr 19 14:43:12 PDT 2017


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/51546c15b688/
Changeset:   51546c15b688
Branch:      yt
User:        atmyers
Date:        2017-04-19 20:47:50+00:00
Summary:     fix bug for 2D WarpX data.
Affected #:  1 file

diff -r 416bc87fd064d8cd5d64a98922c00c1cc71a0f7d -r 51546c15b6881696decb52bbd8d231855241c1df yt/frontends/boxlib/data_structures.py
--- a/yt/frontends/boxlib/data_structures.py
+++ b/yt/frontends/boxlib/data_structures.py
@@ -1428,8 +1428,12 @@
         # set the periodicity based on the integer BC runtime parameters
         is_periodic = self.parameters['geometry.is_periodic'].split()
         periodicity = [bool(val) for val in is_periodic]
+        for _ in range(self.dimensionality, 3):
+            periodicity += [True]  # pad to 3D
         self.periodicity = ensure_tuple(periodicity)
 
+        
+
         species_list = []
         species_dirs = glob.glob(self.output_dir + "/particle*")
         for species in species_dirs:

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list