Skip to content

Commit

Permalink
Fixed .Integrate calls (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdulla99 committed Mar 10, 2022
1 parent 65c40c6 commit 8a10b67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dedalus/extras/flow_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def add_property(self, property, name, precompute_integral=False):
if precompute_integral:
# Add integral under slightly obscured name
task_op = self.properties.tasks[-1]['operator']
integral_op = operators.integrate(task_op)
integral_op = operators.Integrate(task_op)
integral_name = '_{}_integral'.format(name)
self.properties.add_task(integral_op, layout='g', name=integral_name)

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

0 comments on commit 8a10b67

Please sign in to comment.