<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
I am just worried about the problem associated to the density
gradient field in yt-3.0.<br>
<br>
When I was trying to get the gradient of density field along z
(actually any) direction, I got this error message (last few lines)
when calling data[ 'density_gradient_z' ]:<br>
<blockquote><small><small>~/lilew/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.pyc
in selector(self)<br>
529 if sclass is None:<br>
530 raise
YTDataSelectorNotImplemented(self._type_name)<br>
--> 531 self._selector = sclass(self)<br>
532 return self._selector<br>
533 <br>
<br>
~/lilew/yt-x86_64/src/yt-hg/yt/geometry/selection_routines.so
in yt.geometry.selection_routines.RegionSelector.__init__
(yt/geometry/selection_routines.c:20276)()<br>
<br>
RuntimeError: Error: bad Region in non-periodic domain along
dimension 0. Region left edge = -0.01171875 code_length,
Region right edge = 0.13671875 code_lengthDataset left edge =
0.<br>
0 code_length, Dataset right edge = 1.0 code_length<br>
</small></small></blockquote>
Similar things happen for the pressure gradient.<br>
<br>
The data input was generated by Enzo with AMR. In comparison, it
works well with yt-2.6, where I refer to the gradient by data[
'gradDensityZ' ].<br>
<br>
Any ideas are appreciated. Thanks!<br>
<br>
Cheers,<br>
Lile<br>
<br>
<span style="font-family:courier new,monospace"><br>
-----------------------------------------------------------
<br>
Lile 'Patrick' Wang
<br>
Dept. of Astroph. Sci., Princeton University, NJ 08544 USA<br>
Website : <a href="http://www.astro.princeton.edu/%7Elilew/"
target="_blank">http://www.astro.princeton.edu/~lilew/</a><br>
Tel (Mobile): +1-(734)-834-3936
<br>
Tel (GVoice): +1-(510)-926-6831
<br>
-----------------------------------------------------------
</span><br>
<br>
</body>
</html>