pynbody / genetIC

The GM initial conditions generator
GNU General Public License v3.0
21 stars 8 forks source link

Allowing supersampling for grafic outputs #31

Closed Martin-Rey closed 6 years ago

Martin-Rey commented 6 years ago

The existing sub/supersampling does not work with grafic power of two stack of grids. The ability of adding extra coarse grids is already present, this PR allows extra fine grids.

A new command "extra_high_res" is available to set the number of extra grids. Note that this step is done only at writing time, i.e. when the context is stable ( no more zooms are going to be opened).

I piggy-backed a test of this functionality on the test for the extra coarse grids (test_08b)

Let me know if anything stands out.