Skip to content

Commit 336b993

Browse files
committed
Patch integrate and average to properly expand cartesian coordsystems
1 parent 18c0cdf commit 336b993

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dedalus/core/operators.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,9 @@ def _preprocess_args(cls, operand, coord=None):
10951095
# Integrate over all operand bases by default
10961096
if coord is None:
10971097
coord = [basis.coordsystem for basis in operand.domain.bases]
1098+
# Split Cartesian coordinates
1099+
if isinstance(coord, coords.CartesianCoordinates):
1100+
coord = coord.coords
10981101
# Recurse over multiple coordinates
10991102
if isinstance(coord, (tuple, list)):
11001103
if len(coord) > 1:
@@ -1162,6 +1165,9 @@ def _preprocess_args(cls, operand, coord=None):
11621165
# Average over all operand bases by default
11631166
if coord is None:
11641167
coord = [basis.coordsystem for basis in operand.domain.bases]
1168+
# Split Cartesian coordinates
1169+
if isinstance(coord, coords.CartesianCoordinates):
1170+
coord = coord.coords
11651171
# Recurse over multiple coordinates
11661172
if isinstance(coord, (tuple, list)):
11671173
if len(coord) > 1:

0 commit comments

Comments
 (0)