spectralDNS / shenfun

High performance computational platform in Python for the spectral Galerkin method
http://shenfun.readthedocs.org
BSD 2-Clause "Simplified" License
197 stars 42 forks source link

AttributeError: 'tuple' object has no attribute 'copy' #87

Open WangQi1024 opened 2 years ago

WangQi1024 commented 2 years ago

Hi I really need your help, it's important to me! when I copy the code which in rb equation part, I create the testrb.py. And when I run python testrb.py, it made this mistake. Please help me resolve it, thank you very much File "testrb.py", line 77, in solver0.append(chebyshev.la.Helmholtz(*mats0)) File "/home/qiwang/anaconda3/envs/fk/lib/python3.6/site-packages/shenfun/chebyshev/la.py", line 231, in init bc_mats = extract_bc_matrices([args]) File "/home/qiwang/anaconda3/envs/fk/lib/python3.6/site-packages/shenfun/matrixbase.py", line 1678, in extract_bc_matrices for b in a.copy(): AttributeError: 'tuple' object has no attribute 'copy'

mikaem commented 2 years ago

Hi If you are referring to the Rayleigh-Benard demo, then please try the solver here instead of copying the code from the demo program.