amrspace + load_amr_grids
Hi all, I'm trying to figure out how to use amrspace combined with load_amr_grids to create a decently complex amr structure for testing. However, I can't find any example of doing such a thing in any documentation or source. My attempt below fails in that it creates no level-0 grids, and also has the ordering of grids messed up grid 0 is level 4. Any advice on combining these two functions? http://paste.yt-project.org/show/3206/ Thanks, Sam
Seems like I can do [:,::-1] for gles, gres, and [::-1] for levels, and subtract by 1 and it will work. Should amrspace return them like this? I don't know what else amrspace is used for. On Tue, Feb 26, 2013 at 9:31 AM, Sam Skillman <samskillman@gmail.com> wrote:
Hi all, I'm trying to figure out how to use amrspace combined with load_amr_grids to create a decently complex amr structure for testing. However, I can't find any example of doing such a thing in any documentation or source. My attempt below fails in that it creates no level-0 grids, and also has the ordering of grids messed up grid 0 is level 4.
Any advice on combining these two functions?
http://paste.yt-project.org/show/3206/
Thanks, Sam
Hey Sam, It's used in the 3.0 testing: yt/utilities/lib/tests/test_alt_ray_tracers.py has it in a couple places. -Matt On Tue, Feb 26, 2013 at 11:49 AM, Sam Skillman <samskillman@gmail.com> wrote:
Seems like I can do [:,::-1] for gles, gres, and [::-1] for levels, and subtract by 1 and it will work. Should amrspace return them like this? I don't know what else amrspace is used for.
On Tue, Feb 26, 2013 at 9:31 AM, Sam Skillman <samskillman@gmail.com> wrote:
Hi all, I'm trying to figure out how to use amrspace combined with load_amr_grids to create a decently complex amr structure for testing. However, I can't find any example of doing such a thing in any documentation or source. My attempt below fails in that it creates no level-0 grids, and also has the ordering of grids messed up grid 0 is level 4.
Any advice on combining these two functions?
http://paste.yt-project.org/show/3206/
Thanks, Sam
_______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
It doesn't actually instantiate a pf though with it, from what I can tell. I'm going to skip messing with this for now. Thanks, Sam On Tue, Feb 26, 2013 at 12:05 PM, Matthew Turk <matthewturk@gmail.com>wrote:
Hey Sam,
It's used in the 3.0 testing:
yt/utilities/lib/tests/test_alt_ray_tracers.py
has it in a couple places.
-Matt
Seems like I can do [:,::-1] for gles, gres, and [::-1] for levels, and subtract by 1 and it will work. Should amrspace return them like this? I don't know what else amrspace is used for.
On Tue, Feb 26, 2013 at 9:31 AM, Sam Skillman <samskillman@gmail.com> wrote:
Hi all, I'm trying to figure out how to use amrspace combined with
load_amr_grids
to create a decently complex amr structure for testing. However, I can't find any example of doing such a thing in any documentation or source. My attempt below fails in that it creates no level-0 grids, and also has
On Tue, Feb 26, 2013 at 11:49 AM, Sam Skillman <samskillman@gmail.com> wrote: the
ordering of grids messed up grid 0 is level 4.
Any advice on combining these two functions?
http://paste.yt-project.org/show/3206/
Thanks, Sam
_______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
_______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
No, it doesn't -- it's not supposed to. What I was idly speculating about in IRC was to create something to feed into load_amr_grids via the hierarchy created here; i.e., iterating over these to get the left/right edges of the grids, and using np.random.random() for the data, then supplying that to load_amr_grids. But, I think you should skip messing with it, like you say. Next week one of my agenda items at UCSC is to come up with an AMR-ful random parameter file. :) -Matt On Tue, Feb 26, 2013 at 2:36 PM, Sam Skillman <samskillman@gmail.com> wrote:
It doesn't actually instantiate a pf though with it, from what I can tell.
I'm going to skip messing with this for now.
Thanks, Sam
On Tue, Feb 26, 2013 at 12:05 PM, Matthew Turk <matthewturk@gmail.com> wrote:
Hey Sam,
It's used in the 3.0 testing:
yt/utilities/lib/tests/test_alt_ray_tracers.py
has it in a couple places.
-Matt
On Tue, Feb 26, 2013 at 11:49 AM, Sam Skillman <samskillman@gmail.com> wrote:
Seems like I can do [:,::-1] for gles, gres, and [::-1] for levels, and subtract by 1 and it will work. Should amrspace return them like this? I don't know what else amrspace is used for.
On Tue, Feb 26, 2013 at 9:31 AM, Sam Skillman <samskillman@gmail.com> wrote:
Hi all, I'm trying to figure out how to use amrspace combined with load_amr_grids to create a decently complex amr structure for testing. However, I can't find any example of doing such a thing in any documentation or source. My attempt below fails in that it creates no level-0 grids, and also has the ordering of grids messed up grid 0 is level 4.
Any advice on combining these two functions?
http://paste.yt-project.org/show/3206/
Thanks, Sam
_______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
_______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
_______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
participants (2)
-
Matthew Turk
-
Sam Skillman