Skip to content

Commit

Permalink
Attempt to fix regularity recombination when array has size 0
Browse files Browse the repository at this point in the history
  • Loading branch information
csskene authored and kburns committed Jul 18, 2024
1 parent 51ca757 commit e3cab89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dedalus/core/basis.py
Original file line number Diff line number Diff line change
Expand Up @@ -3600,7 +3600,7 @@ def forward_regularity_recombination(self, tensorsig, axis, gdata, ell_maps):
Q = self.radial_recombinations(tensorsig, ell_list)
# Flatten tensor axes
shape = gdata.shape
temp = gdata.reshape((-1,)+shape[rank:])
temp = gdata.reshape((np.prod(shape[:rank]),)+shape[rank:])
slices = [slice(None) for i in range(temp.ndim)]
# Apply Q transformations for each ell to flattened tensor data
for ell, m_ind, ell_ind in ell_maps:
Expand All @@ -3617,7 +3617,7 @@ def backward_regularity_recombination(self, tensorsig, axis, gdata, ell_maps):
Q = self.radial_recombinations(tensorsig, ell_list)
# Flatten tensor axes
shape = gdata.shape
temp = gdata.reshape((-1,)+shape[rank:])
temp = gdata.reshape((np.prod(shape[:rank]),)+shape[rank:])
slices = [slice(None) for i in range(temp.ndim)]
# Apply Q transformations for each ell to flattened tensor data
for ell, m_ind, ell_ind in ell_maps:
Expand Down

0 comments on commit e3cab89

Please sign in to comment.