Hi Matt,<br>Many thanks for quick response!<br>Indeed, i was running enzo simulations in same directory twice with and without MPI. I am not on development branch but would adapt the second approach.<br>Cheers<br>Latif<br>
<br><div class="gmail_quote">On Fri, Apr 6, 2012 at 11:44 AM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Latif,<br>
<br>
yt stores hierarchy information in between runs.  I think what you are<br>
describing is that you have run the same simulation multiple times in<br>
the same location, but you've turned MPI on and off -- this replaces a<br>
portion of the files, but not all.  (For this reason, it's recommended<br>
to remove existing output files when you re-run a simulation in Enzo.)<br>
 I've put in a change to yt that invalidates the current format in<br>
favor of one that includes a unique hash.  This affects all yt users<br>
and will add a small overhead at startup for large hierarchies the<br>
next time they are loaded.<br>
<br>
Executing the command "yt update" if you are on the development branch<br>
will update you; if you are not on the development branch, remove the<br>
.harrays files from your directories before loading a new dataset that<br>
has replaced an old one.<br>
<br>
Best,<br>
<br>
Matt<br>
<div><div class="h5"><br>
On Fri, Apr 6, 2012 at 5:21 AM, Abul Latif <<a href="mailto:latifne@gmail.com">latifne@gmail.com</a>> wrote:<br>
> Dear YT users,<br>
> I am running enzo test problem with MPI. I am unable to visualize the data<br>
> with YT and it produces following error. If i do not run enzo with MPI<br>
> (MPICH2) then it works fine. Any ideas, what is going wrong here.<br>
> Thanks in advance<br>
> Cheers<br>
> Latif<br>
><br>
> t : [INFO     ] 2012-04-05 17:42:42,770 Parameters:<br>
> current_time              = 7<br>
> yt : [INFO     ] 2012-04-05 17:42:42,771 Parameters:<br>
> domain_dimensions         = [16 16 16]<br>
> yt : [INFO     ] 2012-04-05 17:42:42,771 Parameters:<br>
> domain_left_edge          = [ 0.  0.  0.]<br>
> yt : [INFO     ] 2012-04-05 17:42:42,771 Parameters:<br>
> domain_right_edge         = [ 1.  1.  1.]<br>
> yt : [INFO     ] 2012-04-05 17:42:42,771 Parameters:<br>
> cosmological_simulation   = 0.0<br>
> yt : [INFO     ] 2012-04-05 17:42:42,775 Getting the binary hierarchy<br>
> Traceback (most recent call last):<br>
>   File "./enzo.py", line 7, in <module><br>
>     pc=PlotCollection(pf)<br>
>   File<br>
> "/home/astro73/mlatif/YT/yt-x86_64/src/yt-hg/yt/visualization/plot_collection.py",<br>
> line 108, in __init__<br>
>     v,self.c = pf.h.find_max("Density") # @todo: ensure no caching<br>
>   File<br>
> "/home/astro73/mlatif/YT/yt-x86_64/src/yt-hg/yt/data_objects/static_output.py",<br>
> line 172, in hierarchy<br>
>     self, data_style=self.data_style)<br>
>   File<br>
> "/home/astro73/mlatif/YT/yt-x86_64/src/yt-hg/yt/frontends/enzo/data_structures.py",<br>
> line 217, in __init__<br>
>     AMRHierarchy.__init__(self, pf, data_style)<br>
>   File<br>
> "/home/astro73/mlatif/YT/yt-x86_64/src/yt-hg/yt/data_objects/hierarchy.py",<br>
> line 71, in __init__<br>
>     self._parse_hierarchy()<br>
>   File<br>
> "/home/astro73/mlatif/YT/yt-x86_64/src/yt-hg/yt/frontends/enzo/data_structures.py",<br>
> line 286, in _parse_hierarchy<br>
>     if self._parse_binary_hierarchy(): return<br>
>   File<br>
> "/home/astro73/mlatif/YT/yt-x86_64/src/yt-hg/yt/frontends/enzo/data_structures.py",<br>
> line 357, in _parse_binary_hierarchy<br>
>     self.grid_dimensions[:] = f["/ActiveDimensions"][:]<br>
> ValueError: operands could not be broadcast together with shapes (32,3)<br>
> (8,3)<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Dr. M. Abdul Latif     <br>University of  Groningen               <br>The Netherlands      <br><br><br><br>