[yt-users] PhasePlot give inconsistent results with different core count and fieldc

Matthew Turk matthewturk at gmail.com
Mon Mar 31 06:14:24 PDT 2014


Hi Geoffrey,

Britton and I verified you are correct, there is a problem with the
ProfileND objects not conducting their parallel reduction operation.
A fix is forthcoming.

-Matt

On Mon, Mar 31, 2014 at 5:31 AM, Geoffrey So <gsiisg at gmail.com> wrote:
> The following script gives me different results in the 2d phase plot when I
> use multiple cores and switch the fieldc parameter.  The results are
> consistent if I only use a single core.  Some of the plots produced seems
> like it is missing data points or under-sampled, so I'm guessing maybe not
> all the data from all the cores were collected at the end.
>
> From
> G.S.
>
> #-----------------------------------------------------------------------------------
> from yt.mods import *
>
> i=2
> file = "RD%04i" % i
> fn = file+"/"+file
> pf=load(fn)
> dd=pf.h.all_data()
>
> fieldx='Density'
> fieldy='Temperature'
> fieldc='CellVolumeCode'
> #fieldc='CellVolume'
> #fieldc='CellMassMsun'
> #fieldc='CellMass'
> #fieldc='Ones'
>
> pplot = PhasePlot(dd, fieldx, fieldy, [fieldc],weight_field=None)
> pplot.save('example/'+file)
> #---------------------------------------------------------------------------------------
>
>
> _______________________________________________
> 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