xbasis = de.Fourier('x',128, interval=[-pi/2.,pi/2.])
bases.append(xbasis)
ybasis = de.Fourier('y',128, interval=[-pi/2.,pi/2.])
bases.append(ybasis)
domain = de.Domain(bases, grid_dtype='float', mesh=None)
kx = print(domain.elements(0))
ky = print(domain.elements(1))
variables = ['theta']
problem = de.IVP(domain, variables=variables)
snap.add_task("theta")
snap.add_task("theta", layout='c',name="theta_c")
problem.substitutions["omega"] = "0.5 * ( cos(theta)*dx(theta) + sin(theta)*dy(theta) )"
snap.add_task("omega")
snap.add_task("omega", layout='c',name="omega_c")
Traceback (most recent call last):
File "/Users/program.py", line 277, in <module>
solver.step(dt)
File "/anaconda3/envs/dedalus/lib/python3.6/site-packages/dedalus/core/solvers.py", line 483, in step
self.timestepper.step(self, dt)
File "/anaconda3/envs/dedalus/lib/python3.6/site-packages/dedalus/core/timesteppers.py", line 559, in step
evaluator.evaluate_scheduled(**evaluator_kw)
File "/anaconda3/envs/dedalus/lib/python3.6/site-packages/dedalus/core/evaluator.py", line 107, in evaluate_scheduled
self.evaluate_handlers(scheduled_handlers, wall_time=wall_time, sim_time=sim_time, iteration=iteration, **kw)
File "/anaconda3/envs/dedalus/lib/python3.6/site-packages/dedalus/core/evaluator.py", line 146, in evaluate_handlers
self.require_coeff_space(outputs)
File "/anaconda3/envs/dedalus/lib/python3.6/site-packages/dedalus/core/evaluator.py", line 163, in require_coeff_space
self.domain.dist.paths[index-1].decrement(current_fields)
File "/anaconda3/envs/dedalus/lib/python3.6/site-packages/dedalus/core/distributor.py", line 349, in decrement
self.decrement_single(field)
File "/anaconda3/envs/dedalus/lib/python3.6/site-packages/dedalus/core/distributor.py", line 329, in decrement_single
self.basis.forward(gdata, cdata, self.axis, field.meta[self.axis])
File "/anaconda3/envs/dedalus/lib/python3.6/site-packages/dedalus/core/basis.py", line 746, in _forward_fftw
cdata, gdata = self.check_arrays(cdata, gdata, axis)
File "/anaconda3/envs/dedalus/lib/python3.6/site-packages/dedalus/core/basis.py", line 149, in check_arrays
raise ValueError("gdata does not match grid_dtype: gdata = {}; grid_dtype = {}".format(gdata.dtype, self.grid_dtype))
ValueError: gdata does not match grid_dtype: gdata = complex128; grid_dtype = float6
--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.
To post to this group, send email to dedalu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/ddb97cd8-68e5-4a5c-8a7e-9d5adde43cbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.
To post to this group, send email to dedalu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/72e30147-95d6-4e52-bf16-0e4cfbc47ca7%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.
To post to this group, send email to dedalu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/0a8b0274-fea1-442d-87cf-14ce6452a101%40googlegroups.com.