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.
Yup, that's correct, I believe ref_factors is only defined for boxlib data like that example.
There are instructions for how to make a pull request in our contributor's guide:
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 Zingale
Associate Professor
Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY 11794-3800
phone: 631-632-8225