[yt-svn] commit/yt: samskillman: Use overlap_proj for dim<3 simulations.
Bitbucket
commits-noreply at bitbucket.org
Thu Nov 29 15:53:00 PST 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/2ced9ee17d7c/
changeset: 2ced9ee17d7c
branch: yt
user: samskillman
date: 2012-11-30 00:47:01
summary: Use overlap_proj for dim<3 simulations.
affected #: 1 file
diff -r b95774ff296b7a93bf5bbe1d420f7820479efe56 -r 2ced9ee17d7c936c47c3b803fb156b29605091f8 yt/data_objects/hierarchy.py
--- a/yt/data_objects/hierarchy.py
+++ b/yt/data_objects/hierarchy.py
@@ -136,6 +136,12 @@
mylog.warning("Refine by something other than two: reverting to"
+ " overlap_proj")
self.proj = self.overlap_proj
+ if self.pf.dimensionality < 3 and hasattr(self, 'proj') and \
+ hasattr(self, 'overlap_proj'):
+ mylog.warning("Dimensionality less than 3: reverting to"
+ + " overlap_proj")
+ self.proj = self.overlap_proj
+
self.object_types.sort()
def _setup_unknown_fields(self):
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