[Yt-svn] commit/yt: MatthewTurk: Fixing dtype of domain_left_edge and domain_right_edge. This should trickle
Bitbucket
commits-noreply at bitbucket.org
Tue Sep 20 13:49:17 PDT 2011
1 new changeset in yt:
http://bitbucket.org/yt_analysis/yt/changeset/85fd62f57398/
changeset: 85fd62f57398
branch: yt
user: MatthewTurk
date: 2011-09-20 22:49:04
summary: Fixing dtype of domain_left_edge and domain_right_edge. This should trickle
back to smoothed covering grids, which use that for buffer calculation, and
then trickle *further* up and fix some segfaults people were seeing in the
volume renderer.
affected #: 1 file (-1 bytes)
--- a/yt/frontends/enzo/data_structures.py Tue Sep 20 13:27:42 2011 -0700
+++ b/yt/frontends/enzo/data_structures.py Tue Sep 20 16:49:04 2011 -0400
@@ -793,11 +793,15 @@
self.dimensionality = self.parameters["TopGridRank"]
self.domain_dimensions = self.parameters["TopGridDimensions"]
if self.dimensionality > 1:
- self.domain_left_edge = na.array(self.parameters["DomainLeftEdge"]).copy()
- self.domain_right_edge = na.array(self.parameters["DomainRightEdge"]).copy()
+ self.domain_left_edge = na.array(self.parameters["DomainLeftEdge"],
+ "float64").copy()
+ self.domain_right_edge = na.array(self.parameters["DomainRightEdge"],
+ "float64").copy()
else:
- self.domain_left_edge = na.array(self.parameters["DomainLeftEdge"])
- self.domain_right_edge = na.array(self.parameters["DomainRightEdge"])
+ self.domain_left_edge = na.array(self.parameters["DomainLeftEdge"],
+ "float64")
+ self.domain_right_edge = na.array(self.parameters["DomainRightEdge"],
+ "float64")
self.current_time = self.parameters["InitialTime"]
# To be enabled when we can break old pickles:
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