You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The get_source_slice routine produces a segmentation fault when the slice area is smaller than the source area. This is demonstrated in the following example of a source with a Gaussian spatial profile centered at the origin and defined by an amplitude function.
The
get_source_slice
routine produces a segmentation fault when the slice area is smaller than the source area. This is demonstrated in the following example of a source with a Gaussian spatial profile centered at the origin and defined by an amplitude function.For the case shown above in which the source area is of size
mp.Vector3(4,4,0)
and the slice area ismp.Vector3(6,6,0)
, the results are as expected:However, when the area of the slice is strictly smaller then that of the source (e.g.,
mp.Vector3(3,3,0)
), a segmentation fault is produced:It should be possible to define the source slice to have an area that is smaller than the overall source area.
The text was updated successfully, but these errors were encountered: