64GB is what I have access to

On Mon, 5 Nov 2018 at 2:34 PM, Nathan Goldbaum <nathan12343@gmail.com> wrote:
How much RAM do you have access to on that machine?

On Mon, Nov 5, 2018 at 4:01 AM Vadlamani Samhitha <vadlamani.samhitha@gmail.com> wrote:
Hi, 

I'm encountering a memory issue when I try to access higher AMR levels of my simulation using arbitrary_grid. My simulation has  a minimum level of 7 and maximum level 15.  I'm accessing level 9 (corresponding to 512). 

DIM=512

dd=ds.arbitrary_grid(left_edge= ds.arr([(com_x_1.value-30), (com_y_1.value-30), (com_z_1.value-30)], 'kpc'), right_edge= ds.arr([(com_x_1.value+30), (com_y_1.value+30), (com_z_1.value+30)], 'kpc'), dims=[DIM,DIM,DIM])

m=dd["gas", "cell_mass"].in_units('Msun') 

and I get: 
 Traceback (most recent call last):
  File "vel_disp.py", line 52, in <module>
    m=dd["gas", "cell_mass"].in_units('Msun')
  File "/home/samvad/yt-conda/lib/python3.6/site-packages/yt/units/yt_array.py", line 610, in in_units
  new_array = type(self)(self.ndview * conversion_factor, new_units)
MemoryError


Could someone please shed light on this? Am I accessing the levels in a wrong format? Is "dims" not corresponding to the absolute levels but the level differences? (as in the level 7 is considered to be level 0 in which case my maximum level would be 8)

_______________________________________________
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org