I think I wrote that original example, and for our data sets, the refinement ratio is variable and can change between levels, hence the general approach there. Maybe there is a way to make it work for all frontends? because if you modify the example to take out the ref_factor, then it will break AMReX codes.On Mon, Jun 3, 2019 at 3:24 PM Nathan Goldbaum <nathan12343@gmail.com> wrote:Yup, that's correct, I believe ref_factors is only defined for boxlib data like that example.If you'd like to make a pull request to improve that example I think it would be readily accepted. The source code for that example lives here: https://github.com/yt-project/yt/blob/master/doc/source/cookbook/power_spectrum_example.pyThere are instructions for how to make a pull request in our contributor's guide:_______________________________________________On Mon, Jun 3, 2019 at 3:17 PM Salome Mtchedlidze <salomchedlidze@gmail.com> wrote:Hello again,
Apologize, I have just been told that I just need to write instead of
ref = int(np.product(ds.ref_factors[0:max_level])) ,
ref = 2**max_level
since ENZO only refines with the factor of 2.
Thanks,
Salome
_______________________________________________
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org
--_______________________________________________Michael ZingaleAssociate ProfessorDept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY 11794-3800phone: 631-632-8225e-mail: Michael.Zingale@stonybrook.edugithub: http://github.com/zingale
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org