Open lecoanet opened 1 month ago
np.real and np.imag are not ufuncs, so I think its treating dedalus fields as just random objects. It looks like we might be able to circumvent this behavior by defining .real and .imag properties that return the operators we want.
Added real and imag properties for operands in #305.
It seems like if you add an equation with an operator "np.real" the code runs without complaining, but it does not appear to take the real part. I will try to come up with a simple example to demonstrate this.