diff --git a/dedalus/core/operators.py b/dedalus/core/operators.py index f762846b..63b34cf0 100644 --- a/dedalus/core/operators.py +++ b/dedalus/core/operators.py @@ -2346,7 +2346,7 @@ def matrix_coupling(self, *vars): def subproblem_matrix(self, subproblem): """Build operator matrix for a specific subproblem.""" - return sparse.vstack(arg.expression_matrices(subproblem, [self.operand])[self.operand] for arg in self.args) + return sparse.vstack([arg.expression_matrices(subproblem, [self.operand])[self.operand] for arg in self.args]) def check_conditions(self): """Check that operands are in a proper layout.""" @@ -2424,7 +2424,7 @@ def matrix_coupling(self, *vars): def subproblem_matrix(self, subproblem): """Build operator matrix for a specific subproblem.""" - return sparse.vstack(arg.expression_matrices(subproblem, [self.operand])[self.operand] for arg in self.args) + return sparse.vstack([arg.expression_matrices(subproblem, [self.operand])[self.operand] for arg in self.args]) def check_conditions(self): """Check that operands are in a proper layout."""