[Yt-svn] yt: Using the built-in pf.h.max_level to decide whether it is AM...
hg at spacepope.org
hg at spacepope.org
Mon Apr 19 10:19:02 PDT 2010
hg Repository: yt
details: yt/rev/5f15ebafbe21
changeset: 1568:5f15ebafbe21
user: Stephen Skory <stephenskory at yahoo.com>
date:
Mon Apr 19 10:18:48 2010 -0700
description:
Using the built-in pf.h.max_level to decide whether it is AMR or not.
Also removing a mistake that hard-coded AMR mode.
diffstat:
yt/lagos/StructureFunctionGenerator.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (13 lines):
diff -r 510ac77d14f7 -r 5f15ebafbe21 yt/lagos/StructureFunctionGenerator.py
--- a/yt/lagos/StructureFunctionGenerator.py Mon Apr 19 09:17:00 2010 -0700
+++ b/yt/lagos/StructureFunctionGenerator.py Mon Apr 19 10:18:48 2010 -0700
@@ -76,8 +76,7 @@
self.done_hooks = []
self.comm_size = min(int(comm_size), self.total_values)
self.pf = pf
- self.nlevels = na.unique(self.pf.h.grid_levels).size
- self.nlevels = 10
+ self.nlevels = pf.h.max_level
self.period = self.pf['DomainRightEdge'] - self.pf['DomainLeftEdge']
self.min_edge = min(self.period)
self.hierarchy = pf.h
More information about the yt-svn
mailing list