[yt-users] Storing multiple calculations using yt.parallel_objects

Joshua Wall joshua.e.wall at gmail.com
Sun May 24 09:12:23 PDT 2015


Dear users,


     This there a simple way to store multiple values at each step using
parallel_objects? I'm doing:

########################################################
yt.enable_parallelism()
num_procs = 4
plot = glob.glob(./plot*)
my_storage = {}

for sto, p in yt.parallel_objects(plots, num_procs, my_storage):

  sto.result_id = 'energy' + p
  sto.resutl     = dd["total_energy"]

  sto.result_id = 'Px' + p
  sto.result     = dd["total_mom_x"]

######################################################

which is just overwriting my energy with the momentum. I also tried to just
set to different dictionaries without passing it to yt.parallel_objects as
storage, but of course each proc as only a local copy then.

Cordially,

Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150524/37ecb1d2/attachment.htm>
-------------- next part --------------
_______________________________________________
yt-users mailing list
yt-users at lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org


More information about the yt-users mailing list