Skip to content

Commit

Permalink
Fix SphereEllProduct dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
kburns committed Apr 1, 2022
1 parent dc4decb commit 4348a2f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion dedalus/core/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -2654,12 +2654,22 @@ def operate(self, out):
comp_out += symbols * comp_in # TEMPORARY


class SphereEllProduct(SeparableSphereOperator):
class SphereEllProduct(SeparableSphereOperator, metaclass=MultiClass):

name = "SphereEllProduct"
complex_operator = False
subaxis_dependence = [False, True]

@classmethod
def _preprocess_args(cls, operand, coordsys, ell_r_func, out=None):
if operand == 0:
raise SkipDispatchException(output=0)
return [operand, coordsys, ell_r_func], {'out': out}

@classmethod
def _check_args(cls, operand, coordsys, ell_r_func, out=None):
return True

def __init__(self, operand, coordsys, ell_r_func, out=None):
super().__init__(operand, out=out)
self.ell_r_func = ell_r_func
Expand Down

0 comments on commit 4348a2f

Please sign in to comment.