[yt-users] Problem with smoothed covering grid

Matthew Turk matthewturk at gmail.com
Fri Oct 2 07:44:59 PDT 2015


Hi Max,

Ah, I think I see the problem.  If you're doing any type of particle
deposition, including smoothing, you might be better suited to using
the arbitrary_grid or the covering_grid objects, as
smoothed_covering_grid is designed for situations where values need to
be interpolated through a cascade of refinements.  It'd probably end
up being faster to use either arbitrary_grid or covering_grid, too.
Can you try that and let us know if it meets your needs?

-Matt

On Fri, Oct 2, 2015 at 9:42 AM, Max Grönke <max.gronke at astro.uio.no> wrote:
> Hi everybody!
>
> I followed loosely the example provided here
> http://yt-project.org/docs/dev/examining/low_level_inspection.html#examining-grid-data-in-a-fixed-resolution-array
> but encountered an error message using a smoothed covering grid with
> SPH data instead of a covering grid. I posted an MWE here:
> http://pastebin.com/2sStpLmw which leads to the error message
> "AttributeError: 'YTSmoothedCoveringGrid' object has no attribute
> '_pdata_source' "
>
> I wanted to use a smoothed covering grid because I found that using
> SPH data a lot of "holes" are in `covering grid' (but not, e.g., in a
> slice plot). So I assumed there is some problem in duplicating the
> values from the coarser grids?
>
> My yt version is 3.2-dev.
>
> Thanks a lot for your time & help,
> Max
> _______________________________________________
> 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