Skip to content

WIP: Change rounding in h2gpts

Tristan Maxson requested to merge (removed):patch-1 into master

Using np.around causes h2gpts to actually round towards the nearest valid value for gpts, rather than always rounding down. This helps have a closer effective grid and a less anisotropic grid.

It seems like (31, 31, 38) with idiv=16 currently rounds to (16, 16, 32) rather than (32, 32, 32) and that is what this MR fixes.

Update: This only worked because I was rounding up with a shift, someone should revist this issue at some point.

Edited by Tristan Maxson

Merge request reports