Skip to content

Commit 8a10b67

Browse files
authored
Fixed .Integrate calls (#181)
1 parent 65c40c6 commit 8a10b67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dedalus/extras/flow_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def add_property(self, property, name, precompute_integral=False):
9595
if precompute_integral:
9696
# Add integral under slightly obscured name
9797
task_op = self.properties.tasks[-1]['operator']
98-
integral_op = operators.integrate(task_op)
98+
integral_op = operators.Integrate(task_op)
9999
integral_name = '_{}_integral'.format(name)
100100
self.properties.add_task(integral_op, layout='g', name=integral_name)
101101

@@ -123,7 +123,7 @@ def volume_integral(self, name):
123123
except KeyError:
124124
# Compute volume integral
125125
field = self.properties[name]
126-
integral_op = operators.integrate(field)
126+
integral_op = operators.Integrate(field)
127127
integral_field = integral_op.evaluate()
128128
# Communicate integral value to all processes
129129
integral_value = self.reducer.global_max(integral_field['g'])

0 commit comments

Comments
 (0)