[postprocessor] use center of box instead for vect decomposition
instead of position of star
This commit is contained in:
+2
-2
@@ -394,10 +394,10 @@ class PostProcessor(HDF5Container):
|
|||||||
|
|
||||||
def getter_pos_disk(self, dset):
|
def getter_pos_disk(self, dset):
|
||||||
"""
|
"""
|
||||||
Returns the position in normalized units centered on the position of the star
|
Returns the position in normalized and centered units
|
||||||
"""
|
"""
|
||||||
pos = dset.points
|
pos = dset.points
|
||||||
pos = pos - (np.array(self.pp_params.disk.pos_star) / self.lbox)
|
pos = pos - np.array(self.save.root.maps._v_attrs.center)
|
||||||
return pos
|
return pos
|
||||||
|
|
||||||
def getter_vect_r(self, dset, name_vect):
|
def getter_vect_r(self, dset, name_vect):
|
||||||
|
|||||||
Reference in New Issue
Block a user