[yt-users] memory usage of HOP halo finder

Michael Kuhlen mqk at astro.berkeley.edu
Wed Feb 22 17:32:51 PST 2012


Hi Stephen

Yes, that does the trick. However,
self._data_source.quantities["TotalQuantity"]("ParticleMassMsun")
returns a list, so I needed to add a '[0]' in order to get just the
number.

It's not immediately clear to me how to implement this fix for the
dm_only=True case, in which you only want the sum over DM particles.

Lastly, does the sub_mass calculation have to be done even when
subvolume is None and only a single processor is being used? It seems
in this case sub_mass = total_mass and the second calculation could be
skipped.

Thanks for your help!

Mike


On Wed, Feb 22, 2012 at 4:12 PM, Stephen Skory <s at skory.us> wrote:
> Mike,
>
> sorry to reply so quickly to my email, but I realized I could have
> been clearer. Please replace:
>
> self._data_source["ParticleMassMsun"].sum(dtype='float64')
>
> with
>
> self._data_source.quantities["TotalQuantity"]("ParticleMassMsun")
>
> in both cases.
> --
> Stephen Skory
> s at skory.us
> http://stephenskory.com/
> 510.621.3687 (google voice)
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org



-- 
*********************************************************************
*                                                                   *
*  Dr. Michael Kuhlen              Theoretical Astrophysics Center  *
*  email: mqk at astro.berkeley.edu   UC Berkeley                      *
*  cell phone: (831) 588-1468      B-116 Hearst Field Annex # 3411  *
*  skype username: mikekuhlen      Berkeley, CA 94720               *
*                                                                   *
*********************************************************************



More information about the yt-users mailing list