Commits

Matthew Turk committed e7f51a4

Adding initial art octree test script

Comments (0)

Files changed (1)

test_art_octre.py

+from yt.mods import *
+from yt.utilities.amr_utils import RAMSESOctreeContainer
+
+NX = 128
+LE = na.array([0.0, 0.0, 0.0], dtype='float64')
+RE = na.array([1.0, 1.0, 1.0], dtype='float64')
+
+art_oct = RAMSESOctreeContainer(NX, LE, RE)
+art_oct.allocate_domains(1)
+
+for level in range(MAX_LEVEL+1):
+    # read level info into POS
+    # 1 is the CPU, -1 is not used, 1 is the domain ID
+    art_oct.add(1, level, -1, pos, 1)
+