Commit f460aea6 authored by Philipp Arras's avatar Philipp Arras
Browse files

Automatical casting to real in PowerDistributor

parent 34b9495c
......@@ -66,5 +66,6 @@ class PowerDistributor(DOFDistributor):
if x.imag.sum() == 0:
x = x.real
else:
raise TypeError
print('Warning: Assume real in PowerDistributor.')
x = x.real
return DOFDistributor.apply(self, x, mode)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment