[Yt-svn] yt-commit r1385 - trunk/yt/lagos
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Mon Jul 20 15:07:04 PDT 2009
Author: mturk
Date: Mon Jul 20 15:07:00 2009
New Revision: 1385
URL: http://yt.spacepope.org/changeset/1385
Log:
Attempting a smoothed covering grid for the ghost zones now.
Modified:
trunk/yt/lagos/BaseDataTypes.py
trunk/yt/lagos/BaseGridType.py
Modified: trunk/yt/lagos/BaseDataTypes.py
==============================================================================
--- trunk/yt/lagos/BaseDataTypes.py (original)
+++ trunk/yt/lagos/BaseDataTypes.py Mon Jul 20 15:07:00 2009
@@ -2090,7 +2090,7 @@
pass # used to warn but I think it is not accurate anymore
#mylog.warning("Must be power of two dimensions")
#raise ValueError
- kwargs['num_ghost_zones'] = 0
+ #kwargs['num_ghost_zones'] = 0
AMRFloatCoveringGridBase.__init__(self, *args, **kwargs)
def _get_list_of_grids(self):
Modified: trunk/yt/lagos/BaseGridType.py
==============================================================================
--- trunk/yt/lagos/BaseGridType.py (original)
+++ trunk/yt/lagos/BaseGridType.py Mon Jul 20 15:07:00 2009
@@ -57,7 +57,7 @@
# This is only going to be raised if n_gz > 0
n_gz = ngt_exception.ghost_zones
f_gz = ngt_exception.fields
- gz_grid = self.retrieve_ghost_zones(n_gz, f_gz)
+ gz_grid = self.retrieve_ghost_zones(n_gz, f_gz, smoothed=True)
temp_array = self.pf.field_info[field](gz_grid)
sl = [slice(n_gz,-n_gz)] * 3
self[field] = temp_array[sl]
More information about the yt-svn
mailing list