pynbody / genetIC

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

Centering of ics for RAMSES #22

Closed Martin-Rey closed 6 years ago

Martin-Rey commented 6 years ago

Adding the centering to grafic ICs.

Main additions are a centered virtual grid and a method copyContextWithCenteredStack in multilevel context.

Large diffs in grid file are coming from a reorganisation of the methods under themes in the file for clarity. If you don't like it, let me know.

Martin-Rey commented 6 years ago

I removed the offset output. I couldn't track down its use through the git history, it was added in 2015 and untouched since. If the functionality of offsetting (which in this case means centering I think) is needed elsewhere than in grafic format, the method can be reinserted with a more meaningful name and use.